/* style.css - REPLACEMENT CODE */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
}

.header {
    background-color: #673de6;
    text-align: center;
    padding: 30px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header img {
    max-width: 250px;
}

.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 40px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

form {
    margin-bottom: 30px;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #ddd;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group label {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-weight: normal;
}

input[type="file"],
input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%; /* Changed to 100% for better alignment */
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
}

input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    margin-bottom: 0;
    accent-color: #673de6;
}

input[type="submit"] {
    background-color: #673de6;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
    display: inline-block;
}

input[type="submit"]:hover {
    background-color: #512da8;
}

/* Progress Bar Styles */
#uploadProgressContainer {
    background-color: #e9ecef;
    border-radius: 8px;
    padding: 3px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.1);
    margin-top: 15px;
}
#uploadProgressBar {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    width: 100%;
    height: 20px;
    border-radius: 5px;
    border: none;
    background-color: #e9ecef;
}
#uploadProgressBar::-webkit-progress-bar {
    background-color: #e9ecef;
    border-radius: 5px;
}
#uploadProgressBar::-webkit-progress-value {
    background-color: #28a745;
    border-radius: 5px;
    transition: width 0.4s ease;
}
#uploadProgressBar::-moz-progress-bar {
    background-color: #28a745;
    border-radius: 5px;
    transition: width 0.4s ease;
}
#uploadProgressStatus {
    font-size: 0.9em;
    color: #495057;
    font-weight: bold;
    display: block;
    text-align: center;
    margin-top: 5px;
}

#uploadResult {
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    margin-top: 10px;
    font-weight: bold;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
}

th {
    background-color: #f2f2f2;
    font-weight: 600;
    color: #333;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover {
    background-color: #f5f5f5;
}

/* Action Button Styles */
a.action-button,
button.action-button {
    display: inline-block;
    padding: 8px 12px;
    margin: 2px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    vertical-align: middle;
}

a.action-button:active,
button.action-button:active {
    transform: scale(0.98);
}

.preview-button { background-color: #007bff; }
.download-button { background-color: #28a745; }
.print-button { background-color: #17a2b8; }
.delete-button { background-color: #dc3545; }
.copy-link-button { background-color: #ffc107; color: #212529; }

.preview-button:hover { background-color: #0069d9; }
.download-button:hover { background-color: #218838; }
.print-button:hover { background-color: #138496; }
.delete-button:hover { background-color: #c82333; }
.copy-link-button:hover { background-color: #e0a800; }

/* Modal Styles */
.modal-overlay {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.modal-close-button {
    color: #6c757d;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close-button:hover {
    color: #000;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    text-align: center;
}

.modal-body img,
.modal-body video,
.modal-body audio,
.modal-body iframe {
    max-width: 100%;
    max-height: 70vh;
    border: none;
}
.modal-body iframe {
    width: 100%;
    height: 70vh;
}

/* Footer and Content Page styles from original file... */

.footer, .app-footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
    background-color: #673de6;
    color: white;
}
.app-footer {
     border-top: 3px solid rgba(255, 255, 255, 0.2);
     font-size: 0.9em;
     padding: 25px 20px;
}
.footer-links { margin-bottom: 15px; }
.footer-links a { color: #ffffff; text-decoration: none; margin: 0 10px; transition: text-decoration 0.3s ease; }
.footer-links a:hover { text-decoration: underline; }
.footer-copyright { font-size: 0.85em; color: rgba(255, 255, 255, 0.8); }
.footer-copyright a { color: #ffffff; text-decoration: underline; }
.footer-copyright a:hover { text-decoration: none; }

.content-page-container {
    max-width: 900px; margin: 30px auto; padding: 30px 40px; background-color: white;
    border-radius: 12px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); line-height: 1.6;
}
.content-page-container h1, .content-page-container h2, .content-page-container h3 {
    color: #333; border-bottom: 1px solid #eee; padding-bottom: 10px;
    margin-top: 25px; margin-bottom: 15px;
}
.content-page-container h1 { color: #673de6; border-bottom-width: 2px; border-bottom-color: #673de6; }
.content-page-container ul { list-style: disc; margin-left: 20px; margin-bottom: 15px; }
.content-page-container li { margin-bottom: 8px; }
.content-page-container p { margin-bottom: 15px; }
.content-page-container code { background-color: #f0f0f0; padding: 2px 5px; border-radius: 4px; font-family: monospace; }
.password-container {
    background-color: white; padding: 30px; border-radius: 8px; display: inline-block;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); text-align: center; margin-top: 50px;
}
.password-container h2 { margin-top: 0; color: #333; }
.password-container button { padding: 10px 25px; }
.error { color: #dc3545; margin-bottom: 15px; font-weight: bold; }


/* Responsive Table */
@media (max-width: 768px) {
    table, thead, tbody, th, td, tr { display: block; }
    thead tr { position: absolute; top: -9999px; left: -9999px; border: none; }
    tr { border: 1px solid #ccc; margin-bottom: 10px; border-radius: 5px; background-color: #fff; }
    td {
        border: none; border-bottom: 1px solid #eee; position: relative;
        padding-left: 50%; padding-top: 10px; padding-bottom: 10px;
        min-height: 30px; display: flex; align-items: center; flex-wrap: wrap;
    }
    td:last-child { border-bottom: 0; }
    td:before {
        position: absolute; top: 50%; transform: translateY(-50%); left: 10px;
        width: 45%; padding-right: 10px; white-space: nowrap; content: attr(data-label);
        font-weight: bold; color: #555;
    }
    td[data-label="Action"] { padding-left: 10px; justify-content: flex-start; }
    td[data-label="Action"]:before { display: none; }
    td[data-label="Action"] .action-button { margin-bottom: 5px; }
}