/* Main Dashboard Styles - Premium Professional Report Design */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --success-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --info-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --warning-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 8px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 12px 30px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --report-bg: #f0f4f9;
    --report-border: #dce4ef;
}

/* Professional Report Layout */
body {
    background: linear-gradient(180deg, var(--report-bg) 0%, #e8ecf1 100%);
}

.section.dashboard {
    padding: 3rem 1.5rem;
    background: transparent;
    min-height: calc(100vh - 100px);
}

.main {
    background: transparent;
}

.pagetitle {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 4px solid transparent;
    border-image: var(--primary-gradient) 1;
}

.pagetitle h1 {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    margin-bottom: 0.5rem;
    font-size: 3.2rem;
    letter-spacing: -1px;
}

/* Statistics Overview Cards - PREMIUM DESIGN */
.stats-card {
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--primary-gradient);
    opacity: 1;
    transition: var(--transition);
}

.stats-card:nth-child(2)::before {
    background: var(--success-gradient);
}

.stats-card:nth-child(3)::before {
    background: var(--info-gradient);
}

.stats-card:nth-child(4)::before {
    background: var(--warning-gradient);
}

.stats-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: var(--shadow-xl);
}

.stats-number {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.stats-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin-top: 0.5rem;
}

/* Professional Report Cards - PREMIUM DESIGN */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    overflow: hidden;
    background: #ffffff;
    position: relative;
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-6px);
}

.card-header {
    border: none;
    border-radius: 16px 16px 0 0;
    padding: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 3px solid var(--report-border);
    font-size: 1.3rem;
}

.card-body {
    padding: 2rem;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-body.chart-body {
    min-height: auto;
    padding: 2rem 1.5rem;
}

/* Info Cards - Enhanced */
.info-card {
    position: relative;
    overflow: hidden;
    border-top: 4px solid transparent;
    border-left: 0;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transition: var(--transition);
}

.info-card.sales-card::before {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.info-card.revenue-card::before {
    background: linear-gradient(90deg, #ff6b6b 0%, #ee5a6f 100%);
}

.info-card.customers-card::before {
    background: linear-gradient(90deg, #ffa502 0%, #ffb84d 100%);
}

.info-card:hover::before {
    height: 6px;
}

.info-card .card-title {
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.info-card h6 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #2c3e50;
    margin: 0;
}

.info-card .ps-3 {
    flex: 1;
}

.info-card .d-flex {
    gap: 1rem;
}

/* Card Icons - Enhanced with Better Contrast */
.card-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-gradient);
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.35);
    border-radius: 10px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.info-card:hover .card-icon {
    transform: scale(1.15) rotate(-5deg);
    box-shadow: 0 12px 25px rgba(102, 126, 234, 0.4);
}

.info-card.sales-card .card-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.35);
}

.info-card.revenue-card .card-icon {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.35);
}

.info-card.customers-card .card-icon {
    background: linear-gradient(135deg, #ffa502 0%, #ffb84d 100%);
    box-shadow: 0 8px 20px rgba(255, 165, 2, 0.35);
}

/* Section Headers - Enhanced with Gradient */
.card-title {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-title.large {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.card-title.small {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 2rem 0 1rem 0;
    padding-left: 1rem;
    padding-bottom: 0.5rem;
    border-left: 4px solid transparent;
    border-image: linear-gradient(180deg, #667eea 0%, #764ba2 100%) 1;
    position: relative;
    transition: all 0.3s ease;
}

/* Filter Section - Enhanced */
.filter-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    border: 2px solid #e9ecef;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.filter-section:hover {
    box-shadow: var(--shadow-lg);
    border-color: #667eea;
}

/* Dashboard Filter Card */
.dashboard-filter-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e9ecef;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.dashboard-filter-card:hover {
    box-shadow: var(--shadow-md);
    border-color: #667eea;
}

.dashboard-filter-card .form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    font-weight: 500;
}

.dashboard-filter-card .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

/* Charts Container - Professional Design */
.chart-container {
    position: relative;
    min-height: 550px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    transition: var(--transition);
    border: 1px solid var(--report-border);
}

.chart-container .echart {
    border-radius: 8px;
    width: 100%;
}

.chart-card {
    border: 1px solid var(--report-border);
    transition: var(--transition);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.chart-card:hover {
    border-color: #667eea;
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.15);
}

.chart-card .card-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-bottom: 2px solid var(--report-border);
    padding: 1.5rem;
}

.chart-card .card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chart-card .card-body {
    padding: 2rem 1.5rem;
}

/* Data Cards - Enhanced */
.data-card {
    border: 1px solid #e9ecef;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.data-card:hover {
    border-color: #667eea;
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.15) !important;
}

.data-card .card-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-bottom: 2px solid #e9ecef;
    padding: 1.5rem;
}

.data-card .card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
}

.data-card .table {
    margin-bottom: 0;
}

.data-card .table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.data-card .table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #f8f9fa;
}

.data-card .table-striped > tbody > tr:hover {
    background-color: #e9ecef;
}

/* Tables - Professional Report Style */
.table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    font-weight: 700;
    padding: 1.1rem 0.75rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.table tbody tr {
    transition: var(--transition);
    border-bottom: 1px solid var(--report-border);
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

.table tbody td {
    padding: 0.95rem 0.75rem;
    vertical-align: middle;
    color: #2c3e50;
    font-size: 0.95rem;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: rgba(102, 126, 234, 0.03);
}

/* Loading States */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: #6c757d;
}

.loading-spinner .spinner-border {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
    color: #007bff;
}

/* Buttons - Enhanced Professional */
.btn {
    border-radius: 8px;
    font-weight: 700;
    padding: 0.75rem 1.8rem;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:active {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-outline-primary {
    border: 2px solid #667eea;
    color: #667eea;
    background: transparent;
}

.btn-outline-primary:hover {
    background: #667eea;
    color: white;
}

/* RESPONSIVE DESIGN - Enhanced */
@media (max-width: 1024px) {
    .stats-card {
        min-height: 200px;
    }
    
    .stats-number {
        font-size: 2.2rem;
    }
    
    .dashboard-filter-card {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .dashboard-filter-card .form-control {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .pagetitle h1 {
        font-size: 1.5rem;
    }

    .stats-number {
        font-size: 2rem;
    }

    .card-body {
        padding: 1.25rem;
        min-height: 100px;
    }

    .section-title {
        font-size: 1.4rem;
        margin: 1.5rem 0 0.75rem 0;
        padding-left: 0.75rem;
    }

    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.3rem;
    }
    
    .filter-section {
        padding: 1.25rem;
    }
    
    .dashboard-filter-card {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.8rem;
    }
    
    .metric-value {
        font-size: 1.5rem;
    }

    /* KEY METRICS RESPONSIVE */
    .alignment-card {
        min-height: 140px !important;
        padding: 1rem !important;
        transform: none !important; /* Remove scaling on mobile */
        margin-bottom: 1rem;
    }

    .alignment-card.total-alumni,
    .alignment-card.employment-rate,
    .alignment-card.traced-alumni {
        min-height: 140px !important;
        padding: 1rem !important;
        transform: none !important;
    }

    .align-stat {
        font-size: 2rem !important;
        min-height: 2.5rem !important;
    }

    .align-icon {
        font-size: 2.5rem !important;
        margin-bottom: 0.5rem !important;
    }

    .alignment-card h5 {
        font-size: 1rem !important;
        margin: 0.5rem 0 !important;
    }
}

@media (max-width: 576px) {
    .pagetitle h1 {
        font-size: 1.25rem;
    }

    .stats-card {
        min-height: 180px;
        margin-bottom: 1rem;
    }

    .stats-number {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.2rem;
        margin: 1rem 0 0.5rem 0;
    }

    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }
    
    .filter-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .dashboard-filter-card {
        padding: 1rem;
        margin-bottom: 1rem;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
        width: 100%;
    }
    
    .metric-value {
        font-size: 1.25rem;
    }
    
    .metric-label {
        font-size: 0.75rem;
    }

    /* KEY METRICS MOBILE OPTIMIZATION */
    .alignment-card {
        min-height: 120px !important;
        padding: 0.8rem !important;
        margin-bottom: 0.75rem;
    }

    .alignment-card.total-alumni,
    .alignment-card.employment-rate,
    .alignment-card.traced-alumni {
        min-height: 120px !important;
        padding: 0.8rem !important;
        transform: none !important;
    }

    .align-stat {
        font-size: 1.8rem !important;
        min-height: 2rem !important;
    }

    .align-icon {
        font-size: 2rem !important;
        margin-bottom: 0.3rem !important;
    }

    .alignment-card h5 {
        font-size: 0.9rem !important;
        margin: 0.3rem 0 !important;
    }
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease-out;
}

/* Custom Utilities */
.bold-text {
    font-weight: 700 !important;
}

.text-gradient {
    background: linear-gradient(135deg, #007bff 0%, #28a745 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Metric Values */
.metric-value {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.metric-value:hover {
    transform: scale(1.05);
}

.metric-label {
    font-size: 0.85rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Progress Indicators - Enhanced */
.progress {
    height: 8px;
    border-radius: 8px;
    background-color: #e9ecef;
    margin: 1rem 0;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.progress-bar {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.progress-bar {
    border-radius: 3px;
    transition: width 0.6s ease;
}

/* Campus Colors - PRESERVED */
.campus-pb { background-color: #FF6B6B; }
.campus-alangilan { background-color: #4ECDC4; }
.campus-lipa { background-color: #45B7D1; }
.campus-arasof { background-color: #96CEB4; }
.campus-jplpc { background-color: #FFEAA7; }
.campus-balayan { background-color: #DDA0DD; }
.campus-mabini { background-color: #98D8C8; }
.campus-san-juan { background-color: #F7DC6F; }
.campus-lemery { background-color: #BB8FCE; }
.campus-rosario { background-color: #85C1E9; }
.campus-lobo { background-color: #F8C471; }

/* Professional Report Dividers */
hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--report-border), transparent);
    margin: 3rem 0;
}

/* Loading States - Enhanced */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    color: #6c757d;
}

.loading-spinner .spinner-border {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1.5rem;
    color: #667eea;
    border-width: 0.3em;
}

/* Data Table Professional Styling */
.table-responsive {
    border-radius: 8px;
    overflow: hidden;
}

.table th {
    font-weight: 700;
    text-align: center;
}

.table td {
    text-align: left;
}

.table td.text-end {
    text-align: right;
    font-weight: 600;
    color: #667eea;
}

/* Filter Dropdown */
.filter {
    display: inline-block;
}

.filter .icon {
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.filter .icon:hover {
    transform: scale(1.2);
}

/* PREMIUM FILTER CARD */
.premium-filter-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border-top: 4px solid var(--primary-gradient);
}

.filter-content {
    display: flex;
    align-items: flex-end;
    gap: 2rem;
    flex-wrap: wrap;
}

.filter-left {
    flex: 1;
    min-width: 250px;
}

.filter-input-group {
    width: 100%;
}

.premium-input {
    border-radius: 10px;
    border: 2px solid #e3e8ef;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition);
}

.premium-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-right {
    display: flex;
    gap: 1rem;
}

.premium-btn {
    background: var(--primary-gradient);
    border: none;
    border-radius: 10px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: var(--transition);
}

.premium-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* PREMIUM INFO BANNER */
.premium-info-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 2rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.premium-info-banner i {
    font-size: 2.5rem;
    opacity: 0.9;
}

.premium-info-banner h5 {
    margin: 0 0 0.5rem 0;
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 0.5px;
}

.premium-info-banner p {
    margin: 0;
    opacity: 0.95;
    font-weight: 500;
}

/* STAT CARDS ROW ALIGNMENT */
.stats-row {
    display: flex;
    align-items: stretch;
}

.stats-row .col-lg-4 {
    display: flex;
}

.stats-row .stat-metric-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stats-row .stat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Ensure consistent card heights */
.stat-metric-card {
    min-height: 180px;
    display: flex;
    flex-direction: column;
}

.stat-metric-card .stat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-metric-card .stat-detail {
    margin-bottom: auto;
}

.stat-metric-card .stat-description {
    margin-top: auto;
    padding-top: 0.5rem;
}

.stat-metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--primary-gradient);
}

.stat-metric-card.stat-success::before {
    background: var(--success-gradient);
}

.stat-metric-card.stat-info::before {
    background: var(--info-gradient);
}

.stat-metric-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    color: #667eea;
}

.stat-metric-card.stat-success .stat-icon {
    background: linear-gradient(135deg, rgba(245, 93, 112, 0.15) 0%, rgba(240, 147, 251, 0.15) 100%);
    color: #f5576c;
}

.stat-metric-card.stat-info .stat-icon {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.15) 0%, rgba(0, 242, 254, 0.15) 100%);
    color: #4facfe;
}

.stat-content {
    flex: 1;
}

.stat-content h6 {
    margin: 0 0 0.8rem 0;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 900;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    line-height: 1;
}

.stat-metric-card.stat-success .stat-number {
    background: var(--success-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-metric-card.stat-info .stat-number {
    background: var(--info-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-detail {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
    margin-bottom: 1rem;
}

.stat-denominator {
    font-size: 1.2rem;
    font-weight: 600;
    color: #999;
}

.stat-bar {
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.7rem;
}

.stat-bar-fill {
    height: 100%;
    background: var(--success-gradient);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-percentage {
    margin: 0;
    font-weight: 700;
    color: #667eea;
    font-size: 0.95rem;
}

.stat-description {
    margin: 0.5rem 0 0 0;
    font-size: 0.85rem;
    color: #999;
}

/* RESPONSIVE CARD ALIGNMENT FIXES */
@media (max-width: 768px) {
    .filter-content {
        flex-direction: column;
    }
    
    .filter-left {
        width: 100%;
    }
    
    .filter-right {
        width: 100%;
    }
    
    .premium-btn {
        width: 100%;
    }
    
    .premium-info-banner {
        flex-direction: column;
        text-align: center;
    }
    
    /* Ensure cards stack properly on mobile */
    .stat-metric-card,
    .alignment-card,
    .employment-status-card {
        margin-bottom: 1.5rem;
    }
    
    /* Adjust card padding for mobile */
    .stat-metric-card {
        padding: 1.5rem;
    }
    
    .alignment-card {
        padding: 1.5rem;
    }
    
    .employment-status-card {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    /* Adjust font sizes for very small screens */
    .stat-number {
        font-size: 2.2rem;
    }
    
    .align-stat {
        font-size: 2rem;
    }
    
    .emp-value {
        font-size: 1.8rem;
    }
}

/* FLEXBOX ROW ALIGNMENT FOR CARDS */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.row > [class*="col-"] {
    display: block;
}

/* SECTION TITLES */
.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-gradient);
}

.section-title i {
    font-size: 1.8rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ALIGNMENT CARDS */
.alignment-card {
    background: white;
    border-radius: 14px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    border-top: 5px solid;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.alignment-card.aligned {
    border-top-color: #00d084;
}

.alignment-card.not-aligned {
    border-top-color: #ff6b6b;
}

.alignment-card.undefined {
    border-top-color: #ffc107;
}

.alignment-card.total-alumni {
    border-top-color: #667eea;
}

.key-metrics-row .col-lg-4 {
    display: flex;
}

.key-metrics-row .alignment-card {
    flex: 1; /* ensure equal width/height via flex */
}

.alignment-card.total-alumni,
.alignment-card.employment-rate {
    min-height: 140px;
    padding: 1rem;
    transform: none; /* keep layout flow intact */
}

.alignment-card.traced-alumni {
    border-top-color: #28a745;
    min-height: 200px; /* slightly taller to emphasize */
    padding: 1.8rem;
}

.alignment-card.traced-alumni .align-stat {
    font-size: 2.9rem; /* slightly larger stat for emphasis */
}

.alignment-card.employment-rate {
    border-top-color: #17a2b8;
}

.alignment-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.align-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.alignment-card.aligned .align-badge {
    background: rgba(0, 208, 132, 0.1);
    color: #00d084;
}

.alignment-card.not-aligned .align-badge {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
}

.alignment-card.undefined .align-badge {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.alignment-card.total-alumni .align-badge {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.alignment-card.traced-alumni .align-badge {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.alignment-card.employment-rate .align-badge {
    background: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
}

.align-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.alignment-card.aligned .align-icon {
    color: #00d084;
}

.alignment-card.not-aligned .align-icon {
    color: #ff6b6b;
}

.alignment-card.undefined .align-icon {
    color: #ffc107;
}

.alignment-card.total-alumni .align-icon {
    color: #667eea;
}

.alignment-card.traced-alumni .align-icon {
    color: #28a745;
}

.alignment-card.employment-rate .align-icon {
    color: #17a2b8;
}

.alignment-card h5 {
    margin: 1rem 0 0.5rem 0;
    font-weight: 700;
    color: #1a1a1a;
    font-size: 1.1rem;
}

.align-stat {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 1rem 0;
    min-height: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.alignment-card.aligned .align-stat {
    color: #00d084;
}

.alignment-card.not-aligned .align-stat {
    color: #ff6b6b;
}

.alignment-card.undefined .align-stat {
    color: #ffc107;
}

.alignment-card.total-alumni .align-stat {
    color: #667eea;
}

.alignment-card.traced-alumni .align-stat {
    color: #28a745;
}

.alignment-card.employment-rate .align-stat {
    color: #17a2b8;
}

.alignment-card p {
    margin: 1rem 0 0 0;
    color: #777;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Progress bar for traced alumni card */
.stat-bar {
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
    margin: 1rem 0;
}

.stat-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-percentage {
    margin: 0;
    font-weight: 700;
    color: #28a745;
    font-size: 0.95rem;
}

/* EMPLOYMENT STATUS CARDS */
.employment-status-card {
    background: white;
    border-radius: 14px;
    padding: 1.8rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-top: 5px solid;
}

.employment-status-card.employed {
    border-top-color: #667eea;
}

.employment-status-card.unemployed {
    border-top-color: #ff6b6b;
}

.employment-status-card.studying {
    border-top-color: #4facfe;
}

.employment-status-card.unresponsive {
    border-top-color: #999;
}

.employment-status-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.emp-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.employment-status-card.employed .emp-icon {
    color: #667eea;
}

.employment-status-card.unemployed .emp-icon {
    color: #ff6b6b;
}

.employment-status-card.studying .emp-icon {
    color: #4facfe;
}

.employment-status-card.unresponsive .emp-icon {
    color: #999;
}

.employment-status-card h6 {
    margin: 1rem 0 0.8rem 0;
    font-weight: 700;
    color: #333;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.emp-value {
    font-size: 2.2rem;
    font-weight: 900;
    margin: 0.8rem 0;
}

.employment-status-card.employed .emp-value {
    color: #667eea;
}

.employment-status-card.unemployed .emp-value {
    color: #ff6b6b;
}

.employment-status-card.studying .emp-value {
    color: #4facfe;
}

.employment-status-card.unresponsive .emp-value {
    color: #999;
}

.emp-bar {
    height: 4px;
    border-radius: 2px;
    margin-top: 1rem;
}

.emp-bar.employed {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.emp-bar.unemployed {
    background: linear-gradient(90deg, #ff6b6b 0%, #ff8e8e 100%);
}

.emp-bar.studying {
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
}

.emp-bar.unresponsive {
    background: #ddd;
}

/* CHART CONTAINERS - PREMIUM DESIGN */
.chart-container {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: var(--transition);
    border-top: 5px solid;
}

.chart-container:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.chart-container.campus-analysis {
    border-top-color: #667eea;
}

.chart-container.employment-analysis {
    border-top-color: #28a745;
}

.chart-container.demographic-analysis {
    border-top-color: #17a2b8;
}

.chart-container.data-insights {
    border-top-color: #ffc107;
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.chart-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.chart-title i {
    font-size: 1.6rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.chart-actions {
    display: flex;
    gap: 0.5rem;
}

.chart-download-btn {
    background: var(--primary-gradient);
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.chart-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    color: white;
    text-decoration: none;
}

.chart-content {
    min-height: 550px;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Demographic charts: force equal height and make inner charts fill container */
.demographic-row .col-lg-6 {
    display: flex;
}

.demographic-row .chart-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.5rem;
}

.demographic-row .chart-content {
    flex: 1;
    min-height: 420px; /* baseline for desktop */
}

.demographic-row .chart-content > div.echart {
    height: 100% !important;
    width: 100% !important;
}

/* Employment Status row: ensure equal card heights */
.employment-status-row .col-lg-3,
.employment-status-row .col-md-3,
.employment-status-row .col-sm-6 {
    display: flex;
}

.employment-status-row .employment-status-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem;
    min-height: 160px;
}

/* Make the employment card values vertically centered and compact */
.employment-status-card .emp-value {
    margin: 0.5rem 0;
}

/* Responsive adjustments for demographics and employment sections */
@media (max-width: 768px) {
    .demographic-row .chart-content {
        min-height: 360px !important;
    }

    .employment-status-row .employment-status-card {
        min-height: 120px;
        padding: 1rem;
    }
}

/* DATA TABLES - PREMIUM DESIGN */
.data-table-card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: var(--transition);
    border-top: 5px solid;
    height: 100%;
}

.data-table-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.data-table-card.continents {
    border-top-color: #667eea;
}

.data-table-card.sectors {
    border-top-color: #28a745;
}

.data-table-card.companies {
    border-top-color: #17a2b8;
}

.table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.table-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.table-title i {
    font-size: 1.3rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.table-actions {
    position: relative;
}

.table-menu-btn {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 1.2rem;
    padding: 0.5rem;
    border-radius: 6px;
    transition: var(--transition);
    cursor: pointer;
}

.table-menu-btn:hover {
    background: #f8f9fa;
    color: #495057;
}

.table-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    min-width: 140px;
    z-index: 1000;
    display: none;
}

.table-dropdown.show {
    display: block;
}

.table-dropdown-item {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    background: none;
    text-align: left;
    color: #495057;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}

.table-dropdown-item:hover {
    background: #f8f9fa;
    color: #212529;
}

.premium-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.premium-table thead th {
    background: var(--primary-gradient);
    color: white;
    padding: 1rem;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.premium-table tbody td {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    font-weight: 500;
    color: #495057;
}

.premium-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.premium-table tbody tr:hover {
    background: #e3f2fd;
    transform: scale(1.01);
    transition: var(--transition);
}

.premium-table tbody td:first-child {
    font-weight: 600;
    color: #212529;
}

.premium-table tbody td:last-child {
    font-weight: 700;
    color: #667eea;
    font-size: 1.1rem;
}