:root {
    --bg-dark: #0f111a;
    --bg-card: #1c2033;
    --bg-card-hover: #252a42;
    --bg-sidebar: #131622;
    
    --accent-blue: #0088ff;
    --accent-cyan: #00f0ff;
    --accent-purple: #8a2be2;
    
    --text-white: #ffffff;
    --text-gray: #a0a5bc;
    --text-danger: #ff4757;
    --text-success: #2ed573;
    
    --border-color: rgba(255, 255, 255, 0.05);
    
    --font-main: 'Kanit', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
}

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

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}
.sidebar-header h2 {
    font-size: 1.5rem;
    margin: 0;
}
.text-neon {
    color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.sidebar-nav {
    flex: 1;
    padding: 1.5rem 0;
}
.nav-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition);
    gap: 12px;
}
.nav-item:hover, .nav-item.active {
    background-color: rgba(0, 240, 255, 0.05);
    color: var(--accent-cyan);
    border-right: 3px solid var(--accent-cyan);
}
.nav-item i {
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
}
.text-danger { color: var(--text-danger) !important; }

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.topbar {
    height: 70px;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.admin-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}
.admin-profile img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
}

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

/* Dashboard Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.bg-blue { background: rgba(0, 136, 255, 0.1); color: var(--accent-blue); }
.bg-green { background: rgba(46, 213, 115, 0.1); color: var(--text-success); }
.bg-purple { background: rgba(138, 43, 226, 0.1); color: var(--accent-purple); }

.stat-info h3 {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 0.2rem;
}
.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #mobileMenuBtn {
        display: block !important;
    }
    
    .sidebar {
        position: fixed;
        left: -260px;
        top: 0;
        height: 100vh;
        z-index: 1000;
        transition: 0.3s;
    }
    
    .sidebar.show {
        left: 0;
    }
    
    .topbar {
        padding: 0 1rem;
    }
    
    .content-area {
        padding: 1rem;
    }
    
    /* Table Responsive */
    .table-container {
        overflow-x: auto;
    }
    table {
        width: 100%;
        min-width: 600px;
        border-collapse: collapse;
    }
    th, td {
        padding: 12px;
        text-align: left;
        border-bottom: 1px solid var(--border-color);
    }
    th {
        color: var(--text-gray);
        font-weight: normal;
    }
}
