:root {
    --primary: #4e3125;
    --bg-light: #eae3d9;
    --text: #333;
    --white: #fff;
    --sidebar-bg: #2c1c15;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #f5f6fa;
    color: var(--text);
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background-color: var(--sidebar-bg);
    color: var(--white);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-nav {
    list-style: none;
    padding: 1rem 0;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: 0.3s;
}

.sidebar-nav li a i {
    margin-right: 15px;
    width: 20px;
}

.sidebar-nav li a:hover, .sidebar-nav li a.active {
    background-color: rgba(255,255,255,0.1);
    color: var(--white);
    border-left: 4px solid #fff;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.topbar {
    background: var(--white);
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.content-area {
    padding: 2rem;
    flex: 1;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.card {
    background: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    margin-top: 1.5rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th, .data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    font-weight: 500;
    color: #666;
    background: #fdfdfd;
}

.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.3s;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input, .form-group select {
    width: 100%;
    max-width: 400px;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Mobile Responsiveness for Admin Dashboard */
@media (max-width: 768px) {
    .admin-layout {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
    }
    
    .sidebar-header {
        text-align: center;
        padding: 1rem;
    }
    
    .sidebar-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0.5rem;
    }
    
    .sidebar-nav li a {
        padding: 0.5rem 1rem;
        margin: 0.2rem;
        border-radius: 4px;
        font-size: 0.9rem;
    }
    
    .sidebar-nav li a.active {
        border-left: none;
        border-bottom: 2px solid #fff;
    }
    
    .content-area {
        padding: 1rem;
    }
    
    .topbar {
        padding: 1rem;
        text-align: center;
    }
    
    .card {
        overflow-x: auto;
        padding: 1rem;
    }
    
    .data-table th, .data-table td {
        white-space: nowrap;
        font-size: 0.85rem;
        padding: 0.5rem;
    }
    
    .form-group input, .form-group select {
        max-width: 100%;
    }
}