﻿
/* --- Base Variables and Reset --- */
:root {
    --primary-color: #7030A0; /* A shade of purple, adjust as needed */
    --secondary-color: #f0f2f5;
    --text-color: #333;
    --light-text-color: #777; /* Used for placeholder, hints, unselected text */
    --border-color: #e0e0e0; /* Used for subtle borders */
    --white-color: #fff;
    --pending-bg-color: #fff0c2;
    --pending-text-color: #f5a623;
    --approved-bg-color: #e6ffed;
    --approved-text-color: #4caf50;
    --applications-bg-color: #e7f3ff;
    --applications-text-color: #007bff;
    --sidebar-bg: var(--white-color);
    --main-bg: #f9fafb; /* Light grey for main content background */
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.07); /* Slightly softer shadow */
    --border-radius: 8px; /* Increased rounding */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--main-bg);
    color: var(--text-color);
    line-height: 1.6;
    /* display: flex; */ /* Commented out to avoid conflicts */
}

/* --- General Layout (Dashboard/Application View) --- */
.container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: var(--sidebar-bg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
    flex-shrink: 0;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 40px;
    padding-left: 10px;
    text-decoration: none;
}

.menu ul {
    list-style: none;
}

.menu li {
    margin-bottom: 10px;
}

    .menu li a {
        display: flex;
        align-items: center;
        text-decoration: none;
        color: var(--light-text-color);
        padding: 12px 15px;
        border-radius: var(--border-radius);
        font-weight: 500;
        transition: background-color 0.3s ease, color 0.3s ease;
    }

        .menu li a i {
            margin-right: 12px;
            font-size: 1.1em;
            width: 20px;
            text-align: center;
        }

    .menu li.active a {
        background-color: var(--primary-color);
        color: var(--white-color);
    }

        .menu li.active a i {
            color: var(--white-color);
        }

    .menu li a:hover {
        background-color: var(--secondary-color);
        color: var(--primary-color);
    }

        .menu li a:hover i {
            color: var(--primary-color);
        }

/* Main Content Area */
.main-content {
    flex: 1;
    padding: 0 30px 30px 30px;
    overflow-y: auto;
    background-color: var(--main-bg);
}

/* Top Header inside Main Content */
.top-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 20px 0;
    height: 70px;
}

.user-profile {
    display: flex;
    align-items: center;
}

    .user-profile span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        background-color: var(--primary-color);
        color: var(--white-color);
        border-radius: 50%;
        font-weight: 500;
        margin-right: 10px;
        font-size: 1em;
    }

    .user-profile a {
        text-decoration: none;
        color: var(--text-color);
        font-weight: 500;
        display: flex;
        align-items: center;
    }

        .user-profile a i {
            margin-left: 8px;
            font-size: 0.8em;
        }

/* --- Dashboard Specific Elements --- */
.dashboard-overview h1 {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 25px;
    color: #333;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card { /* General card style, now also used by form-container */
    background-color: var(--white-color);
    padding: 25px; /* Default padding */
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    border: 1px solid #f0f0f0; /* Optional light border */
}
/* Dashboard card specific icon styles */
.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 1.8em;
    float: left;
}

    .card-icon.applications {
        background-color: var(--applications-bg-color);
        color: var(--applications-text-color);
    }

    .card-icon.pending {
        background-color: var(--pending-bg-color);
        color: var(--pending-text-color);
    }

    .card-icon.approved {
        background-color: var(--approved-bg-color);
        color: var(--approved-text-color);
    }

.card-content {
    overflow: hidden;
}
    /* Contains floated icon */
    .card-content p {
        font-size: 0.9em;
        color: var(--light-text-color);
        margin-bottom: 5px;
    }

    .card-content h2 {
        font-size: 2em;
        font-weight: 700;
        color: var(--text-color);
    }

.text-danger {
    color: red;
}

.alert alert-danger {
    color: red;
}

/* Recent Applications Table/List */
.recent-applications { /* Uses .card styling */
    margin-bottom: 30px;
}

    .recent-applications h3 {
        font-size: 20px;
        font-weight: 500;
        margin-bottom: 20px;
        color: #333;
    }

.application-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease;
}

    .application-item:last-child {
        border-bottom: none;
    }

    .application-item:hover {
        background-color: #f9f9f9;
    }

.app-icon-col {
    width: 5%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-details-col {
    width: 15%;
    padding-right: 15px;
}

.app-ref-col {
    width: 15%;
    color: var(--light-text-color);
}

.app-name-col {
    width: 20%;
}

.app-wide-col {
    width: 25%;
}

.app-amount-col {
    width: 10%;
    font-weight: 500;
    text-align: right;
}

.app-status-col {
    width: 10%;
    text-align: right;
}

.app-checkbox {
    color: var(--light-text-color);
    font-size: 1.2em;
}

    .app-checkbox .fa-check-square {
        color: var(--primary-color);
    }

.app-id {
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.95em;
    margin-bottom: 3px;
}

.app-date {
    font-size: 0.85em;
    color: var(--light-text-color);
}

.status { /* General status badge */
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 500;
    text-transform: capitalize;
    display: inline-block;
}

    .status.pending-bg {
        background-color: var(--pending-bg-color);
        color: var(--pending-text-color);
    }

    .status.approved-bg {
        background-color: var(--approved-bg-color);
        color: var(--approved-text-color);
    }

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Status colors */
.approved {
    background-color: #d4edda;
    color: #155724;
}

.approvedforfinance {
    background-color: #d4edda;
    color: #155724;
}

.live {
    background-color: #d4edda;
    color: #155724;
}

.new {
    background-color: #7030A0;
    color: white;
}

.pending {
    background-color: #fff0c2;
    color: #f5a623;
}

.applied {
    background-color: #f5a623;
    color: white;
}

.unknown {
    background-color: #f5a623;
    color: white;
}

.declined, .failed {
    background-color: #f8d7da;
    color: #721c24;
}

.expired {
    background-color: #e2e3e5;
    color: #383d41;
}

.status { /* General status badge */
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 500;
    text-transform: capitalize;
    display: inline-block;
}

    .status.pending-bg {
        background-color: var(--pending-bg-color);
        color: var(--pending-text-color);
    }

    .status.approved-bg {
        background-color: var(--approved-bg-color);
        color: var(--approved-text-color);
    }


/* --- Order Details Page --- */
.order-details-page .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.order-details-page h2 {
    font-size: 24px;
    font-weight: 500;
    color: #333;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.details-card { /* Re-uses .card styles */
}

    .details-card h3 {
        font-size: 18px;
        font-weight: 500;
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--border-color);
        color: var(--primary-color);
    }

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.95em;
}

    .info-row:last-child {
        margin-bottom: 0;
    }

.info-label {
    color: var(--light-text-color);
    font-weight: 400;
    width: 40%;
}

.info-label-small {
    color: var(--light-text-color);
    font-weight: 400;
    width: 15%;
}

.info-value {
    color: var(--text-color);
    font-weight: 500;
    text-align: right;
    word-break: break-word;
}

    .info-value a {
        color: var(--primary-color);
        text-decoration: none;
    }

        .info-value a:hover {
            text-decoration: underline;
        }

.status-text.pending-text {
    color: var(--pending-text-color);
    font-weight: 700;
}

.info-text{
    font-size: 0.9rem;
    padding-bottom: inherit
}

/* --- Login Page Specific Styles --- */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    background-color: var(--main-bg);
    padding: 20px;
}

.login-box {
    background-color: var(--white-color);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    width: 100%;
    max-width: 500px;
}

    .login-box .logo {
        font-size: 32px;
        font-weight: 700;
        color: var(--primary-color);
        margin-bottom: 30px;
        text-align: center;
        padding-left: 0;
    }

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--light-text-color);
    font-weight: 500;
    font-size: 0.9em;
}

.login-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1em;
    color: var(--text-color);
}

    .login-form input:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 0.15rem rgba(106, 90, 205, 0.2);
    }

    .login-form input::placeholder {
        color: var(--light-text-color);
        opacity: 1;
    }

.login-button {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 14px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1em;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

    .login-button:hover {
        background-color: #5a49b3;
    }

.new-user {
    text-align: center;
    margin-top: 25px;
    color: var(--light-text-color);
    font-size: 0.9em;
}

.register-options {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    gap: 10px;
}

.register-button {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 15px;
    border-radius: var(--border-radius);
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    flex: 1;
    text-align: center;
}

    .register-button:hover {
        background-color: var(--primary-color);
        color: var(--white-color);
    }


.validation-message {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    background-color: #FFF5F5;
    color: #C53030;
    border: 1px solid #FED7D7;
    font-size: 14px;
}

/* --- Form Styles (e.g., About You Page) --- */
.form-footer {
    text-align: center;
    margin-top: 20px;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
}

.form-footer p {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--light-text-color);
}

    .form-footer p:last-child {
        margin-bottom: 0;
    }

.form-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

    .form-footer a:hover {
        text-decoration: underline;
    }

/* Form container uses .card styles */
.form-container.card {
    max-width: 700px;
    margin: 20px auto;
    padding: 30px 35px; /* Specific padding for form card */
    /* Inherits background, shadow, border from .card */
}

/* Header positioned INSIDE the form card */
.form-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--secondary-color);
    text-align: center;
}

    .form-header h2 {
        color: var(--text-color);
        font-weight: 500;
        margin-bottom: 4px;
        font-size: 1.3em;
        text-transform: uppercase;
    }

    .form-header .step-indicator {
        color: var(--light-text-color);
        font-size: 0.9em;
    }

/* General Form Group styling */
.form-group {
    margin-bottom: 28px;
}

    /* General Form Label styling */
    .form-group label {
        display: block;
        font-weight: 500;
        color: var(--text-color);
        margin-bottom: 10px;
        font-size: 0.9em;
    }

/* General Form Control (input, select, textarea) styling */
.form-control {
    display: block;
    width: 100%;
    padding: 12px 15px;
    font-size: 0.95em;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--white-color);
    background-clip: padding-box;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    min-height: calc(1.5em + (12px * 2) + 2px); /* Ensure consistent height */
}

    .form-control::placeholder {
        color: var(--light-text-color);
        opacity: 1;
    }

    .form-control:focus {
        color: #495057;
        background-color: #fff;
        border-color: var(--primary-color);
        outline: 0;
        box-shadow: 0 0 0 0.2rem rgba(106, 90, 205, 0.25);
    }

.form-group-flex {
    display: flex;
    align-items: start;
    gap: 1rem;
}

    .form-group-flex > * {
        flex: 1;
        min-width: 0; /* Prevents flex items from overflowing */
    }

    .form-group-flex .validation-message {
        margin-top: 0.25rem;
    }

/* Style for InputSelectMultiple to match InputSelect */
.form-control[multiple] {
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    min-height: 120px;
    cursor: pointer;
}

    .form-control[multiple] option {
        padding: 0.5rem 0.75rem;
        margin: 2px 0;
        border-radius: 0.2rem;
    }

        .form-control[multiple] option:checked {
            background: var(--applications-text-color) linear-gradient(0deg, var(--applications-text-color) 0%, var(--applications-text-color) 100%);
            color: var(--white-color);
        }

        .form-control[multiple] option:hover:not(:checked) {
            background-color: var(--secondary-color);
        }


/* Specific styling for select to better match appearance */
select.form-control {
    appearance: none; /* Remove default arrow */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem; /* Make space for custom arrow */
}

/* Spacing for stacked controls within a group */
/*.form-group .form-control + .form-control {
    margin-top: 10px;
}*/

/* Helper for horizontal input layouts */
.input-row {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

    .input-row .form-control {
        flex: 1; /* Let flexbox distribute space equally */
        width: auto; /* Override width: 100% */
    }

/* Ensure DOB inputs have centered text if needed */
.dob-inputs input {
    text-align: center;
}

/* Form hint text */
.form-hint {
    font-size: 0.8em;
    color: var(--light-text-color);
    margin-top: 5px;
}

/* Radio Buttons styled as Yes/No buttons */
.radio-button-group {
    display: flex;
    gap: 12px;
    margin-top: 5px;
}

    .radio-button-group input[type="radio"] {
        display: none;
    }

.radio-btn-label {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    background-color: var(--white-color);
    color: var(--light-text-color);
    font-weight: 400;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    text-align: center;
    min-width: 80px;
    line-height: 1.5;
}

    .radio-btn-label:hover {
        background-color: #fdfdfd;
        border-color: #d8d8d8;
    }

.radio-button-group input[type="radio"]:checked + .radio-btn-label {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
    font-weight: 500;
}

/* Specific section styling (e.g., "Do Any Apply?") */
.apply-questions > label {
    font-size: 1em;
    margin-bottom: 15px;
    font-weight: 500;
}

.sub-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px solid var(--secondary-color);
    min-height: 40px;
}

    .sub-question:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .sub-question p {
        margin: 0;
        color: var(--text-color);
        flex-basis: 65%;
        padding-right: 15px;
        font-size: 0.9em;
        line-height: 1.4;
    }

    .sub-question .radio-button-group.inline {
        margin-top: 0;
        flex-shrink: 0;
    }

/* Form Submit Button */
.submit-button {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 12px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.05em;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
    text-align: center;
    display: block;
    margin-top: 10px;
}

    .submit-button:hover {
        background-color: #5a49b3;
    }


/* Save Button */
.button-container {
    grid-column: 1 / -1; /* Span both columns */
    display: flex;
    justify-content: flex-end; /* Align button to the right */
    margin-top: 10px; /* Space above the button */
}

.save-button {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    font-size: 0.95em;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .save-button:hover {
        background-color: #5a4acd; /* Darker purple on hover */
    }

/* --- Responsive Design --- */

/* Larger Screens (e.g., Desktop) */
@media (min-width: 992px) {
    .details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Medium Screens (e.g., Tablets) */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 10px;
    }

    .logo {
        text-align: center;
        margin-bottom: 20px;
        padding-left: 0;
    }

    .menu ul {
        display: flex;
        justify-content: space-around;
        flex-wrap: wrap;
    }

    .menu li {
        margin-bottom: 0;
    }

        .menu li a {
            padding: 10px;
        }

            .menu li a i {
                margin-right: 5px;
            }

            .menu li a span {
                display: none;
            }

    .main-content {
        padding: 20px;
    }

    .top-header {
        justify-content: center;
    }

    .summary-cards {
        grid-template-columns: 1fr;
    }

    .application-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }

    .app-icon-col, .app-details-col, .app-ref-col, .app-name-col, .app-amount-col, .app-status-col {
        width: 100%;
        text-align: left;
        margin-bottom: 8px;
    }

    .app-icon-col {
        justify-content: flex-start;
        margin-bottom: 10px;
    }

    .app-amount-col, .app-status-col {
        text-align: left;
        padding-top: 5px;
    }

    .order-details-page .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

        .order-details-page .page-header .status {
            margin-top: 10px;
        }

    .info-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .info-label {
        margin-bottom: 5px;
        width: auto;
    }

    .info-value {
        text-align: left;
    }

    /* Form Adjustments for Tablet */
    .input-row {
        flex-wrap: wrap; /* Allow wrapping */
    }
    /* Let them wrap naturally based on flex: 1 */
}

/* Small Screens (e.g., Mobile Phones) */
@media (max-width: 576px) {
    .form-container.card {
        padding: 20px 15px;
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
        border-radius: 0;
        border: none;
        box-shadow: none;
    }

    .form-header {
        padding-bottom: 15px;
        margin-bottom: 25px;
        text-align: center;
    }

    .input-row {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
        /* Stack vertically */
        .input-row .form-control {
            width: 100%; /* Full width when stacked */
        }

    .sub-question {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

        .sub-question p {
            flex-basis: auto;
            padding-right: 0;
        }

        .sub-question .radio-button-group.inline {
            align-self: flex-start;
        }

    .login-box {
        padding: 30px 20px;
        max-width: 100%;
        box-shadow: none;
    }

        .login-box .logo {
            font-size: 28px;
        }

    .register-options {
        flex-direction: column;
    }

    .register-button {
        margin: 5px 0;
        flex: none;
        width: 100%;
    }
}

/* Extra Small Screens (Refinements) */
@media (max-width: 480px) {
    body {
        font-size: 15px;
    }

    .main-content {
        padding: 15px;
    }

    .menu ul {
        flex-direction: column;
        align-items: stretch;
    }

    .menu li a {
        justify-content: center;
    }

    .dashboard-overview h1 {
        font-size: 24px;
    }

    .card {
        padding: 20px;
    }
    /* Default card padding */
    .form-container.card {
        padding: 20px 15px;
    }
    /* Override for form card */
    .card-content h2 {
        font-size: 1.8em;
    }

    .recent-applications h3 {
        font-size: 18px;
    }

    .order-details-page h2 {
        font-size: 20px;
    }

    .login-box {
        padding: 25px 15px;
    }
}

/* Radio group specific styling for legal forms */
.radio-group {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-top: 8px;
    flex-wrap: nowrap;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 200px;
}

    .radio-option label {
        margin: 0;
        cursor: pointer;
        font-size: 0.9rem;
        white-space: nowrap;
        font-weight: normal;
    }

/* Add to existing media queries for responsiveness */
@@media (max-width: 576px) {
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }

    .radio-option {
        min-width: 100%;
    }
}

.modal {
    z-index: var(--bs-modal-zindex);
}

.modal-backdrop {
    z-index: calc(var(--bs-modal-zindex) - 1);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-container {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.modal-content {
    position: relative;
}

.modal-header {
    padding: 1rem;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .modal-header h5 {
        margin: 0;
        font-size: 1.1rem;
        font-weight: 500;
    }

.close-button {
    border: none;
    background: none;
    font-size: 1.5rem;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    color: #666;
}

    .close-button:hover {
        color: #000;
    }

.modal-body {
    padding: 1rem;
}

    .modal-body .filename {
        color: #666;
        font-size: 0.9rem;
        margin-top: 0.5rem;
        word-break: break-all;
    }

.modal-footer {
    padding: 1rem;
    border-top: 1px solid #e5e5e5;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.btn-secondary {
    padding: 0.5rem 1rem;
    border: 1px solid #ccc;
    background: white;
    border-radius: 4px;
    cursor: pointer;
}

    .btn-secondary:hover {
        background: #f0f0f0;
    }

.btn-danger {
    padding: 0.5rem 1rem;
    border: none;
    background: #dc3545;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

    .btn-danger:hover {
        background: #c82333;
    }

</style >
