:root {
    --primary-color: #ff9800;
    --primary-dark: #f57c00;
    --secondary-color: #2c3e50;
    --text-color: #333;
    --bg-light: #f4f6f9;
    --sidebar-width: 260px;
    --header-height: 60px;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-light);
    margin: 0;
    padding: 0;
    color: var(--text-color);
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background: #1e1e2d;
    color: #fff;
    padding-top: 20px;
    z-index: 1000;
    transition: var(--transition);
    overflow-y: auto;
}

.sidebar-header {
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header img {
    max-width: 80%;
    height: auto;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.sidebar-menu li {
    position: relative;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: #a6a6a6;
    text-decoration: none;
    font-size: 15px;
    transition: var(--transition);
}

.sidebar-menu li a:hover, .sidebar-menu li a.active {
    background-color: #1b1b28;
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
}

.sidebar-menu li a i {
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

/* Main Content Wrapper */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 30px;
    padding-top: calc(var(--header-height) + 30px);
    transition: var(--transition);
}

/* Header/Topbar */
.topbar {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: var(--header-height);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    z-index: 999;
    transition: var(--transition);
}

.topbar-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
}

/* Cards */
.stats-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    transition: transform 0.2s;
}

.stats-card:hover {
    transform: translateY(-5px);
}

.stats-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stats-info h3 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary-color);
}

.stats-info p {
    margin: 0;
    color: #8898aa;
    font-size: 14px;
    font-weight: 500;
}

/* Tables */
.custom-table {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.custom-table thead {
    background: #f8f9fa;
}

.custom-table th {
    font-weight: 600;
    color: #8898aa;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
}

.custom-table td {
    padding: 15px 20px;
    vertical-align: middle;
    border-bottom: 1px solid #e9ecef;
}

/* Login Page */
.login-page {
    background: linear-gradient(135deg, #FF9800 0%, #FF5722 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-card .form-control {
    background: #f4f6f9;
    border: none;
    padding: 12px 15px;
    margin-bottom: 15px;
    border-radius: 8px;
}

.login-card .btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 12px;
    border-radius: 8px;
    width: 100%;
    font-weight: 600;
    margin-top: 10px;
}

.login-card .btn-primary:hover {
    background: var(--primary-dark);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sidebar {
        margin-left: calc(-1 * var(--sidebar-width));
    }
    
    .sidebar.active {
        margin-left: 0;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .topbar {
        left: 0;
    }
}
