body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    font-size: 12pt;
    color: black;
    background-color: #333333;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

.upload-container {
    background-color: #f1f1f1;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 600px;
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.upload-container h1 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.upload-container form {
    width: 100%;
}

.upload-container input[type="text"],
.upload-container input[type="password"],
.upload-container input[type="email"],
.upload-container textarea {
    width: 100%;
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: #E6E6E6;
}

.upload-container input[type="submit"] {
    width: 100%;
    padding: 10px;
    border: none;
    background-color: #4CAF50;
    color: white;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
}

.upload-container input[type="submit"]:hover {
    background-color: #45a049;
}

.upload-container .uploaded_message ul {
    list-style-type: none;
    padding: 0;
}

.upload-container .uploaded_message ul li {
    margin: 5px 0;
}

.upload-container .error_message ul {
    list-style-type: none;
    padding: 0;
}

.upload-container .error_message ul li {
    color: red;
    margin: 5px 0;
}

.upload-container .captcha-wrapper {
    margin: 10px 0;
    text-align: center;
}

.upload-container img.captcha-image {
    display: block;
    margin: 0 auto;
    border: 1px solid #ccc;
    background-color: white;
}

.footer {
    margin-top: auto;
    background-color: #f1f1f1;
    padding: 10px;
    text-align: center;
    font-size: 14px;
    border-top: 1px solid #ccc;
    width: 100%;
    box-sizing: border-box;
    border-radius: 0 0 8px 8px;
}

.footer a {
    color: #007BFF;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Styly pro upload formulář */
.upload-form {
    margin: 20px 0;
}

.file-inputs {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
}

.file-input-group {
    width: 100%;
    margin-bottom: 10px;
}

.selected-files {
    margin: 5px 0;
}

.selected-file {
    background: #f5f5f5;
    padding: 5px 10px;
    margin: 3px 0;
    border-radius: 3px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-name {
    font-weight: bold;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 300px;
}

.file-size {
    color: #666;
    margin-left: 10px;
    white-space: nowrap;
}

.upload-info {
    margin-bottom: 15px;
}

.upload-info p {
    margin: 0;
    line-height: 1.5;
}

.file-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.remove-file {
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.remove-file:hover {
    background: #cc0000;
}

.promo-image {
    display: block;
    margin: 20px auto;
    max-width: 600px;
    width: 100%;
    height: auto;
}

.promo-link {
    display: block;
    text-align: center;
    margin-top: 30px;
    width: 100%;
    max-width: 600px;
}

/* Styly pro tabulku na počítači */
.files-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    background: #f5f5f5;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.files-table th,
.files-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    font-size: 12px;
}

.files-table th {
    background-color: #eeeeee;
    font-weight: bold;
    color: #444;
    padding: 6px 10px;
}

.files-table tr:hover {
    background-color: #eaeaea;
}

.files-table td a {
    color: #0056b3;
    text-decoration: none;
}

.files-table td a:hover {
    text-decoration: underline;
}

.files-table button {
    padding: 3px 8px;
    font-size: 11px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.files-table button:hover {
    background-color: #c82333;
}

@media screen and (max-width: 768px) {
    .upload-container {
        width: 90%;
        margin: 20px auto;
        padding: 15px;
    }
    
    .promo-link {
        width: 90%;
        margin: 1px auto;
    }
    
    .promo-image {
        max-width: 100%;
        border-radius: 10px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }
    
    .upload-container form {
        width: 100%;
    }
    
    .upload-container h1 {
        font-size: 20px;
    }
    
    .navigation-bar {
        font-size: 14px;
        word-wrap: break-word;
    }
    
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .upload-container input[type="submit"],
    .upload-container button {
        padding: 12px;
    }
    
    .captcha-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .captcha-container img {
        margin-bottom: 10px;
    }
    
    .rules-content {
        padding: 10px;
    }
    
    .rules-content h2 {
        font-size: 16px;
    }

    .rules-content {
        text-align: left;
        padding: 20px;
    }

    .rules-content section {
        margin-bottom: 25px;
    }

    .rules-content h2 {
        color: #333;
        font-size: 18px;
        margin-bottom: 10px;
    }

    .rules-content ul {
        list-style-type: disc;
        padding-left: 20px;
        margin-bottom: 15px;
    }

    .rules-content li {
        margin-bottom: 8px;
        line-height: 1.4;
    }

    .provider-info {
        margin-top: 30px;
        padding-top: 20px;
        border-top: 1px solid #ddd;
        font-style: italic;
    }

    .success_message {
        background-color: #d4edda;
        color: #155724;
        padding: 15px;
        margin: 10px 0;
        border: 1px solid #c3e6cb;
        border-radius: 4px;
    }

    .success_message p {
        margin: 0;
    }

    /* Přesuneme mobilní styly do media query */
    .files-table {
        display: block;
        width: 100%;
    }

    .files-table thead {
        display: none;
    }

    .files-table tbody,
    .files-table tr,
    .files-table td {
        display: block;
        width: 100%;
    }

    .files-table tr {
        margin-bottom: 8px;
        padding: 8px;
        background: #f5f5f5;
        border-radius: 4px;
    }

    .files-table td {
        padding: 3px 0;
        border: none;
    }

    .files-table td:before {
        content: attr(data-label);
        display: inline-block;
        font-weight: bold;
        width: 80px;
        font-size: 11px;
    }

    .files-table td a {
        word-break: normal;
        display: inline-block;
        font-size: 11px;
    }

    .files-table button {
        padding: 2px 6px;
        margin-top: 2px;
    }
}

@media screen and (max-width: 480px) {
    .promo-image {
        max-width: 300px;
    }
    
    .upload-container h1 {
        font-size: 18px;
    }
    
    .upload-container {
        padding: 10px;
    }
    
    .footer {
        font-size: 12px;
    }
}

.blocked-account-message {
    background-color: #dc3545;
    color: white;
    padding: 20px;
    margin: 20px auto;
    border-radius: 8px;
    text-align: center;
    font-size: 1.1em;
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.4);
    border: 3px solid #c82333;
    line-height: 1.4;
    font-weight: 500;
    max-width: 400px;
    width: 80%;
}

.blocked-account-message::before {
    content: "⚠️";
    font-size: 1.3em;
    display: block;
    margin-bottom: 8px;
}

.block-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 12px;
}

.block-reason {
    margin: 12px 0;
    padding: 8px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.block-contact {
    margin-top: 12px;
    font-size: 0.9em;
}

.blocked-account-message a {
    color: white;
    text-decoration: underline;
    font-weight: bold;
    padding: 5px 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    display: inline-block;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.blocked-account-message a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.pagination-link.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}
