/* ==================== */
/* GLOBAL STYLES        */
/* ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f9fc;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    padding: 40px 0;
    flex: 1;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==================== */
/* HEADER & NAVIGATION  */
/* ==================== */
header {
    background-color: #0056b3;
    color: white;
    padding: 40px 0;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

header .logo {
    width: 350px;
    height: auto;
    margin-bottom: 20px;
}

header p {
    font-size: 1.7em;
    margin-bottom: 20px;
}

.user-status {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 1.1em;
    text-align: right;
}

.nav-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
    position: absolute;
    top: 20px;
    left: 10px;
    gap: 8px;
    width: 450px;
}

.nav-buttons button {
    background-color: #ffffff;
    color: #0056b3;
    border: 1px solid #0056b3;
    padding: 10px 15px;
    font-size: 1.2em;
    cursor: pointer;
    border-radius: 20px;
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
}

.nav-buttons button:hover {
    background-color: #0056b3;
    color: #ffffff;
    transform: scale(1.05);
}

.nav-buttons-mobile {
    display: none;
}

/* ==================== */
/* BUTTON STYLES        */
/* ==================== */
.btn {
    background-color: #0056b3;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 1.1em;
    cursor: pointer;
    border-radius: 25px;
    width: 100%;
    transition: background-color 0.3s, transform 0.3s;
    font-weight: bold;
}

.btn:hover {
    background-color: #004494;
    transform: scale(1.02);
}

.action-btn {
    flex: 1;
    padding: 15px;
    border-radius: 25px;
    text-align: center;
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s, background-color 0.3s;
    border: none;
    font-size: 1.1em;
    cursor: pointer;
}

.action-btn:hover {
    transform: translateY(-3px) scale(1.05);
}

.change-password {
    background-color: #0056b3;
}

.change-password:hover {
    background-color: #004494;
}

.logout {
    background-color: #e74c3c;
}

.logout:hover {
    background-color: #c0392b;
}

.delete-account {
    background-color: #dc3545;
}

.delete-account:hover {
    background-color: #c82333;
}

.copy-btn, .openLink {
    margin-top: 15px;
    background-color: #0056b3;
    color: #fff;
    border: none;
    padding: 8px 16px;
    font-size: 1em;
    cursor: pointer;
    border-radius: 20px;
    transition: background-color 0.3s;
    width: 100%;
}

.copy-btn:hover, .openLink:hover {
    background-color: #003d7a;
}

/* ==================== */
/* FORM STYLES          */
/* ==================== */
.form-container {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s;
}

.form-container:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 1.1em;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #dce7f2;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #0056b3;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 86, 179, 0.3);
}

/* ==================== */
/* ACCOUNT PAGE         */
/* ==================== */
.account-container {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s;
}

.account-container:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.account-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.account-icon {
    width: 80px;
    height: 80px;
    background-color: #0056b3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
    margin-right: 20px;
}

.account-info h2 {
    margin-bottom: 5px;
    font-size: 1.8em;
    color: #0056b3;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #0056b3;
}

.stat-label {
    font-size: 14px;
    color: #6c757d;
}

.actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* ==================== */
/* MODAL STYLES         */
/* ==================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.modal-title {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #dc3545;
}

.modal-message {
    margin-bottom: 20px;
    font-size: 1.1em;
}

.modal-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.modal-input:focus {
    border-color: #0056b3;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 86, 179, 0.3);
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modal-btn {
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    border: none;
    font-weight: bold;
    transition: transform 0.3s;
}

.modal-btn:hover {
    transform: scale(1.05);
}

.modal-btn-cancel {
    background-color: #6c757d;
    color: white;
}

.modal-btn-cancel:hover {
    background-color: #5a6268;
}

.modal-btn-confirm {
    background-color: #dc3545;
    color: white;
}

.modal-btn-confirm:hover {
    background-color: #c82333;
}

.error-message {
    color: #dc3545;
    margin-bottom: 15px;
    display: none;
    font-size: 1em;
}

/* ==================== */
/* DONATE PAGE          */
/* ==================== */
.donate-info {
    text-align: center;
    margin-bottom: 40px;
}

.donate-info h1 {
    font-size: 2.5em;
    color: #0056b3;
    margin-bottom: 10px;
}

.donate-info p {
    font-size: 1.2em;
    color: #555;
}

.donate-options {
    text-align: center;
}

.donate-options h2 {
    font-size: 2em;
    color: #0056b3;
    margin-bottom: 20px;
    margin-top: 20px;
}

.paypal {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    width: 280px;
    transition: transform 0.3s;
    margin-bottom: 20px;
    margin: 0 auto;
}

.paypal:hover {
    transform: scale(1.05);
}

.paypal img {
    width: 50px;
    margin-bottom: 10px;
}

.crypto {
    display: flex;
    align-items: center;
    gap: 20px;
}

.crypto-item {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    width: 280px;
    transition: transform 0.3s;
    margin-bottom: 10px;
}

.crypto-item:hover {
    transform: scale(1.05);
}

.crypto-item img {
    width: 50px;
    margin-bottom: 10px;
}

.crypto-item p {
    font-size: 1em;
    word-break: break-all;
}

/* ==================== */
/* DOWNLOAD/UPLOAD PAGES */
/* ==================== */
section {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s;
}

section:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

section h2 {
    font-size: 2.2em;
    color: #0056b3;
    margin-bottom: 15px;
}

section p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.file-size {
    font-size: 1.1em;
    color: #004494;
}

.expiryTime {
    color: #004494;
    font-size: 1.15em;
}

#notice {
    color: coral;
}

section strong {
    color: #0056b3;
}

#upload-instructions h3 {
    font-size: 1.75rem;
    color: #3156bd;
    margin-bottom: 10px;
    font-weight: bold;
    text-align: left;
    text-decoration: underline;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

form input[type="file"] {
    padding: 15px;
    font-size: 1em;
    border: 1px solid #dce7f2;
    border-radius: 8px;
    background-color: #ffffff;
    color: #333;
    cursor: pointer;
    transition: border-color 0.3s;
}

form input[type="file"]:hover {
    border-color: #0056b3;
}

form button {
    background-color: #0056b3;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 1.1em;
    cursor: pointer;
    border-radius: 25px;
    transition: background-color 0.3s, transform 0.3s;
}

form button:hover {
    background-color: #004494;
    transform: scale(1.05);
}

#uploadButton:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* ==================== */
/* CHECKBOX & LABEL     */
/* ==================== */
label {
    display: flex;
    align-items: center;
    font-size: 1.1em;
    cursor: pointer;
    gap: 8px;
    user-select: none;
    margin-bottom: 10px;
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #0056b3;
    cursor: pointer;
}

#passwordInput {
    margin-top: 5px;
    display: none;
    transition: opacity 0.3s ease-in-out;
    margin-bottom: 15px;
}

#filePassword {
    width: 25%;
    padding: 12px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
    color: #333;
    transition: border-color 0.3s;
}

#filePassword:focus {
    border-color: #0056b3;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 86, 179, 0.3);
}

#renameArchiveLabel {
    display: none;
    align-items: center;
    font-size: 1.1em;
    cursor: pointer;
    gap: 8px;
    user-select: none;
    margin-bottom: 10px;
}

#archiveNameInput {
    margin-top: 5px;
    display: none;
    transition: opacity 0.3s ease-in-out;
    margin-bottom: 15px;
}

#archiveName {
    width: 25%;
    padding: 12px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
    color: #333;
    transition: border-color 0.3s;
}

#archiveName:focus {
    border-color: #0056b3;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 86, 179, 0.3);
}

.timeGroup label {
    font-size: 1.3em;
    color: #000000;
    margin-bottom: 20px;
}

.timeGroup select {
    padding: 10px;
    font-size: 1em;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-top: 5px;
    color: #333;
    margin-bottom: 20px;
}

/* ==================== */
/* PROGRESS INDICATOR   */
/* ==================== */
#progress-container {
    position: relative;
    display: none;
    margin-top: 20px;
    text-align: center;
}

#progress-container::before {
    content: '';
    position: absolute;
    margin-top: 7px;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    z-index: 2;
}

#upload-progress {
    width: 100%;
    height: 25px;
    border-radius: 8px;
    background-color: #dce7f2;
    appearance: none;
}

#upload-progress::-webkit-progress-bar {
    border-radius: 8px;
    background-color: #dce7f2;
}

#upload-progress::-webkit-progress-value {
    border-radius: 8px;
    background-color: #0056b3;
}

#upload-progress::-moz-progress-bar {
    border-radius: 8px;
    background-color: #0056b3;
}

#progress-text {
    font-size: 1.1em;
    color: #0056b3;
    margin-top: 10px;
}

@keyframes spin {
    0% { transform: translateX(-50%) rotate(0deg); }
    100% { transform: translateX(-50%) rotate(360deg); }
}

@keyframes pulse {
    0% { opacity: 0.25; }
    50% { opacity: 1; }
    100% { opacity: 0.25; }
}

#progress-container.archiving::before {
    content: "🔄";
    animation: spin 2s linear infinite;
}

#progress-container.uploading::before {
    content: "📤";
    animation: pulse 1.5s ease-in-out infinite;
}

#progress-container.finalizing::before {
    content: "✅";
    animation: pulse 1.5s ease-in-out infinite;
}

/* ==================== */
/* INDEMNIFICATION      */
/* ==================== */
#indemnification {
    background-color: white;
    padding: 30px;
    margin: 30px auto;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 700px;
}

#indemnification p {
    font-size: 1.2em;
    margin-bottom: 15px;
}

#indemnification ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

#indemnification ul li {
    font-size: 1.2em;
}

/* ==================== */
/* REPORT PAGE          */
/* ==================== */
.report-info {
    text-align: center;
    margin-bottom: 40px;
}

.report-info h1 {
    font-size: 2.5em;
    color: #0056b3;
    margin-bottom: 10px;
}

.report-info p {
    font-size: 1.2em;
    color: #555;
}

.report-form {
    text-align: center;
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s;
}

.feature:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.report-form h2 {
    font-size: 2em;
    color: #0056b3;
    margin-bottom: 20px;
}

.success-message {
    background-color: #28a745;
    color: white;
    padding: 15px;
    margin-top: 20px;
    border-radius: 8px;
    font-size: 1.2em;
    text-align: center;
    transition: all 0.3s ease;
}

.error-messages {
    background-color: #dc3545;
    color: white;
    padding: 15px;
    margin-top: 20px;
    border-radius: 8px;
    font-size: 1.2em;
    text-align: center;
    display: none;
    transition: all 0.3s ease;
}

#errorList {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#errorList li {
    margin: 5px 0;
}

.success-message, .error-messages {
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* ==================== */
/* SUCCESS/ERROR MSGS   */
/* ==================== */
.error {
    color: #e74c3c;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.1em;
    padding: 10px;
    background-color: #fdecea;
    border-radius: 8px;
}

.success {
    color: #27ae60;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.1em;
    padding: 10px;
    background-color: #e8f5e9;
    border-radius: 8px;
}

.password-strength {
    margin-top: 5px;
    font-size: 0.9em;
    color: #6c757d;
}

.password-strength.weak {
    color: #e74c3c;
}

.password-strength.medium {
    color: #f39c12;
}

.password-strength.strong {
    color: #27ae60;
}

/* ==================== */
/* LINK STYLES          */
/* ==================== */
.forgot-password {
    text-align: right;
    margin: 15px 0 25px;
}

.forgot-password a,
.login-link a,
.signup-link a,
.resend-link a,
.action-link a {
    color: #0056b3;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.forgot-password a:hover,
.login-link a:hover,
.signup-link a:hover,
.resend-link a:hover,
.action-link a:hover {
    color: #003d82;
    text-decoration: underline;
}

/* ==================== */
/* SUCCESS PAGES        */
/* ==================== */
.success-container {
    background-color: white;
    border-radius: 12px;
    padding: 50px;
    margin: 20px 0;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s;
    max-width: 600px;
}

.success-container:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.success-icon {
    font-size: 72px;
    color: #27ae60;
    margin-bottom: 25px;
    animation: pulse 1.5s ease-in-out infinite;
}

.verification-message {
    margin-bottom: 25px;
    font-size: 1.2em;
    line-height: 1.8;
}

/* ==================== */
/* HOMEPAGE/FEATURES    */
/* ==================== */
.feature {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s;
}

.feature:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.feature h2 {
    font-size: 2.2em;
    margin-bottom: 15px;
    color: #0056b3;
}

.feature p {
    font-size: 1.1em;
    margin-bottom: 15px;
}

ol {
    list-style: none;
    padding-left: 20px;
}

ol li {
    font-size: 1.1em;
    margin-bottom: 10px;
    line-height: 1.5;
}

ol li strong {
    font-weight: bold;
}

header .navigate {
    background-color: #ffffff;
    color: #0056b3;
    border: none;
    padding: 12px 20px;
    font-size: 1.1em;
    cursor: pointer;
    border-radius: 25px;
    margin: 5px;
}

header .navigate:hover {
    background-color: #e5f1fc;
    transform: scale(1.05);
}

header .get-started {
    font-size: 1.2em;
    text-decoration: none;
    transition: color 0.3s;
    text-shadow: 0px 4px 4px rgba(0, 0, 0, .75);
}

/* ==================== */
/* FOOTER               */
/* ==================== */
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0056b3;
    color: white;
    padding: 20px;
    font-size: 1.1em;
    position: relative;
    bottom: 0;
    left: 0;
    width: 100%;
}

footer .footer-left span {
    font-size: 1.1em;
}

footer .footer-center {
    text-align: center;
    flex-grow: 1;
}

/* ==================== */
/* RESPONSIVE DESIGN    */
/* ==================== */
@media (max-width: 768px) {
    header {
        padding: 30px 0 20px;
    }

    header .logo {
        width: 280px;
        margin-bottom: 15px;
    }

    header p {
        font-size: 1.3em;
        padding: 0 15px;
    }

    .nav-buttons {
        display: none;
    }

    .nav-buttons-mobile {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin: 15px 0;
    }

    .nav-buttons-mobile button {
        padding: 12px 18px;
        font-size: 0.95em;
        border-radius: 20px;
        white-space: nowrap;
        margin: 4px;
        flex: 1 1 auto;
        background-color: #ffffff;
        color: #0056b3;
        border: 1px solid #0056b3;
    }

    .container {
        width: 95%;
    }

    .form-container, 
    .account-container, 
    section, 
    .report-form,
    .success-container {
        padding: 20px;
        margin: 15px 0;
    }

    .account-header {
        flex-direction: column;
        text-align: center;
    }

    .account-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .actions {
        flex-direction: column;
    }

    .donate-info h1,
    .report-info h1 {
        font-size: 2em;
        margin-bottom: 8px;
    }

    .donate-info p,
    .report-info p {
        font-size: 1.1em;
        padding: 0 15px;
    }

    .donate-options h2,
    .report-form h2 {
        font-size: 1.8em;
        margin: 15px 0;
        padding: 0 10px;
    }

    .paypal {
        width: 100%;
        padding: 15px;
        margin-bottom: 15px;
    }

    .crypto {
        flex-direction: column;
        gap: 10px;
        padding: 0 10px;
    }

    .crypto-item {
        width: 100%;
        padding: 15px;
        margin: 0 auto 15px;
    }

    section h2,
    .feature h2 {
        font-size: 1.8em;
    }

    section p,
    .feature p {
        font-size: 1em;
    }

    #filePassword,
    #archiveName {
        width: 100%;
    }

    form input[type="file"] {
        width: 100%;
        padding: 12px;
    }

    .timeGroup label {
        font-size: 1.1em;
    }

    #upload-instructions h3 {
        font-size: 1.4rem;
        margin-bottom: 8px;
    }

    #indemnification {
        padding: 20px;
        margin: 20px auto;
        width: 100%;
    }

    #indemnification p,
    #indemnification ul li {
        font-size: 1em;
    }

    .buttonClick,
    header .navigate {
        display: none;
    }

    .get-started {
        display: block;
        margin-top: 15px;
        font-size: 1em;
    }

    .user-status {
        position: static;
        text-align: center;
        margin-top: 10px;
    }

    footer {
        flex-direction: column;
        gap: 15px;
        padding: 25px 20px;
        text-align: center;
    }

    #progress-container {
        margin-top: 15px;
    }

    #upload-progress {
        height: 20px;
    }

    #progress-text {
        font-size: 1em;
    }

    .copy-btn,
    .openLink {
        padding: 12px 20px;
        font-size: 1.1em;
    }

    button {
        min-height: 48px;
    }
}