/* ==========================================================================
   Composite Stats Page - Peak Learning Admin Portal
   Simple table-based layout matching exact design
   ========================================================================== */

/* Match spacing with other pages */
#compositestatsPage {
    padding: 30px;
}

.composite-stats-container {
    padding: 0px 30px 40px 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
}

.composite-stats-table {
    max-width: 1200px;
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    animation: fadeInScale 0.6s ease-out;
}

.composite-stats-table th,
.composite-stats-table td {
    margin: 0;
    border: none;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Header Row */
.header-row {
    background: linear-gradient(135deg, #0d2d8f 0%, #14182b 100%);
}

.header-label {
    padding: 40px 35px;
    text-align: left;
    vertical-align: middle;
    background: linear-gradient(135deg, #0d2d8f 0%, #14182b 100%);
    border: none;
    box-shadow: 1px 0 0 0 rgba(255, 255, 255, 0.08);
}

.header-text {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.4;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.header-cell {
    padding: 35px 30px;
    text-align: center;
    vertical-align: middle;
    background: linear-gradient(135deg, #001d76 0%, #14182b 100%);
    border: none;
    box-shadow: 1px 0 0 0 rgba(255, 255, 255, 0.08);
}

.header-total {
    background: linear-gradient(135deg, #0d0f1c 0%, #060709 100%);
}

.dimension-badge {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 900;
    color: #ffffff;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.6);
    border: 3px solid rgba(255, 255, 255, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 30px rgba(37, 99, 235, 0.6);
    }
}

.aq-logo {
    height: 70px;
    width: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 6px 15px rgba(0, 0, 0, 0.6));
}

/* Data Rows */
.data-row {
    transition: all 0.3s ease;
    animation: slideIn 0.5s ease-out backwards;
}

.data-row:nth-child(1) { animation-delay: 0.1s; }
.data-row:nth-child(2) { animation-delay: 0.2s; }
.data-row:nth-child(3) { animation-delay: 0.3s; }
.data-row:nth-child(4) { animation-delay: 0.4s; }
.data-row:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.data-row:hover {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.15), rgba(37, 99, 235, 0.1));
}

.row-label {
    padding: 35px 35px;
    text-align: left;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #001347 0%, #002a8e 100%);
    border: none;
    box-shadow: 0 -1px 0 0 rgba(255, 255, 255, 0.08), 1px 0 0 0 rgba(255, 255, 255, 0.08);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.data-cell {
    padding: 35px 30px;
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #0037cd 0%, #002fa2 100%);
    border: none;
    box-shadow: 0 -1px 0 0 rgba(255, 255, 255, 0.08), 1px 0 0 0 rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.data-cell:hover {
    background: linear-gradient(135deg, #0041e6 0%, #0037cd 100%);
    transform: scale(1.02);
    z-index: 1;
}

.data-total {
    background: linear-gradient(135deg, #1e2847 0%, #14182b 100%);
    font-size: 28px;
    font-weight: 900;
    box-shadow: 0 -1px 0 0 rgba(255, 255, 255, 0.08), inset 0 0 30px rgba(0, 0, 0, 0.5);
}

.data-total:hover {
    background: linear-gradient(135deg, #2a3358 0%, #1e2847 100%);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .composite-stats-table {
        max-width: 100%;
    }
    
    .header-text {
        font-size: 13px;
    }
    
    .header-label,
    .row-label {
        padding: 20px 15px;
        font-size: 14px;
    }
    
    .header-cell,
    .data-cell {
        padding: 20px 10px;
    }
    
    .dimension-badge {
        width: 50px;
        height: 50px;
        font-size: 26px;
    }
    
    .aq-logo {
        height: 50px;
    }
    
    .data-cell {
        font-size: 18px;
    }
    
    .data-total {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .composite-stats-container {
        padding: 20px 10px;
    }
    
    .header-text {
        font-size: 11px;
        letter-spacing: 1px;
    }
    
    .header-label,
    .row-label {
        padding: 15px 10px;
        font-size: 12px;
    }
    
    .header-cell,
    .data-cell {
        padding: 15px 8px;
    }
    
    .dimension-badge {
        width: 40px;
        height: 40px;
        font-size: 20px;
        border: 2px solid rgba(255, 255, 255, 0.2);
    }
    
    .aq-logo {
        height: 40px;
    }
    
    .data-cell {
        font-size: 15px;
    }
    
    .data-total {
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    .header-text {
        font-size: 9px;
    }
    
    .header-label,
    .row-label {
        padding: 12px 8px;
        font-size: 11px;
    }
    
    .header-cell,
    .data-cell {
        padding: 12px 5px;
    }
    
    .dimension-badge {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .aq-logo {
        height: 30px;
    }
    
    .data-cell {
        font-size: 13px;
    }
    
    .data-total {
        font-size: 15px;
    }
}
