/* KMC Performance Monitoring System - App Styles */

/* Remove default text-align center */
.App {
    min-height: 100vh;
}

/* Login Page Background */
.login-bg {
    background: linear-gradient(135deg, #141240 0%, #1e1b5e 50%, #141240 100%);
    min-height: 100vh;
}

/* Logo Animation */
.logo-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: repeat(12, 1fr);
    }
    
    .dashboard-grid .kpi-section {
        grid-column: span 12;
    }
    
    .dashboard-grid .chart-large {
        grid-column: span 8;
    }
    
    .dashboard-grid .chart-small {
        grid-column: span 4;
    }
    
    .dashboard-grid .chart-half {
        grid-column: span 6;
    }
    
    .dashboard-grid .chart-full {
        grid-column: span 12;
    }
}

/* Sidebar Layout */
.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 256px;
    flex-shrink: 0;
    background: #141240;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 50;
    overflow-y: auto;
}

.main-content {
    flex: 1;
    margin-left: 256px;
    min-height: 100vh;
    background: #F8FAFC;
}

@media (max-width: 1023px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
}

/* Header */
.app-header {
    height: 64px;
    background: white;
    border-bottom: 1px solid #E2E8F0;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    position: sticky;
    top: 0;
    z-index: 40;
}

/* Page Container */
.page-container {
    padding: 1.5rem;
    max-width: 1600px;
    margin: 0 auto;
}

/* KPI Cards Row */
.kpi-row {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
    .kpi-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .kpi-row {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Charts Row */
.charts-row {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
    .charts-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1280px) {
    .charts-row-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Table Container */
.table-container {
    background: white;
    border-radius: 0.5rem;
    border: 1px solid #E2E8F0;
    overflow: hidden;
}

.table-scroll {
    overflow-x: auto;
}

/* Form Container */
.form-container {
    background: white;
    border-radius: 0.5rem;
    border: 1px solid #E2E8F0;
    padding: 1.5rem;
}

/* Card Hover Effect */
.card-interactive {
    transition: box-shadow 0.2s, border-color 0.2s;
}

.card-interactive:hover {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    border-color: #CBD5E1;
}

/* Status Indicators */
.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-indicator.active {
    background: #10B981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.status-indicator.pending {
    background: #F59E0B;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.status-indicator.error {
    background: #EF4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

/* Recharts Customization */
.recharts-cartesian-axis-tick-value {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    fill: #64748B;
}

.recharts-legend-item-text {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #475569 !important;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
}

@media (max-width: 1023px) {
    .mobile-menu-btn {
        display: flex;
    }
}

/* Overlay */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 40;
    display: none;
}

@media (max-width: 1023px) {
    .sidebar-overlay.visible {
        display: block;
    }
}

/* Toast Customization */
.sonner-toast {
    font-family: 'Inter', sans-serif;
}

/* Print Styles */
@media print {
    .sidebar,
    .app-header,
    .no-print {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    .page-container {
        padding: 0 !important;
    }
}
