* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f5f7fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

/* Admin Wrapper */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR STYLES */
.sidebar {
    width: 260px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: white;
    padding: 25px 0;
    position: fixed;
    left: 0;
    top: 0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.sidebar .logo {
    padding: 0 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
}

.sidebar ul {
    list-style: none;
    padding: 20px 0;
}

.sidebar ul li {
    margin: 0;
}

.sidebar ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

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

.sidebar ul li a.active {
    color: white;
    background: rgba(255, 255, 255, 0.15);
    border-left-color: white;
}

.sidebar ul li a i {
    width: 20px;
}

.sidebar .logout {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    margin: 0;
}

.sidebar .logout a {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: none;
}

/* MAIN CONTENT */
.main-content {
    margin-left: 260px;
    flex: 1;
    padding: 30px;
}

/* PAGE TITLE */
.page-title {
    margin-bottom: 30px;
    color: #333;
    font-size: 28px;
    font-weight: 600;
}

/* TABLES */
.table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.table th {
    font-weight: 600;
    color: #667eea;
    padding: 15px;
    border: none;
}

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

.table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: background 0.2s ease;
}

.table tbody tr:hover {
    background: #f8f9fa;
}

.table tbody tr:last-child {
    border-bottom: none;
}

/* BUTTONS */
.btn {
    border-radius: 6px;
    font-weight: 500;
    padding: 8px 16px;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
    color: white;
}

.btn-dark {
    background: #333;
    color: white;
}

.btn-dark:hover {
    background: #222;
    color: white;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
    color: white;
}

.btn-success {
    background: #27ae60;
    color: white;
}

.btn-success:hover {
    background: #229954;
    color: white;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
    color: white;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

/* FORMS */
.form-control {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

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

.form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

/* CARDS */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.card-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
}

/* STAT CARDS */
.stat-card {
    border: none;
    border-radius: 10px;
    color: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.stat-card h6 {
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
    margin: 0 0 10px 0;
}

.stat-card h3 {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
}

/* UTILITIES */
.text-muted {
    color: #95a5a6 !important;
}

.badge {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.badge.bg-success {
    background: #27ae60 !important;
}

.badge.bg-danger {
    background: #e74c3c !important;
}

.badge.bg-warning {
    background: #f39c12 !important;
}

.badge.bg-info {
    background: #3498db !important;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        min-height: auto;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1001;
    }

    .main-content {
        margin-left: 0;
        margin-top: 60px;
        padding: 15px;
    }

    .sidebar ul {
        display: flex;
        gap: 0;
        overflow-x: auto;
    }

    .page-title {
        font-size: 22px;
    }

    .table {
        font-size: 13px;
    }

    .table th, .table td {
        padding: 10px;
    }
}
