/* === Case Details Page Theme === */

/* Global Reset */
* {
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    background: #f7f9fc;
    color: #333;
    margin: 0;
    padding: 0;
}

.case-details-wrapper {
    width: 100%;
    padding: 100px 40px 40px 280px;
    max-width:1200px;
    margin:0 auto;
    min-height: calc(100vh - 70px);
    }

    @media screen and (max-width: 992px) {
    .case-details-wrapper{
        padding: 0px 40px 40px 40px!important;
    }
    }

h1, h2, h3, h4 {
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

/* === Header === */
.case-header {
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem 2rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

    .case-header h1 {
        font-size: 1.8rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
    }

.case-ref {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1rem;
}

.case-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.info-card {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #e5e7eb;
}

    .info-card span {
        font-size: 0.8rem;
        color: #666;
        display: block;
        margin-bottom: 0.3rem;
    }

    .info-card h3 {
        margin: 0;
        font-weight: 500;
        color: #1f2937;
    }

/* === Insurance + Next Appointment === */
.insurance-next-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.insurance-card,
.next-appointment-card {
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

    .insurance-card h2,
    .next-appointment-card h2 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
        border-bottom: 1px solid #eee;
        padding-bottom: 0.5rem;
    }

.no-insurance {
    text-align: center;
    color: #999;
    padding: 2rem 0;
}

.icon-doc::before {
    content: "📄";
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.appt-box {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    background: #f9fafb;
}

.appt-box-empty {
    color: #888;
    font-style: italic;
    text-align: center;
    padding: 1.2rem;
    background: #f9fafb;
    border-radius: 8px;
}

/* === Appointment History === */
.appointment-history {
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

    .section-header h2 {
        font-size: 1.3rem;
        margin: 0;
    }

.appt-history-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.appt-item {
    display: flex;
    align-items: flex-start;
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
}

.appt-date {
    width: 60px;
    text-align: center;
    background: #f3f4f6;
    border-radius: 8px;
    margin-right: 1rem;
    padding: 0.5rem;
}

    .appt-date .day {
        font-size: 1.3rem;
        font-weight: bold;
        color: #1f2937;
    }

    .appt-date .month {
        font-size: 0.8rem;
        color: #6b7280;
    }

.appt-info h4 {
    margin: 0 0 0.2rem 0;
}

.appt-info p {
    margin: 0.2rem 0;
    font-size: 0.9rem;
    color: #444;
}

/* === Status Badges === */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: capitalize;
}

    .status-badge.pending {
        background: #fff8e1;
        color: #b7791f;
    }

    .status-badge.completed {
        background: #e6ffed;
        color: #276749;
    }

    .status-badge.cancelled {
        background: #ffe6e6;
        color: #c53030;
    }

/* === Case Documents === */
.case-documents {
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.document-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.document-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.8rem 1rem;
}

    .document-item h4 {
        margin: 0;
        font-size: 1rem;
        color: #1a1a1a;
    }

    .document-item p {
        margin: 0;
        font-size: 0.85rem;
        color: #666;
    }

.btn {
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: #0066cc;
    color: #fff;
}

.btn-outline {
    border: 1px solid #0066cc;
    color: #0066cc;
    background: #fff;
}

    .btn-outline:hover {
        background: #0066cc;
        color: #fff;
    }

/* === Pagination (if added later) === */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.5rem;
}

    .pagination button {
        border: 1px solid #ccc;
        background: #fff;
        padding: 0.4rem 0.8rem;
        border-radius: 5px;
        cursor: pointer;
        transition: all 0.2s;
    }

        .pagination button:hover {
            background: #f0f0f0;
        }

    .pagination .active {
        background: #0066cc;
        color: #fff;
        border-color: #0066cc;
    }

    .pagination a,
    .pagination span {
        display: inline-block;
        padding: 0.4rem 0.8rem;
        border: 1px solid #ccc;
        border-radius: 6px;
        text-decoration: none;
        color: #333;
    }

        .pagination a:hover {
            background: #0066cc;
            color: #fff;
            border-color: #0066cc;
        }

    .pagination .page-number {
        background: #f3f4f6;
        color: #555;
        border: none;
        pointer-events: none;
    }
