/* Custom styles for the application */

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: #1f2937;
    line-height: 1;
}

.stat-content p {
    margin: 0;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Mobile Menu Toggle */
.sidebar-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    padding: 0.5rem;
    color: #333;
}

/* Mobile Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.sidebar-overlay.active {
    display: block;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .sidebar-toggle {
        display: inline-block;
    }
    
    .left-sidebar {
        position: fixed;
        left: -280px;
        z-index: 999;
        transition: left 0.3s ease;
        height: 100vh;
        overflow-y: auto;
    }
    
    .left-sidebar.active {
        left: 0;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    .topbar {
        left: 0 !important;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .stat-content h3 {
        font-size: 1.5rem;
    }
    
    .search-box {
        display: none;
    }
}

/* Dashboard Header Styles */
.dashboard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    color: white;
}

.dashboard-header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.dashboard-header .page-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dashboard-header .header-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.content-wrapper {
    padding: 0;
}

/* Card improvements */
.card {
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.card-header {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 1.25rem;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

/* Table improvements */
.table {
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 0.75rem;
    border-bottom: 2px solid #e5e7eb;
}

.table td {
    padding: 0.75rem;
    vertical-align: middle;
}

/* Badge styles */
.badge {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
}

/* Form improvements */
.form-label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
}

.form-control:focus, .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Button improvements */
.btn {
    padding: 0.5rem 1rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}
/* Submenu Styles for Sidebar */
.sidebar-menu .has-submenu > a {
    position: relative;
}

.sidebar-menu .has-submenu .menu-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.sidebar-menu .has-submenu .menu-arrow.rotate {
    transform: translateY(-50%) rotate(90deg);
}

.sidebar-menu .submenu {
    display: none;
    background: rgba(0, 0, 0, 0.1);
    padding-left: 0;
    list-style: none;
    margin: 0;
}

.sidebar-menu .submenu li {
    border-left: 3px solid transparent;
}

.sidebar-menu .submenu li:hover {
    border-left-color: #667eea;
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-menu .submenu a {
    padding: 10px 20px 10px 50px;
    display: block;
    color: #a0aec0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.sidebar-menu .submenu a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-menu .submenu a.active {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    border-left: 3px solid #667eea;
    margin-left: -3px;
}

.sidebar-menu .submenu i {
    margin-right: 10px;
    font-size: 0.85rem;
}

.sidebar-menu .has-submenu.active > a {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

