:root {
    --bg-dark: #0f1115;
    --bg-card: #1a1d24;
    --primary-gold: #FFD700;
    --primary-gold-hover: #ffea75;
    --text-main: #ffffff;
    --text-muted: #8b92a5;
    --danger: #ff4757;
    --success: #2ed573;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: var(--bg-card);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-gold);
    margin-bottom: 2.5rem;
    text-align: center;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-muted);
    padding: 12px 15px;
    border-radius: 8px;
    display: block;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-links li a:hover, .nav-links li a.active {
    background-color: rgba(255, 215, 0, 0.1);
    color: var(--primary-gold);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2.5rem;
    overflow-y: auto;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.header h1 {
    font-size: 1.8rem;
    font-weight: 600;
}

/* Stats Dashboard */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 2.5rem;
}

.stat-card {
    background-color: var(--bg-card);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.3);
}

.stat-title {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-gold);
}

/* Tables & Containers */
.data-table-container {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

th {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Forms & Inputs */
input[type="text"], input[type="password"], select {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input[type="text"]:focus, input[type="password"]:focus, select:focus {
    outline: none;
    border-color: var(--primary-gold);
}

/* Buttons */
.btn {
    background-color: var(--primary-gold);
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.btn:hover {
    background-color: var(--primary-gold-hover);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

/* Elements Assign.php */
.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.card {
    background-color: var(--bg-card);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.list-item img {
    width: 40px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
}

.btn-add {
    background-color: var(--success);
    color: #000;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

.btn-delete {
    background-color: var(--danger);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.8rem;
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: bold;
}
.success { background-color: rgba(46, 213, 115, 0.1); color: var(--success); border-left: 4px solid var(--success); }
.error { background-color: rgba(255, 71, 87, 0.1); color: var(--danger); border-left: 4px solid var(--danger); }