.dashboard-hero {
    background: linear-gradient(135deg, #1e426b 0%, #2a5a8a 60%, #eea22d 100%);
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    margin-bottom: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.dashboard-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.dashboard-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: 20%;
    width: 200px;
    height: 200px;
    background: rgba(238, 162, 45, 0.2);
    border-radius: 50%;
}

.dashboard-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.dashboard-hero p {
    opacity: 0.9;
    font-size: 1.1rem;
    margin: 0;
    position: relative;
    z-index: 1;
}

.dashboard-hero .hero-date {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    backdrop-filter: blur(10px);
}

.quick-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.quick-stat-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.dashboard-nav-card,
.dashboard-nav-card:hover,
.dashboard-nav-card:visited,
.dashboard-heading-link,
.dashboard-heading-link:hover,
.dashboard-heading-link:visited,
.dashboard-section-link,
.dashboard-section-link:hover,
.dashboard-section-link:visited {
    color: inherit;
    text-decoration: none;
}

.dashboard-nav-card:focus-visible,
.dashboard-heading-link:focus-visible,
.dashboard-section-link:focus-visible {
    outline: 3px solid rgba(238, 162, 45, 0.55);
    outline-offset: 3px;
}

.dashboard-heading-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-section-link {
    cursor: pointer;
}

.quick-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.quick-stat-icon {
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
}

.quick-stat-icon.blue { background: linear-gradient(135deg, #1e426b, #2a5a8a); color: white; }
.quick-stat-icon.orange { background: linear-gradient(135deg, #eea22d, #f5b84d); color: white; }
.quick-stat-icon.green { background: linear-gradient(135deg, #28a745, #34ce57); color: white; }
.quick-stat-icon.red { background: linear-gradient(135deg, #dc3545, #e4606d); color: white; }

.quick-stat-info { flex: 1; }

.quick-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: #1e426b;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.quick-stat-label {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
}

.quick-stat-trend {
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.quick-stat-trend.up { color: #28a745; }
.quick-stat-trend.down { color: #dc3545; }

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.dashboard-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.dashboard-card.full-width {
    grid-column: 1 / -1;
}

.dashboard-card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dashboard-card-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e426b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dashboard-card-header h2 i {
    color: #eea22d;
    font-size: 1.25rem;
}

.dashboard-card-body {
    padding: 1.5rem;
}

.client-stats {
    display: flex;
    gap: 1rem;
}

.client-stat-item {
    flex: 1;
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: 0.75rem;
    transition: transform 0.2s ease;
}

.client-stat-item:hover {
    transform: scale(1.02);
}

.client-stat-item.active {
    background: linear-gradient(135deg, rgba(30, 66, 107, 0.1), rgba(42, 90, 138, 0.05));
    border: 1px solid rgba(30, 66, 107, 0.2);
}

.client-stat-item.inactive {
    background: linear-gradient(135deg, rgba(108, 117, 125, 0.1), rgba(108, 117, 125, 0.05));
    border: 1px solid rgba(108, 117, 125, 0.2);
}

.client-stat-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.client-stat-item.active .client-stat-number { color: #1e426b; }
.client-stat-item.inactive .client-stat-number { color: #6c757d; }

.client-stat-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.client-stat-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.client-stat-item.active .client-stat-icon { color: #1e426b; }
.client-stat-item.inactive .client-stat-icon { color: #6c757d; }

.app-section {
    margin-bottom: 1.5rem;
}

.app-section:last-child {
    margin-bottom: 0;
}

.app-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f0f0f0;
}

.app-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #eea22d, #f5b84d);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.app-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1e426b;
    margin: 0;
}

.license-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.license-type-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.license-type-card:hover {
    border-color: #1e426b;
    box-shadow: 0 8px 24px rgba(30, 66, 107, 0.15);
    transform: translateY(-2px);
}

.license-type-header {
    background: #1e426b;
    color: white;
    padding: 0.875rem 1rem;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.license-type-header i { opacity: 0.8; }

.license-type-body {
    padding: 1.25rem 1rem;
}

.license-progress {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.license-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #34ce57);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.license-counts {
    display: flex;
    justify-content: space-between;
}

.license-count { text-align: center; }

.license-count-value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.license-count-value.active { color: #28a745; }
.license-count-value.inactive { color: #dc3545; }

.license-count-label {
    font-size: 0.7rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

.quick-actions {
    display: flex;
    gap: 0.75rem;
}

.due-report {
    margin-bottom: 1.5rem;
}

.due-report .dashboard-card-header {
    align-items: flex-start;
    gap: 1rem;
}

.due-report-subtitle {
    color: #6c757d;
    font-size: .875rem;
    margin: .35rem 0 0;
}

.due-report-totals {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .5rem;
}

.due-report-totals span {
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .78rem;
    font-weight: 700;
    padding: .45rem .75rem;
}

.due-report-totals .payment { background: rgba(30, 93, 153, .1); color: #1e5d99; }
.due-report-totals .license { background: rgba(238, 162, 45, .15); color: #9a6107; }

.due-report-layout {
    display: grid;
    grid-template-columns: minmax(260px, .8fr) minmax(420px, 1.4fr);
    gap: 1.5rem;
}

.due-report-layout.is-empty {
    grid-template-columns: 1fr;
}

.due-chart-panel {
    min-height: 260px;
    position: relative;
}

.due-chart-fallback {
    color: #6c757d;
    font-size: .85rem;
    margin: .5rem 0 0;
    text-align: center;
}

.due-list {
    display: grid;
    gap: .55rem;
}

.due-list-item {
    align-items: center;
    border: 1px solid #e8edf2;
    border-radius: .75rem;
    color: inherit;
    display: grid;
    gap: .8rem;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    padding: .8rem .9rem;
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.due-list-item:hover {
    border-color: #b8cce0;
    box-shadow: 0 6px 18px rgba(30, 66, 107, .09);
    color: inherit;
    transform: translateY(-1px);
}

.due-kind-icon {
    align-items: center;
    background: rgba(238, 162, 45, .14);
    border-radius: .65rem;
    color: #9a6107;
    display: inline-flex;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.due-list-item.payment .due-kind-icon { background: rgba(30, 93, 153, .1); color: #1e5d99; }
.due-main, .due-date { display: flex; flex-direction: column; min-width: 0; }
.due-main strong, .due-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.due-main small, .due-date small { color: #6c757d; font-size: .76rem; }
.due-date { text-align: right; }
.due-date strong { color: #1e426b; font-size: .86rem; }
.due-list-item > .bi-chevron-right { color: #a8b2bd; }

.due-empty {
    align-items: center;
    background: #f8fafc;
    border: 1px dashed #ccd6df;
    border-radius: .85rem;
    color: #526170;
    display: flex;
    gap: 1rem;
    min-height: 150px;
    padding: 1.25rem;
}

.due-empty > i { color: #28a745; font-size: 2rem; }
.due-empty p { font-size: .85rem; margin: .25rem 0 0; }

.quick-action-btn {
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.quick-action-btn.primary {
    background: linear-gradient(135deg, #eea22d, #f5b84d);
    color: white;
    border: none;
}

.quick-action-btn.primary:hover {
    box-shadow: 0 4px 12px rgba(238, 162, 45, 0.4);
    transform: translateY(-1px);
}

.quick-action-btn.secondary {
    background: white;
    color: #1e426b;
    border: 1px solid #1e426b;
}

.quick-action-btn.secondary:hover {
    background: #1e426b;
    color: white;
}

@media (max-width: 1200px) {
    .quick-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .due-report-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .quick-stats {
        grid-template-columns: 1fr;
    }

    .due-report .dashboard-card-header {
        flex-direction: column;
    }

    .due-report-totals { justify-content: flex-start; }
    .due-list-item { grid-template-columns: auto minmax(0, 1fr) auto; }
    .due-date { grid-column: 2; text-align: left; }
    .due-list-item > .bi-chevron-right { grid-column: 3; grid-row: 1 / span 2; }
}
