﻿/* =========================================
   DASHBOARD HEADERS
========================================= */

.card-header.card-header-light {
    background-color: #e2e6ea;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
}

.card-header-primary {
    background: linear-gradient(90deg, #2c7be5, #1a68d1);
    color: #fff;
    border-radius: 10px 10px 0 0;
    font-weight: 600;
}

/* =========================================
   DASHBOARD LAYOUT
========================================= */

.section-card {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.dashboard-max-width {
    max-width: 1100px;
}

.dashboard-summary {
    max-width: 1000px;
}

    .dashboard-summary .badge {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }

.dashboard-table thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* =========================================
   SERVICE CARDS
========================================= */

.service-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

    .service-link:hover,
    .service-link:focus {
        color: inherit;
        text-decoration: none;
    }

.service-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    border: 1px solid transparent;
    border-radius: 0.85rem;
    min-height: 160px;
    background-color: #fff;
}

    .service-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    }

.service-clickable {
    cursor: pointer;
}

    .service-clickable:hover,
    .service-card.service-clickable:focus-within {
        border-color: #2c7be5;
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    }

.service-card .card-body {
    padding: 1.35rem 1.25rem;
}

.service-card h5 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.service-card p {
    line-height: 1.45;
}

/* =========================================
   CLIENT DASHBOARD CARD POLISH
========================================= */

.dashboard-max-width .card {
    border-radius: 0.95rem;
    overflow: hidden;
}

.dashboard-max-width .card-header {
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
}

.dashboard-max-width .card-body {
    padding: 1.25rem;
}

/* Results / profiles / supporting cards on client dashboard */
.row.justify-content-center .card.shadow-sm.border-0 {
    border-radius: 0.95rem;
}

/* Buttons inside dashboard cards feel a bit more balanced */
.dashboard-max-width .btn,
.row.justify-content-center .btn {
    border-radius: 0.55rem;
}

/* =========================================
   FAITH'S LAW SNAPSHOT
========================================= */

.dashboard-summary .text-muted.small.fw-semibold {
    letter-spacing: 0.02em;
}

.dashboard-summary .badge {
    border-radius: 999px;
}

/* =========================================
   RECENT REQUESTS TABLE
========================================= */

.dashboard-table {
    margin-bottom: 0;
}

    .dashboard-table thead th {
        white-space: nowrap;
    }

    .dashboard-table td,
    .dashboard-table th {
        vertical-align: middle;
    }

    .dashboard-table .btn.btn-sm {
        white-space: nowrap;
    }

/* =========================================
   RESPONSIVE TUNING
========================================= */

@media (max-width: 991.98px) {
    .dashboard-max-width {
        max-width: 100%;
    }

    .dashboard-summary {
        max-width: 100%;
    }

    .service-card {
        min-height: 150px;
    }
}

@media (max-width: 767.98px) {
    .section-card {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    .service-card {
        min-height: auto;
    }

        .service-card .card-body {
            padding: 1.1rem 1rem;
        }

    .dashboard-max-width .card-body {
        padding: 1rem;
    }

    .dashboard-summary .badge {
        font-size: 0.8rem;
    }
}
