/* Custom Dashboard Styles */
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --info-color: #74b9ff;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --sidebar-width: 250px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-color);
    color: var(--dark-color);
}

/* Sidebar Styles */
.sidebar {
    height: 100vh;
    background: linear-gradient(180deg, var(--secondary-color) 0%, #34495e 100%);
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.sidebar-header h3 {
    color: #ecf0f1;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.sidebar-menu {
    padding: 20px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    font-size: 0.95rem;
}

.menu-item:hover {
    color: #ecf0f1;
    background: rgba(255,255,255,0.05);
    border-left-color: var(--primary-color);
    text-decoration: none;
}

.menu-item.active {
    color: #ecf0f1;
    background: rgba(52, 152, 219, 0.2);
    border-left-color: var(--primary-color);
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 20px;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

/* Cards */
.stats-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.stats-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary-color), #2980b9);
    color: white;
}

.stats-icon.bg-gradient {
    background: linear-gradient(135deg, var(--primary-color), #2980b9) !important;
}

.stats-icon.bg-success {
    background: linear-gradient(135deg, var(--success-color), #229954) !important;
}

.stats-icon.bg-warning {
    background: linear-gradient(135deg, var(--warning-color), #e67e22) !important;
}

.stats-icon.bg-secondary {
    background: linear-gradient(135deg, var(--secondary-color), #2c3e50) !important;
}

/* Upload Section */
.upload-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 2px dashed #dee2e6;
    text-align: center;
    transition: all 0.3s ease;
}

.upload-section:hover {
    border-color: var(--primary-color);
    background: rgba(52, 152, 219, 0.02);
}

.upload-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Badges */
.badge {
    font-size: 0.8rem;
}

/* Progress */
.progress {
    height: 8px;
    border-radius: 4px;
    background: #e9ecef;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-color), #2980b9);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 70px 15px 15px;
    }
    
    .mobile-toggle {
        display: block;
        position: fixed;
        top: 20px;
        left: 20px;
        z-index: 1001;
        background: var(--secondary-color);
        color: white;
        border: none;
        border-radius: 8px;
        padding: 10px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 60px 10px 10px;
    }
    
    .stats-card {
        margin-bottom: 20px;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}
