:root {
    --primary: #4361ee;
    --primary-gradient: linear-gradient(135deg, #4361ee 0%, #3f37c9 100%);
    --secondary: #3f37c9;
    --success: #4cc9f0;
    --danger: #f72585;
    --dark: #1e1e2d;
    --light: #f4f7fe;
    --sidebar-width: 280px;
    --card-shadow: 0 10px 40px rgba(29, 33, 41, 0.05);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background-color: var(--light);
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--dark);
    overflow-x: hidden;
}

/* --- Layout --- */
#wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

#sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--primary-gradient);
    color: white;
    position: fixed;
    transition: var(--transition-smooth);
    z-index: 1050;
    box-shadow: 10px 0 30px rgba(0,0,0,0.05);
}

#content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 30px;
    transition: var(--transition-smooth);
    width: 100%;
}

/* --- Mobile Header --- */
#mobile-header {
    height: 70px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 1040;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

#sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    z-index: 1045;
    transition: var(--transition-smooth);
}

/* --- Navigation --- */
.sidebar-header {
    padding: 40px 25px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header h4 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

.sidebar-menu {
    padding: 30px 0;
    list-style: none;
}

.sidebar-menu li a {
    padding: 14px 25px;
    display: flex;
    align-items: center;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition-smooth);
    border-left: 5px solid transparent;
    font-weight: 500;
}

.sidebar-menu li a:hover, .sidebar-menu li a.active {
    background: rgba(255,255,255,0.1);
    color: white;
    border-left-color: var(--success);
}

.sidebar-menu li a i {
    margin-right: 15px;
    font-size: 1.3rem;
    width: 24px;
    text-align: center;
}

/* --- Components --- */
.card {
    border: none;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    margin-bottom: 24px;
    transition: var(--transition-smooth);
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    padding: 20px 25px;
    font-weight: 700;
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.4);
}

/* --- Responsive Table --- */
.table-responsive-custom {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table th {
    font-weight: 600;
    color: #8898aa;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    padding: 15px 25px;
}

.table td {
    padding: 15px 25px;
    vertical-align: middle;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    #sidebar {
        left: calc(-1 * var(--sidebar-width));
    }
    
    #content {
        margin-left: 0;
        padding: 20px;
    }
    
    #sidebar.show {
        left: 0;
    }
    
    #sidebar.show + #sidebar-overlay {
        display: block;
    }
    
    .card {
        border-radius: 15px;
    }
}

@media (max-width: 576px) {
    #content {
        padding: 15px;
    }
    
    .h2, h2 {
        font-size: 1.5rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }
}
