/**
 * Dashboard Stylesheet for Program Saya (Learning Dashboard)
 * 
 * This stylesheet provides modern, task-oriented design for the learning dashboard.
 * Mobile-first approach with responsive breakpoints.
 * 
 * Design Principles:
 * - Strong visual hierarchy
 * - Consistent spacing scale (8/12/16/24/32/40/48px)
 * - Clean, modern, compact cards
 * - Accessible focus states
 * - Performance-optimized (minimal animations)
 */

/* ==========================================================================
   1. DASHBOARD CONTAINER & LAYOUT
   ========================================================================== */

.dashboard-container {
    background-color: #f8f9fa;
    min-height: 100vh;
    padding: 24px 0;
    position: relative;
    overflow: visible; /* Allow popups/modals to escape container */
}

.dashboard-section {
    margin-bottom: 32px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 16px;
}

/* ==========================================================================
   2. DASHBOARD HEADER - Personal Summary
   ========================================================================== */

.dashboard-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.dashboard-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #212529;
    margin: 0;
}

.dashboard-greeting-text {
    font-size: 1.1rem;
    color: #495057;
    margin: 0;
}

/* ==========================================================================
   PROGRAM HERO - Profile Banner Style
   ========================================================================== */

.program-hero {
    border-radius: 16px;
    background: white;
    overflow: hidden;
    position: relative;
}

.hero-banner-top {
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.12;
    position: relative;
}

.hero-content-area {
    margin-top: -40px;
    position: relative;
}

.hero-avatar-large {
    width: 88px;
    height: 88px;
    flex-shrink: 0;
}

.hero-avatar-large-img {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hero-avatar-large-initials {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 2rem;
    border: 4px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hero-name-large {
    font-size: 1.25rem;
    font-weight: 700;
    color: #212529;
    line-height: 1.2;
}

.hero-username-inline {
    font-size: 0.9375rem;
    font-weight: 400;
}

.hero-email-line {
    font-size: 0.875rem;
}

.hero-metric-badge {
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
}

.hero-metric-badge svg {
    flex-shrink: 0;
}

.hero-progress-button-large {
    cursor: pointer;
    transition: transform 0.2s ease;
    outline: none;
}

.hero-progress-button-large:hover {
    transform: scale(1.02);
}

.hero-progress-button-large:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 4px;
    border-radius: 12px;
}

.hero-progress-wrapper-large {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-progress-ring-wrapper-large {
    position: relative;
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-progress-ring-large {
    width: 110px;
    height: 110px;
    transform: rotate(-90deg);
}

.hero-progress-text-large {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    pointer-events: none;
}

.hero-progress-percent-large {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
    line-height: 1;
}

.hero-progress-label-large {
    text-align: center;
}

@media (max-width: 991px) {
    .hero-avatar-large {
        width: 72px;
        height: 72px;
    }

    .hero-avatar-large-img,
    .hero-avatar-large-initials {
        width: 72px;
        height: 72px;
        font-size: 1.75rem;
    }

    .hero-name-large {
        font-size: 1rem;
    }

    .hero-username-inline {
        font-size: 0.875rem;
    }

    .hero-progress-ring-wrapper-large {
        width: 100px;
        height: 100px;
    }

    .hero-progress-ring-large {
        width: 100px;
        height: 100px;
    }

    .hero-progress-percent-large {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .hero-banner-top {
        height: 60px;
    }

    .hero-content-area {
        margin-top: -30px;
        padding: 16px !important;
    }

    .hero-avatar-large {
        width: 64px;
        height: 64px;
    }

    .hero-avatar-large-img,
    .hero-avatar-large-initials {
        width: 64px;
        height: 64px;
        font-size: 1.5rem;
        border: 3px solid white;
    }

    .hero-name-large {
        font-size: 0.75rem;
        display: block;
        margin-bottom: 4px !important;
        text-align: center;
    }

    .hero-username-inline {
        font-size: 0.8125rem;
        display: block;
        margin-left: 0 !important;
        margin-bottom: 2px;
        text-align: center;
    }

    .hero-email-line {
        font-size: 0.75rem;
        max-width: 100% !important;
        text-align: center;
    }

    .hero-metric-badge {
        font-size: 0.75rem;
        padding: 4px 10px;
    }

    .hero-metric-badge svg {
        width: 10px;
        height: 10px;
    }

    .hero-progress-ring-wrapper-large {
        width: 90px;
        height: 90px;
    }

    .hero-progress-ring-large {
        width: 90px;
        height: 90px;
    }

    .hero-progress-percent-large {
        font-size: 1.5rem;
    }

    .program-hero .row {
        flex-direction: column;
        align-items: center !important;
    }

    .program-hero .col-auto {
        margin-bottom: 12px;
    }

    .program-hero .col {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .program-hero .col > div {
        width: 100%;
    }

    .program-hero .col .d-flex {
        justify-content: center !important;
    }

    .program-hero .col-12.col-lg-auto {
        width: 100%;
        margin-top: 16px;
    }
}

/* Legacy hero-card styles (keep for backward compatibility) */
.hero-card {
    border-radius: 16px;
    background: white;
}

/* ==========================================================================
   PROGRESS DETAIL POPOVER
   ========================================================================== */

.progress-detail-popover {
    max-width: 320px !important;
    border: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
}

.progress-detail-popover .popover-body {
    padding: 16px;
    font-size: 0.875rem;
}

.progress-popover-content h6 {
    font-size: 0.9375rem;
    margin-bottom: 12px;
}

.progress-popover-content ul {
    margin: 0;
    padding: 0;
}

.progress-popover-content li {
    list-style: none;
}

.progress-popover-content .border-bottom {
    border-bottom: 1px solid #e9ecef !important;
}

.progress-popover-content svg {
    flex-shrink: 0;
}

/* Adjust popover arrow */
.progress-detail-popover .popover-arrow::after {
    border-bottom-color: white;
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .progress-detail-popover {
        max-width: 280px !important;
    }

    .progress-detail-popover .popover-body {
        padding: 12px;
    }
}

.hero-avatar {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.hero-avatar-img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e9ecef;
}

.hero-avatar-initials {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    border: 2px solid #e9ecef;
}

.hero-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
    line-height: 1.2;
}

.hero-email {
    font-size: 0.875rem;
    line-height: 1.4;
}

.hero-badge {
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 12px;
}

.hero-next-action {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #e9ecef;
}

.hero-progress-button {
    cursor: pointer;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
    outline: none;
}

.hero-progress-button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.hero-progress-button:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 4px;
    border-radius: 12px;
}

.hero-progress-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-progress-ring-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-progress-ring {
    width: 120px;
    height: 120px;
    transform: rotate(-90deg);
}

.hero-progress-text {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    pointer-events: none;
}

.hero-progress-percent {
    font-size: 2.25rem;
    font-weight: 700;
    color: #212529;
    line-height: 1;
}

.hero-progress-label {
    text-align: center;
}

/* ==========================================================================
   LEARNING TIMELINE HEATMAP (GitHub-style)
   ========================================================================== */

.learning-timeline-card {
    border-radius: 12px;
    background: white;
    --lt-cell-size: 12px;
    --lt-gap: 3px;
}

/* Heatmap Container */
.lt-heatmap-container {
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.lt-heatmap-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #dee2e6 transparent;
    max-width: 100%;
}

.lt-heatmap-scroll::-webkit-scrollbar {
    height: 6px;
}

.lt-heatmap-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.lt-heatmap-scroll::-webkit-scrollbar-thumb {
    background-color: #dee2e6;
    border-radius: 3px;
}

.lt-heatmap-scroll::-webkit-scrollbar-thumb:hover {
    background-color: #ced4da;
}

.lt-heatmap-wrapper {
    position: relative;
    display: inline-block;
    padding: 8px 0;
}

/* Month Labels (Top) */
.lt-months {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    padding-left: 34px; /* Offset for day labels */
}

.lt-month {
    font-size: 0.6875rem;
    color: #6c757d;
    font-weight: 500;
    white-space: nowrap;
    text-align: center;
    flex-shrink: 0;
}

.lt-month-spacer {
    flex-shrink: 0;
}

/* Grid Area (Day Labels + Cells) */
.lt-grid-area {
    display: flex;
    gap: 6px;
}

/* Day Labels (Left) */
.lt-days {
    display: flex;
    flex-direction: column;
    padding-right: 6px;
}

.lt-day {
    font-size: 0.625rem;
    color: #6c757d;
    text-align: right;
    width: 22px;
    flex-shrink: 0;
}

/* Cell Grid */
.lt-grid {
    display: inline-flex;
    flex-direction: row;
    gap: var(--lt-gap);
}

.lt-week {
    display: flex;
    flex-direction: column;
    gap: var(--lt-gap);
}

.lt-cell {
    width: var(--lt-cell-size);
    height: var(--lt-cell-size);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.lt-cell:hover {
    outline: 2px solid rgba(0, 0, 0, 0.3);
    outline-offset: 1px;
    transform: scale(1.1);
}

/* Activity Levels (Eksam-themed green scale) */
.lt-level-0 {
    background-color: #ebedf0;
}

.lt-level-1 {
    background-color: #c6e48b;
}

.lt-level-2 {
    background-color: #7bc96f;
}

.lt-level-3 {
    background-color: #239a3b;
}

.lt-level-4 {
    background-color: #196127;
}

/* Legend */
.lt-legend {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 0.75rem;
}

.lt-legend-boxes {
    display: inline-flex;
    gap: 3px;
    align-items: center;
}

.lt-legend .lt-cell {
    cursor: default;
}

.lt-legend .lt-cell:hover {
    outline: none;
    transform: none;
}

/* Tooltip */
.lt-tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition:
        opacity 0.15s ease,
        transform 0.15s ease;
}

.lt-tooltip.show {
    opacity: 1;
    transform: translateY(-2px);
}

.lt-tooltip::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
}

.lt-tooltip--top::after {
    top: 100%;
    border-top-color: rgba(0, 0, 0, 0.9);
}

.lt-tooltip--bottom::after {
    bottom: 100%;
    border-bottom-color: rgba(0, 0, 0, 0.9);
}

/* Responsive: Tablet */
@media (max-width: 991px) {
    .learning-timeline-card {
        --lt-cell-size: 11px;
        --lt-gap: 2px;
    }

    .lt-months {
        padding-left: 32px;
    }

    .lt-day {
        width: 20px;
    }

    .lt-heatmap-container {
        justify-content: flex-start;
    }
}

/* Responsive: Mobile */
@media (max-width: 576px) {
    .learning-timeline-card {
        --lt-cell-size: 10px;
        --lt-gap: 2px;
    }

    .lt-day {
        font-size: 0.5625rem;
        width: 18px;
    }

    .lt-month {
        font-size: 0.625rem;
    }

    .lt-months {
        padding-left: 28px;
    }

    .lt-grid-area {
        gap: 4px;
    }

    .lt-legend {
        font-size: 0.6875rem;
        flex-wrap: wrap;
    }

    .lt-legend-boxes {
        gap: 2px;
    }

    .learning-timeline-card .card-body {
        padding: 12px !important;
    }

    .learning-timeline-card h6 {
        font-size: 0.875rem;
    }
}

@media (max-width: 991px) {
    .hero-card .card-body {
        padding: 20px !important;
    }

    .hero-progress-ring-wrapper {
        width: 100px;
        height: 100px;
    }

    .hero-progress-ring {
        width: 100px;
        height: 100px;
    }

    .hero-progress-percent {
        font-size: 1.875rem;
    }
}

@media (max-width: 767px) {
    .hero-card .card-body {
        padding: 16px !important;
    }

    .hero-avatar {
        width: 48px;
        height: 48px;
    }

    .hero-avatar-img,
    .hero-avatar-initials {
        width: 48px;
        height: 48px;
        font-size: 1.125rem;
    }

    .hero-name {
        font-size: 1.25rem;
    }

    .hero-progress-ring-wrapper {
        width: 96px;
        height: 96px;
    }

    .hero-progress-ring {
        width: 96px;
        height: 96px;
    }

    .hero-progress-percent {
        font-size: 1.5rem;
    }

    .hero-next-action {
        padding: 12px;
    }
}

.user-summary-avatar {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.user-avatar-img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e9ecef;
}

.user-avatar-initials {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    border: 2px solid #e9ecef;
}

.user-summary-content {
    min-width: 0;
}

.user-summary-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #212529;
    line-height: 1.3;
}

.user-summary-username {
    font-size: 0.875rem;
    color: #6c757d;
    line-height: 1.4;
}

.user-summary-email {
    font-size: 0.8125rem;
    color: #6c757d;
    line-height: 1.4;
}

.user-points-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
}

@media (max-width: 767px) {
    .user-summary-block {
        padding: 12px;
    }

    .user-summary-block .d-flex {
        gap: 12px !important;
    }

    .user-summary-avatar {
        width: 48px;
        height: 48px;
    }

    .user-avatar-img,
    .user-avatar-initials {
        width: 48px;
        height: 48px;
        font-size: 1.125rem;
    }

    .user-summary-content {
        flex: 1 1 100%;
        min-width: 0;
    }

    .user-summary-name {
        font-size: 1rem;
        max-width: 140px !important;
    }

    .user-summary-username,
    .user-summary-email {
        font-size: 0.75rem;
        max-width: 100% !important;
    }

    .user-points-badge {
        font-size: 0.6875rem;
        padding: 3px 8px;
    }
}

.dashboard-target-text {
    font-size: 0.9rem;
    color: #6c757d;
}

/* KPI Cards - FIXED: Icon alignment */
.kpi-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 12px;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
    min-height: 100px;
    height: 100%;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.kpi-card-icon {
    width: 40px;
    height: 40px;
    min-width: 40px; /* FIXED: Prevent shrinking */
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kpi-card-icon svg {
    width: 20px;
    height: 20px;
    display: block; /* FIXED: Remove inline spacing */
}

.kpi-icon-primary {
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.kpi-icon-success {
    background: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.kpi-icon-warning {
    background: rgba(255, 193, 7, 0.15);
    color: #e59d00; /* FIXED: Darker for better contrast */
}

.kpi-icon-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.kpi-card-content {
    flex: 1;
    min-width: 0;
}

.kpi-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
    line-height: 1.2;
    margin: 0; /* FIXED: Remove default margin */
}

.kpi-label {
    font-size: 0.75rem;
    color: #495057; /* FIXED: Better contrast than #6c757d */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
    line-height: 1.2;
}

.kpi-helper-text {
    font-size: 0.7rem;
    color: #6c757d;
    margin-top: 4px;
    line-height: 1.3;
    font-style: italic;
}

/* ==========================================================================
   PROGRESS BELAJAR - Circular Progress Ring (Header Position)
   ========================================================================== */

.progress-header-button {
    cursor: pointer;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
    outline: none;
}

.progress-header-button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.progress-header-button:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 4px;
    border-radius: 12px;
}

.progress-header-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.progress-ring-wrapper-header {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-ring-header {
    width: 120px;
    height: 120px;
    transform: rotate(-90deg);
}

.progress-ring-track {
    transition: stroke 0.3s ease;
}

.progress-ring-fill {
    transition: stroke-dashoffset 0.6s ease;
    stroke: #0d6efd;
}

.progress-ring-text-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    pointer-events: none;
}

.progress-percent-header {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
    line-height: 1;
}

.progress-label-small-header {
    font-size: 0.75rem;
    color: #6c757d;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.progress-header-label {
    text-align: center;
}

.progress-header-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.progress-header-helper {
    font-size: 0.75rem;
    color: #6c757d;
    line-height: 1.3;
}

/* Progress Popover Content */
.progress-popover-content {
    max-width: 280px;
}

.progress-popover-content h6 {
    font-size: 0.9375rem;
    color: #212529;
    margin-bottom: 12px;
}

.progress-popover-content ul {
    margin-bottom: 8px;
}

.progress-popover-content li {
    font-size: 0.875rem;
    color: #495057;
    line-height: 1.5;
}

.progress-popover-content .text-muted {
    font-size: 0.75rem;
    color: #6c757d;
}

@media (max-width: 991px) {
    .progress-ring-wrapper-header {
        width: 96px;
        height: 96px;
    }

    .progress-ring-header {
        width: 96px;
        height: 96px;
    }

    .progress-percent-header {
        font-size: 1.5rem;
    }

    .progress-label-small-header {
        font-size: 0.6875rem;
    }
}

@media (max-width: 767px) {
    .progress-ring-wrapper-header {
        width: 80px;
        height: 80px;
    }

    .progress-ring-header {
        width: 80px;
        height: 80px;
    }

    .progress-percent-header {
        font-size: 1.25rem;
    }

    .progress-label-small-header {
        font-size: 0.625rem;
    }

    .progress-header-title {
        font-size: 0.8125rem;
    }

    .progress-header-helper {
        font-size: 0.6875rem;
    }

    .progress-popover-content {
        max-width: 260px;
    }
}

/* ==========================================================================
   3. NEXT BEST ACTION PANEL
   ========================================================================== */

.next-action-panel {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.next-action-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s ease;
}

.next-action-card:hover {
    border-color: var(--bs-primary);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
}

.next-action-icon {
    width: 56px;
    height: 56px;
    min-width: 56px; /* FIXED: Prevent shrinking */
    border-radius: 12px;
    background: var(--bs-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.next-action-icon svg {
    width: 28px;
    height: 28px;
    display: block; /* FIXED: Remove inline spacing */
}

.next-action-content {
    flex: 1;
    min-width: 0;
}

.next-action-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    margin: 0 0 8px 0;
}

.next-action-reason {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0 0 8px 0;
}

.next-action-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center; /* FIXED: Vertical alignment */
}

.next-action-meta .badge {
    display: inline-flex; /* FIXED: Better alignment */
    align-items: center;
    gap: 4px;
    line-height: 1.4;
}

.next-action-meta .badge i {
    width: 12px; /* FIXED: Fixed icon size */
    flex-shrink: 0;
}

.next-action-cta {
    flex-shrink: 0;
}

.next-action-cta .btn,
.next-action-cta a.btn,
.next-action-cta button.btn {
    color: #ffffff !important;
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    text-decoration: none;
}

/* Free Tryout Skeleton */
.free-tryout-skeleton {
    animation: fadeIn 0.3s ease;
}

/* Free Tryout Empty State */
.free-tryout-empty-state {
    animation: fadeIn 0.4s ease;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.free-tryout-empty-state:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

/* Free Tryout Error State */
.free-tryout-error-state {
    animation: fadeIn 0.4s ease;
}

.free-tryout-error-state .btn-outline-danger:hover {
    background-color: #dc3545;
    color: white;
    border-color: #dc3545;
}

/* Free Tryout CTA Card */
.free-tryout-cta-card {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.free-tryout-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #ff8c00;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.free-tryout-icon svg {
    width: 24px;
    height: 24px;
}

.free-tryout-content {
    flex: 1;
    min-width: 0;
}

.free-tryout-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    margin: 0;
}

.free-tryout-desc {
    font-size: 0.875rem;
    color: #6c757d;
    line-height: 1.5;
    margin: 0;
}

.free-tryout-cta-wrapper {
    flex-shrink: 0;
}

/* Free Tryout Featured Card */
.free-tryout-featured-card {
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.free-tryout-featured-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.free-tryout-thumbnail {
    width: 64px;
    height: 64px;
    min-width: 64px;
}

.thumbnail-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}

.thumbnail-initials {
    line-height: 1;
}

.free-tryout-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #212529;
    margin: 0;
    line-height: 1.4;
    word-break: break-word;
}

.free-tryout-meta {
    font-size: 0.875rem;
    color: #6c757d;
    margin: 0;
}

.free-tryout-badges .badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 8px;
    white-space: nowrap;
}

.free-tryout-badges .badge.bg-success {
    background-color: #198754 !important;
    color: white !important;
}

.free-tryout-preference-helper {
    font-size: 0.75rem;
    color: #6c757d;
    line-height: 1.5;
    margin-top: 2px;
}

.free-tryout-preference-helper strong {
    color: #495057;
    font-weight: 600;
}

.preference-link {
    color: #0d6efd !important;
    font-weight: 500;
    transition: text-decoration 0.2s ease;
}

.preference-link:hover {
    text-decoration: underline !important;
    color: #0a58ca !important;
}

@media (max-width: 767px) {
    .free-tryout-cta-card .card-body,
    .free-tryout-featured-card .card-body {
        padding: 16px;
    }

    .free-tryout-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .free-tryout-icon svg {
        width: 20px;
        height: 20px;
    }

    .free-tryout-thumbnail {
        width: 56px;
        height: 56px;
        min-width: 56px;
    }

    .thumbnail-placeholder {
        width: 56px;
        height: 56px;
        font-size: 1.125rem;
    }

    .free-tryout-title {
        font-size: 1rem;
    }

    .free-tryout-meta {
        font-size: 0.8125rem;
    }

    .free-tryout-cta-wrapper {
        width: 100%;
    }

    .free-tryout-badges {
        gap: 6px !important;
    }

    .free-tryout-badges .badge {
        font-size: 0.6875rem;
        padding: 3px 6px;
    }

    .free-tryout-preference-helper {
        font-size: 0.6875rem;
        line-height: 1.4;
    }

    .free-tryout-title {
        font-size: 0.9375rem;
        line-height: 1.3;
    }

    .free-tryout-badges {
        gap: 6px !important;
    }
}

/* ==========================================================================
   4. PROGRESS & INSIGHTS
   ========================================================================== */

.progress-insights-panel .card {
    border-radius: 12px;
}

.card-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
}

.progress-item {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.progress-item-title {
    font-size: 0.9rem;
    color: #212529;
    display: flex; /* FIXED: Better alignment */
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.progress-percentage {
    font-size: 1rem;
    line-height: 1.4;
}

.progress-item-meta {
    font-size: 0.8rem;
    line-height: 1.4;
    display: flex; /* FIXED: Better alignment */
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.progress-item-meta i {
    width: 14px;
    flex-shrink: 0;
}

.progress-item-meta .text-success {
    color: #0a3622 !important;
    font-weight: 600;
}

.progress-item-meta .text-danger {
    color: #58151c !important;
    font-weight: 600;
}

.progress-item-meta .text-secondary {
    color: #6c757d !important;
}

.insight-content {
    padding: 8px;
}

.insight-icon-wrapper {
    display: flex;
    justify-content: center;
}

.insight-text {
    font-size: 0.95rem;
    color: #495057;
    line-height: 1.6;
}

.insight-stats {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* ==========================================================================
   5. FILTERS & SEARCH
   ========================================================================== */

.program-filters-wrapper {
    background: white;
    padding: 10px 12px;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.filters-search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filters-segment {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.filters-segment::-webkit-scrollbar {
    display: none;
}

.filter-pill,
button.filter-pill {
    padding: 6px 14px;
    height: 32px;
    border: 1px solid #dee2e6 !important;
    background: white !important;
    color: #212529 !important;
    border-radius: 16px;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    cursor: pointer;
    flex-shrink: 0;
    line-height: 1.4;
    text-decoration: none;
}

.filter-pill:hover:not(:disabled),
button.filter-pill:hover:not(:disabled) {
    background: #f8f9fa !important;
    border-color: #adb5bd !important;
    color: #212529 !important;
}

.filter-pill.active,
button.filter-pill.active {
    background: #0d6efd !important;
    color: #ffffff !important;
    border-color: #0d6efd !important;
    font-weight: 600;
}

.filter-pill:disabled,
button.filter-pill:disabled {
    background: #f8f9fa !important;
    color: #6c757d !important;
    border-color: #dee2e6 !important;
    opacity: 0.65;
    cursor: not-allowed;
}

.filter-pill:focus,
button.filter-pill:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

.search-wrapper {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.search-input {
    width: 100%;
    height: 32px;
    padding: 6px 38px 6px 12px;
    border: 1px solid #dee2e6;
    border-radius: 16px;
    font-size: 0.8125rem;
    transition: all 0.15s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.search-input:disabled {
    background: #f8f9fa;
    cursor: not-allowed;
}

.search-filter-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px;
    color: #6c757d;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease;
}

.search-filter-btn:hover:not(:disabled) {
    color: var(--bs-primary);
}

.search-filter-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dropdown-header {
    padding: 8px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
}

.dropdown-item {
    padding: 8px 10px;
    font-size: 0.875rem;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-item:hover {
    background: #f8f9fa;
}

.dropdown-item.active {
    background: rgba(13, 110, 253, 0.1);
    color: var(--bs-primary);
    font-weight: 600;
}

.dropdown-divider {
    margin: 4px 0;
}

@media (max-width: 768px) {
    .filters-search-bar {
        flex-direction: column;
        gap: 12px;
    }

    .filters-segment {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
        gap: 8px;
    }

    .filter-pill {
        padding: 8px 16px;
        height: 36px;
        font-size: 0.875rem;
    }

    .filter-pill.active {
        box-shadow: 0 2px 4px rgba(13, 110, 253, 0.3);
    }

    .search-wrapper {
        width: 100%;
        min-width: 0;
    }

    .search-input {
        height: 40px;
        padding: 10px 44px 10px 14px;
        font-size: 0.9375rem;
    }

    .search-filter-btn {
        right: 12px;
    }
}

@media (max-width: 576px) {
    .dashboard-container {
        padding: 16px 0;
    }

    .dashboard-section {
        margin-bottom: 24px;
    }

    .program-filters-wrapper {
        padding: 10px 12px;
    }

    .filters-search-bar {
        gap: 12px;
    }

    .filters-segment {
        gap: 8px;
    }

    .filter-pill {
        padding: 7px 14px;
        height: 34px;
        font-size: 0.8125rem;
    }

    .search-input {
        height: 38px;
        font-size: 0.875rem;
        padding: 9px 42px 9px 12px;
    }

    .dropdown-item {
        padding: 14px 20px;
        font-size: 1rem;
    }

    .program-cards-grid {
        gap: 12px;
    }

    .program-card-compact .row {
        row-gap: 12px;
    }

    .program-card-stats {
        margin-top: 8px;
    }

    .stats-row {
        gap: 12px;
    }

    .recommendation-card {
        border-radius: 10px;
    }

    .recommendation-content {
        padding: 14px;
    }

    .empty-state-container {
        padding: 32px 16px;
    }

    .empty-state-icon-circle {
        width: 100px;
        height: 100px;
    }

    .empty-state-graduation-icon {
        width: 56px;
        height: 56px;
    }

    .empty-state-title {
        font-size: 1.25rem;
    }

    .empty-state-cta {
        padding: 14px 28px;
        font-size: 1rem;
    }
}

/* ==========================================================================
   6. PROGRAM CARDS - Compact List View
   ========================================================================== */

.program-list-container {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    padding-right: 8px;
    min-height: 700px; /* Ensure empty state is fully visible without scrolling */
}

/* When empty state is active, remove height constraints */
.program-list-container.empty-state-active {
    max-height: none;
    overflow-y: visible;
    min-height: 800px; /* Extra space for empty state content */
}

/* Adjust max-height on larger screens to accommodate empty state */
@media (min-height: 800px) {
    .program-list-container {
        max-height: calc(100vh - 150px);
    }

    .program-list-container.empty-state-active {
        min-height: 900px;
    }
}

.program-list-container::-webkit-scrollbar {
    width: 8px;
}

.program-list-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.program-list-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.program-list-container::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

.program-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.program-card-wrapper,
.program-card-skeleton {
    width: 100%;
}

.program-card-compact {
    display: block;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.program-card-compact:hover {
    border-color: var(--bs-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.program-card-image-wrapper {
    width: 100%;
    padding-top: 60%;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
}

.program-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.program-card-title-compact {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.program-card-badges-compact {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
    align-items: center; /* FIXED: Vertical alignment */
}

.badge-type,
.badge-status,
.badge-count {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.4;
    display: inline-flex; /* FIXED: Better alignment */
    align-items: center;
    gap: 4px;
}

.program-card-badge-icon {
    width: 12px; /* FIXED: Fixed icon size */
    height: 12px;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.badge-tryout {
    background: rgba(13, 110, 253, 0.15); /* FIXED: Darker background */
    color: #0a58ca; /* FIXED: Darker text for contrast */
}

.badge-bimbel {
    background: rgba(25, 135, 84, 0.15); /* FIXED: Darker background */
    color: #0a3622; /* FIXED: Darker text for contrast */
}

.badge-kelas {
    background: rgba(13, 202, 240, 0.15); /* FIXED: Darker background */
    color: #087990; /* FIXED: Darker text for contrast */
}

.badge-success {
    background: #d1e7dd;
    color: #0a3622; /* FIXED: Darker for better contrast */
    font-weight: 600;
}

.badge-danger {
    background: #f8d7da;
    color: #58151c; /* FIXED: Darker for better contrast */
    font-weight: 600;
}

.badge-warning {
    background: #f8f9fa;
    color: #495057;
    font-weight: 500;
    border: 1px solid #dee2e6;
}

.badge-secondary {
    background: #e9ecef;
    color: #212529; /* FIXED: Darker for better contrast */
}

.badge-count {
    background: #f8f9fa;
    color: #212529;
    font-weight: 500;
    border: 1px solid #dee2e6;
}

.program-progress-circle {
    position: relative;
}

.progress-ring {
    position: relative;
    width: 50px;
    height: 50px;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.75rem;
    font-weight: 600;
    color: #212529;
}

.program-card-stats {
    margin-top: 12px;
}

.stats-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center; /* FIXED: Vertical alignment */
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #212529;
    line-height: 1.4;
    font-weight: 500;
}

.stat-icon {
    width: 16px;
    height: 16px;
    font-size: 0.9rem;
    color: #6c757d;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.stat-success {
    color: #198754;
}

.stat-danger {
    color: #dc3545;
}

.stat-secondary {
    color: #6c757d;
}

.program-card-action {
    display: flex;
    justify-content: flex-start;
}

@media (max-width: 767px) {
    .program-card-action {
        margin-top: 12px;
    }

    .program-card-action .btn-sm,
    .program-card-action button.btn-sm {
        min-height: 40px;
        padding: 10px 20px;
        font-weight: 600;
        font-size: 0.9375rem;
        color: #ffffff !important;
        background-color: #0d6efd !important;
        border-color: #0d6efd !important;
    }

    .btn-primary,
    .btn.btn-primary,
    button.btn-primary,
    a.btn-primary {
        font-size: 1rem;
    }

    .btn-sm,
    .btn.btn-sm,
    button.btn-sm {
        font-size: 0.875rem;
    }

    .filter-pill,
    button.filter-pill {
        font-size: 0.8125rem;
        min-height: 34px;
    }
}

/* ==========================================================================
   7. RECOMMENDATIONS SECTION
   ========================================================================== */

.recommendations-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 8px;
    position: relative;
}

.recommendations-section-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.recommendations-view-all-link {
    font-size: 0.8125rem;
    color: #6c757d;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s ease;
}

.recommendations-view-all-link:hover {
    color: #0d6efd;
    text-decoration: none;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.recommendation-card {
    display: block;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.recommendation-card:hover {
    border-color: var(--bs-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.recommendation-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #f8f9fa;
}

.recommendation-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recommendation-reason-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(13, 110, 253, 0.9);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

@media (max-width: 767px) {
    .recommendation-reason-badge {
        background: rgba(13, 110, 253, 0.85);
        font-size: 0.7rem;
        padding: 3px 10px;
    }
}

.recommendation-content {
    padding: 16px;
}

.recommendation-title {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recommendation-meta {
    margin-bottom: 8px;
}

.recommendation-benefit {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 0 0 12px 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recommendation-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.8rem;
}

.recommendation-stat {
    color: #6c757d;
}

.recommendation-action {
    margin-top: 12px;
}

.recommendation-action .btn,
.recommendation-action button.btn {
    color: #0d6efd !important;
    background: white !important;
    border-color: #0d6efd !important;
}

.recommendation-action .btn:hover,
.recommendation-action button.btn:hover {
    color: #ffffff !important;
    background: #0d6efd !important;
    border-color: #0d6efd !important;
}

/* ==========================================================================
   8. EMPTY STATES
   ========================================================================== */

.empty-state-container {
    padding: 48px 24px;
    text-align: center;
}

.empty-state-content {
    max-width: 480px;
    margin: 0 auto;
}

.empty-state-icon-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.empty-state-icon-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #e8d5ff; /* Light purple circle */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b46c1; /* Dark purple icon */
}

.empty-state-graduation-icon {
    color: #6b46c1; /* Dark purple */
}

.empty-state-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
    margin: 0 0 12px 0;
}

.empty-state-description {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.6;
    margin: 0 0 32px 0;
}

.empty-state-cta,
a.empty-state-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    background-color: #6b46c1 !important; /* Dark purple background */
    border-color: #6b46c1 !important;
    color: #ffffff !important;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.empty-state-cta:hover,
a.empty-state-cta:hover {
    background-color: #553c9a !important;
    border-color: #553c9a !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 70, 193, 0.3);
}

.empty-state-cta svg {
    flex-shrink: 0;
}

.empty-state-category-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #212529;
    text-align: center;
    margin: 0;
}

.empty-state-secondary-actions {
    padding-top: 24px;
}

.empty-state-category-cards {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.empty-state-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 24px;
    min-width: 120px;
    text-decoration: none;
    color: #212529;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.empty-state-category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #6b46c1;
    color: #212529;
    text-decoration: none;
}

.empty-state-category-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b46c1; /* Purple icon color */
}

.empty-state-category-label {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #212529;
}

@media (max-width: 576px) {
    .empty-state-category-cards {
        gap: 12px;
    }

    .empty-state-category-card {
        min-width: 100px;
        padding: 16px 20px;
    }

    .empty-state-category-icon {
        width: 40px;
        height: 40px;
    }

    .empty-state-category-icon svg {
        width: 28px;
        height: 28px;
    }
}

/* End of List Indicator */
.end-of-list-indicator {
    text-align: center;
    padding: 48px 24px;
    margin-top: 32px;
    border-top: 1px solid #e9ecef;
}

.end-of-list-icon {
    color: #198754;
    margin-bottom: 16px;
    opacity: 0.8;
}

.end-of-list-text {
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
    margin: 0 0 8px 0;
}

.end-of-list-subtext {
    font-size: 0.875rem;
    color: #6c757d;
    margin: 0;
}

/* ==========================================================================
   SKELETON LOADING
   ========================================================================== */

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 4px;
    pointer-events: none;
    user-select: none;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .skeleton {
        animation: none;
        background: #f0f0f0;
    }
}

.skeleton-line {
    display: block;
}

.skeleton-circle {
    border-radius: 50%;
}

.skeleton-composer {
    display: block;
}

.discussion-card-post-skeleton {
    display: flex;
    gap: 8px;
    padding: 10px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    pointer-events: none;
}

/* ==========================================================================
   DISCUSSION CARD (Compact - in Progress Section)
   ========================================================================== */

.discussion-card-compact .card-body {
    padding: 16px;
}

.discussion-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 8px;
}

.discussion-card-subtitle {
    font-size: 0.6875rem;
    color: #6c757d;
    margin: 0;
}

.discussion-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.discussion-card-cta:hover {
    color: #0d6efd;
}

.discussion-card-cta svg {
    width: 10px;
    height: 10px;
}

.discussion-card-composer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.8125rem;
    color: #6c757d;
}

.discussion-card-composer:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.composer-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    flex-shrink: 0;
}

.discussion-card-posts {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.discussion-card-post-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 10px;
    padding: 10px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.15s ease;
    cursor: pointer;
}

.discussion-card-post-item:hover {
    background: white;
    border-color: #0d6efd;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.1);
}

.discussion-card-post-item:focus-visible {
    outline: 2px solid rgba(13, 110, 253, 0.4);
    outline-offset: 2px;
}

.show-desktop-only {
    display: block;
}

/* .post-row removed - layout now on .discussion-card-post-item */

.post-avatar-small {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    flex-grow: 0;
    align-self: flex-start;
}

.post-avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-initials-small {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
}

.post-info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.post-header-compact {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    margin-bottom: 4px;
    overflow: hidden;
}

.post-author-small {
    font-weight: 600;
    font-size: 0.75rem;
    color: #212529;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
    flex-shrink: 0;
}

/* Removed .post-avatar-small-link and .post-tag-clickable - no nested links in summary card */
/* Whole card is now clickable via .discussion-card-post-item */

.post-time-small {
    font-size: 0.6875rem;
    color: #6c757d;
    white-space: nowrap;
    flex-shrink: 0;
}

.post-tag-small {
    padding: 2px 6px;
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    border-radius: 6px;
    font-size: 0.625rem;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.post-content-small {
    font-size: 0.75rem;
    color: #495057;
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-stats-small {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.6875rem;
    color: #6c757d;
}

.post-stats-small span {
    display: flex;
    align-items: center;
    gap: 3px;
}

.post-stats-small svg {
    width: 12px;
    height: 12px;
    color: #6c757d;
}

.discussion-card-empty {
    text-align: center;
    padding: 24px 12px;
}

.discussion-card-empty svg {
    color: #6c757d;
    margin-bottom: 12px;
    opacity: 0.5;
}

.discussion-card-empty p {
    font-size: 0.8125rem;
    color: #6c757d;
    margin: 0 0 12px 0;
}

@media (max-width: 991px) {
    .show-desktop-only {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .discussion-card-compact .card-body {
        padding: 14px;
    }

    .discussion-card-header {
        gap: 6px;
        margin-bottom: 10px;
    }

    .discussion-card-subtitle {
        font-size: 0.625rem;
    }

    .discussion-card-cta {
        font-size: 0.6875rem;
    }

    .discussion-card-composer {
        padding: 7px 10px;
        font-size: 0.75rem;
    }

    .composer-icon {
        width: 20px;
        height: 20px;
    }

    .composer-icon svg {
        width: 14px;
        height: 14px;
    }

    .discussion-card-post-item {
        padding: 8px;
    }

    .post-avatar-small,
    .avatar-initials-small {
        width: 24px;
        height: 24px;
    }

    .avatar-initials-small {
        font-size: 0.6875rem;
    }

    .post-author-small {
        font-size: 0.6875rem;
    }

    .post-time-small {
        font-size: 0.625rem;
    }

    .post-content-small {
        font-size: 0.6875rem;
    }

    .post-stats-small {
        font-size: 0.625rem;
        gap: 8px;
    }

    .discussion-card-empty {
        padding: 20px 10px;
    }

    .discussion-card-empty svg {
        width: 32px;
        height: 32px;
    }

    .discussion-card-empty p {
        font-size: 0.75rem;
    }
}

/* ==========================================================================
   DISCUSSION PREVIEW (#TemanBelajar - TemanBelajar)
   ========================================================================== */

.discussion-preview-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.discussion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 16px;
}

.discussion-header-text {
    flex: 1;
}

.discussion-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #212529;
    margin: 0 0 2px 0;
}

.discussion-subtitle {
    font-size: 0.75rem;
    color: #6c757d;
    margin: 0;
}

.discussion-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8125rem;
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.discussion-cta-link:hover {
    color: #0d6efd;
}

.discussion-cta-link svg {
    width: 12px;
    height: 12px;
}

.discussion-compose-teaser {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    margin-bottom: 14px;
    transition: all 0.2s ease;
    text-decoration: none;
    cursor: pointer;
}

.discussion-compose-teaser:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.compose-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    flex-shrink: 0;
}

.compose-avatar svg {
    width: 16px;
    height: 16px;
}

.compose-placeholder {
    color: #6c757d;
    font-size: 0.875rem;
}

.discussion-posts {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.discussion-post-item {
    display: block;
    padding: 14px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.discussion-post-item:hover {
    background: white;
    border-color: #0d6efd;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.1);
}

.post-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.post-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.post-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-initials {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.post-author-info {
    flex: 1;
    min-width: 0;
}

.post-author-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: #212529;
    margin-bottom: 2px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #6c757d;
}

.post-time {
    color: #6c757d;
}

.post-topic-badge {
    padding: 2px 6px;
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    border-radius: 8px;
    font-size: 0.6875rem;
    font-weight: 500;
}

.post-content {
    font-size: 0.875rem;
    color: #495057;
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-stats {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #495057;
    font-size: 0.8125rem;
    font-weight: 500;
}

.stat-item svg {
    width: 14px;
    height: 14px;
    color: #6c757d;
}

.discussion-empty-state {
    text-align: center;
    padding: 48px 24px;
}

.discussion-empty-state .empty-icon {
    color: #6c757d;
    margin-bottom: 16px;
    opacity: 0.5;
}

.discussion-empty-state .empty-text {
    font-size: 1rem;
    color: #6c757d;
    margin: 0 0 20px 0;
}

@media (max-width: 767px) {
    .discussion-preview-section {
        padding: 16px;
    }

    .discussion-header {
        gap: 6px;
        margin-bottom: 12px;
    }

    .discussion-title {
        font-size: 1rem;
    }

    .discussion-subtitle {
        font-size: 0.6875rem;
    }

    .discussion-cta-link {
        font-size: 0.75rem;
    }

    .discussion-cta-link svg {
        width: 10px;
        height: 10px;
    }

    .discussion-compose-teaser {
        padding: 8px 12px;
    }

    .compose-avatar {
        width: 24px;
        height: 24px;
    }

    .compose-avatar svg {
        width: 14px;
        height: 14px;
    }

    .compose-placeholder {
        font-size: 0.8125rem;
    }

    .discussion-post-item {
        padding: 12px;
    }

    .post-avatar,
    .avatar-initials {
        width: 32px;
        height: 32px;
    }

    .avatar-initials {
        font-size: 0.8125rem;
    }

    .post-author-name {
        font-size: 0.8125rem;
    }

    .post-content {
        font-size: 0.8125rem;
    }

    .stat-item {
        font-size: 0.75rem;
    }

    .stat-item svg {
        width: 12px;
        height: 12px;
    }
}

/* ==========================================================================
   9. RESPONSIVE DESIGN
   ========================================================================== */

/* Mobile First - Base styles above are for mobile */

/* Mobile (<768px) */
@media (max-width: 767px) {
    .dashboard-header {
        padding: 20px 16px;
    }

    .dashboard-greeting {
        margin-bottom: 20px;
    }

    .dashboard-title {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }

    .dashboard-greeting-text {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .dashboard-header .btn-primary {
        width: 100%;
        margin: 24px 0;
        padding: 16px 24px;
        font-size: 1rem;
    }

    .dashboard-header .row.g-3 {
        margin-top: 24px;
        row-gap: 12px !important;
    }

    .dashboard-header .col-6 {
        padding-left: 6px;
        padding-right: 6px;
    }

    .kpi-card {
        flex-direction: column;
        text-align: center;
        padding: 16px 12px;
        gap: 8px;
    }

    .kpi-card-icon {
        margin: 0 auto;
    }

    .kpi-value {
        font-size: 1.75rem;
    }

    .kpi-label {
        font-size: 0.7rem;
    }

    .kpi-helper-text {
        font-size: 0.65rem;
    }

    .next-action-panel {
        padding: 20px 16px;
    }

    .next-action-card {
        flex-direction: column;
        text-align: center;
        padding: 24px 16px;
        gap: 16px;
    }

    .next-action-icon {
        margin: 0 auto;
    }

    .next-action-content {
        width: 100%;
    }

    .next-action-cta {
        width: 100%;
    }

    .next-action-cta .btn {
        width: 100%;
        padding: 14px 24px;
        font-size: 1rem;
    }

    .progress-insights-panel .row {
        flex-direction: column-reverse;
    }

    .progress-insights-panel .col-12 {
        margin-bottom: 16px;
    }

    .progress-insights-panel .card-body {
        padding: 16px;
    }

    .progress-item {
        padding: 12px;
        margin-bottom: 12px;
    }

    .insight-content {
        padding: 16px 8px;
    }

    .program-card-compact {
        padding: 12px;
    }

    .program-card-image-wrapper {
        padding-top: 56%;
    }

    .program-card-title-compact {
        font-size: 1rem;
    }

    .program-card-action .btn {
        width: 100%;
        padding: 10px 16px;
        font-size: 0.9375rem;
    }

    .recommendations-grid {
        grid-template-columns: 1fr;
    }

    .recommendation-card {
        margin-bottom: 16px;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .recommendations-section-header {
        margin-bottom: 12px;
        padding-bottom: 6px;
    }

    .recommendations-view-all-link {
        font-size: 0.75rem;
    }
}

/* Tablet (768px+) */
@media (min-width: 768px) {
    .dashboard-container {
        padding: 32px 0;
    }

    .dashboard-section {
        margin-bottom: 40px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .dashboard-header {
        padding: 32px;
    }

    .next-action-panel {
        padding: 32px;
    }

    .program-card-image-wrapper {
        padding-top: 75%;
    }
}

/* Desktop (992px+) */
@media (min-width: 992px) {
    .dashboard-container {
        padding: 40px 0;
    }

    .dashboard-section {
        margin-bottom: 48px;
    }

    .recommendations-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
    .recommendations-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==========================================================================
   10. ACCESSIBILITY & FOCUS STATES - FIXED for better contrast
   ========================================================================== */

/* Primary button */
.btn-primary,
.btn.btn-primary,
button.btn-primary,
a.btn-primary {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    min-height: 44px;
    padding: 12px 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-size: 1rem;
    line-height: 1.5;
}

.btn-primary:hover,
.btn.btn-primary:hover,
button.btn-primary:hover,
a.btn-primary:hover {
    background-color: #0b5ed7 !important;
    border-color: #0a58ca !important;
    color: #ffffff !important;
}

.btn-primary:active,
.btn.btn-primary:active,
button.btn-primary:active,
a.btn-primary:active {
    background-color: #0a58ca !important;
    border-color: #0a58ca !important;
    color: #ffffff !important;
}

.btn-primary:focus,
.btn.btn-primary:focus,
button.btn-primary:focus,
a.btn-primary:focus {
    background-color: #0b5ed7 !important;
    border-color: #0a58ca !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.5) !important;
}

.btn-primary:disabled,
.btn.btn-primary:disabled,
button.btn-primary:disabled {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: #ffffff !important;
    opacity: 0.65;
}

/* Secondary/Outline button */
.btn-outline-primary,
.btn.btn-outline-primary,
button.btn-outline-primary,
a.btn-outline-primary {
    border: 2px solid #0d6efd !important;
    color: #0d6efd !important;
    background: white !important;
    font-weight: 600 !important;
    min-height: 44px;
    padding: 12px 24px;
    text-decoration: none;
    font-size: 1rem;
    line-height: 1.5;
}

.btn-outline-primary:hover,
.btn.btn-outline-primary:hover,
button.btn-outline-primary:hover,
a.btn-outline-primary:hover {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    color: #ffffff !important;
}

.btn-outline-primary:active,
.btn.btn-outline-primary:active,
button.btn-outline-primary:active {
    background-color: #0a58ca !important;
    border-color: #0a58ca !important;
    color: #ffffff !important;
}

.btn-outline-primary:disabled,
.btn.btn-outline-primary:disabled,
button.btn-outline-primary:disabled {
    border-color: #6c757d !important;
    color: #6c757d !important;
    background: white !important;
    opacity: 0.65;
}

/* Outline Secondary button */
.btn-outline-secondary,
.btn.btn-outline-secondary,
button.btn-outline-secondary,
a.btn-outline-secondary {
    border: 1px solid #6c757d !important;
    color: #495057 !important;
    background: white !important;
    font-weight: 500 !important;
    text-decoration: none;
    font-size: 0.875rem;
    line-height: 1.5;
}

.btn-outline-secondary:hover,
.btn.btn-outline-secondary:hover,
button.btn-outline-secondary:hover,
a.btn-outline-secondary:hover {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: #ffffff !important;
}

/* Small buttons */
.btn-sm,
.btn.btn-sm,
button.btn-sm {
    min-height: 36px;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.5;
}

/* Large buttons */
.btn-lg,
.btn.btn-lg,
button.btn-lg {
    min-height: 48px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
}

/* Focus states */
.btn:focus,
.form-control:focus,
.program-card-compact:focus,
.recommendation-card:focus,
.next-action-card:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

/* Keyboard navigation improvements */
*:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================================================
   11. LOADING & SKELETON STATES
   ========================================================================== */

.program-card-skeleton {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 16px;
}

.placeholder {
    background: #e9ecef;
    border-radius: 4px;
    display: inline-block;
}

.placeholder-glow .placeholder {
    animation: placeholder-glow 2s ease-in-out infinite;
}

@keyframes placeholder-glow {
    0% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        opacity: 0.4;
    }
}

/* ==========================================================================
   12. UTILITIES & TYPOGRAPHY FIXES
   ========================================================================== */

.text-template {
    color: var(--bs-primary) !important;
}

.bg-template {
    background-color: var(--bs-primary) !important;
}

.hide-scroll::-webkit-scrollbar {
    display: none;
}

.hide-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* FIXED: Typography consistency */
body {
    font-size: 14px;
    line-height: 1.5;
    color: #212529;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.3;
    margin-top: 0;
}

p {
    line-height: 1.6;
    margin-bottom: 16px;
}

small,
.small {
    font-size: 12px;
    line-height: 1.4;
}

/* FIXED: Consistent spacing scale */
.mb-1 {
    margin-bottom: 8px !important;
}
.mb-2 {
    margin-bottom: 12px !important;
}
.mb-3 {
    margin-bottom: 16px !important;
}
.mb-4 {
    margin-bottom: 24px !important;
}
.mb-5 {
    margin-bottom: 32px !important;
}

.mt-1 {
    margin-top: 8px !important;
}
.mt-2 {
    margin-top: 12px !important;
}
.mt-3 {
    margin-top: 16px !important;
}
.mt-4 {
    margin-top: 24px !important;
}
.mt-5 {
    margin-top: 32px !important;
}

.py-1 {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}
.py-2 {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}
.py-3 {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
}
.py-4 {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
}
.py-5 {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
}

/* ========================================
   Quick Action Cards
   ======================================== */
.quick-action-card {
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
    cursor: pointer;
}

.quick-action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.quick-action-card .card-body {
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.quick-action-icon {
    flex-shrink: 0;
}

/* Smooth scroll for anchor links */
.smooth-scroll-link {
    scroll-behavior: smooth;
}

html {
    scroll-behavior: smooth;
}

@media (max-width: 575px) {
    .quick-action-card .card-body {
        padding: 16px !important;
        min-height: 80px;
    }

    .quick-action-icon {
        width: 40px !important;
        height: 40px !important;
    }

    .quick-action-icon svg {
        width: 20px !important;
        height: 20px !important;
    }
}
