/* AttendanceChart Component Styles - Modern & Professional */
.modern-chart-card {
    border-radius: 16px !important;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(249,250,251,0.95) 100%) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 4px 16px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
    padding: 1.75rem !important;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-chart-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.12),
        0 6px 20px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
}

.modern-chart-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    opacity: 0.8;
}

/* Header Styles */
.chart-header {
    position: relative;
    z-index: 2;
}

.chart-title {
    color: #1e293b !important;
    font-weight: 700 !important;
    font-size: 1.125rem !important;
    margin: 0 0 0.25rem 0 !important;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.chart-subtitle {
    color: #64748b !important;
    margin: 0 !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
}

.chart-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.refresh-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    color: white !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.refresh-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Chart Container */
.chart-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

/* Donut Alternative Styles */
.donut-alternative {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    padding: 1rem;
}

.donut-legend {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease;
}

.legend-item:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateX(4px);
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.legend-label {
    flex: 1;
    font-weight: 500;
    color: #374151;
}

.legend-value {
    font-weight: 700;
    color: #1f2937;
}

.donut-visual {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.progress-item {
    padding: 0.5rem;
}

.progress-label {
    color: #6b7280;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

/* Gauge Alternative Styles */
.gauge-alternative {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
}

.gauge-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.circular-progress {
    position: relative;
    transition: all 0.3s ease;
}

.circular-progress::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    background: white;
    border-radius: 50%;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gauge-value-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
}

.gauge-main-value {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gauge-label-text {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
    margin-top: 0.5rem;
}

.gauge-metrics {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Column Alternative Styles */
.column-alternative {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 1rem;
    gap: 1rem;
}

.column-header {
    text-align: center;
    margin-bottom: 0.5rem;
}

.column-bars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bar-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s ease;
}

.bar-item:hover {
    transform: translateX(4px);
}

.bar-label {
    width: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #374151;
    text-align: right;
    flex-shrink: 0;
}

.bar-container {
    flex: 1;
    height: 28px;
    background: #f3f4f6;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.bar-fill {
    transition: width 0.6s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.bar-value {
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Empty State */
.empty-state {
    text-align: center;
    color: #9ca3af;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 1rem;
    padding: 2rem;
}

.empty-icon {
    font-size: 3rem;
    opacity: 0.6;
    background: linear-gradient(135deg, #d1d5db 0%, #9ca3af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.empty-text {
    margin: 0;
    color: #6b7280;
    font-weight: 600;
}

.empty-subtext {
    margin: 0;
    color: #9ca3af;
    font-size: 0.8rem;
}

/* Footer */
.chart-footer {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(229, 231, 235, 0.6);
    background: linear-gradient(90deg, transparent 0%, rgba(249, 250, 251, 0.8) 50%, transparent 100%);
    margin: 0 -1.75rem -1.75rem -1.75rem;
    padding: 1rem 1.75rem;
    margin-top: 1rem;
}

.footer-text {
    color: #6b7280;
    margin: 0;
    font-style: italic;
    font-size: 0.8rem;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .modern-chart-card {
        padding: 1.25rem !important;
        border-radius: 12px !important;
    }
    
    .chart-title {
        font-size: 1rem !important;
    }
    
    .chart-actions {
        justify-content: center;
        margin-top: 0.5rem;
    }
    
    .gauge-main-value {
        font-size: 1.5rem;
    }
    
    .circular-progress {
        width: 150px !important;
        height: 150px !important;
    }
    
    .donut-alternative {
        padding: 0.5rem;
    }
    
    .bar-label {
        width: 80px;
        font-size: 0.7rem;
    }
    
    .column-bars {
        gap: 0.75rem;
    }
    
    .legend-item {
        padding: 0.375rem;
        gap: 0.5rem;
    }
} 