:root {
    --primary: #6366f1;
    --accent: #a855f7;
    --bg: #0f172a;
    --card: rgba(30, 41, 59, 0.8);
    --text: #f8fafc;
    --border: rgba(255, 255, 255, 0.1);
    --sidebar-w: 280px;
    --danger: #ef4444;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', sans-serif; }
body { background: #0f172a; color: var(--text); overflow-x: hidden; }

/* Dashboard Layout */
#mainDashboard { display: flex; min-height: 100vh; width: 100%; }

/* Sidebar */
.sidebar {
    width: var(--sidebar-w);
    background: #1e293b;
    height: 100vh;
    position: fixed;
    left: 0; top: 0;
    z-index: 1000;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

@media (max-width: 991px) {
    .sidebar { left: calc(-1 * var(--sidebar-w)); }
    .sidebar.active { left: 0; }
    .main-wrapper { margin-left: 0 !important; width: 100% !important; }
}

.main-wrapper {
    flex: 1;
    margin-left: var(--sidebar-w);
    width: calc(100% - var(--sidebar-w));
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.sidebar-header { padding: 30px 20px; border-bottom: 1px solid var(--border); text-align: center; }
.logo-icon { font-size: 35px; color: var(--primary); margin-bottom: 10px; text-shadow: 0 0 15px rgba(99,102,241,0.5); }

/* Luxury Tabs Design */
.sidebar-menu { display: flex; flex-direction: column; gap: 12px; padding: 25px 15px; }
.menu-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 18px 20px;
    color: #94a3b8;
    border-radius: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    font-size: 15px;
    transition: 0.3s;
}

.menu-item.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
}

.menu-item i { font-size: 20px; width: 25px; text-align: center; }

/* Content Area */
.navbar {
    height: 70px; background: #1e293b; display: flex; 
    align-items: center; padding: 0 25px; justify-content: space-between;
    border-bottom: 1px solid var(--border);
}
.mobile-toggle { background: none; border: none; color: white; font-size: 22px; cursor: pointer; display: none; }
@media (max-width: 991px) { .mobile-toggle { display: block; } }

.page-content { padding: 20px; flex: 1; }
.section { display: none; animation: fadeIn 0.4s ease; }
.section.active { display: block; }

.card { background: var(--card); border-radius: 24px; padding: 25px; border: 1px solid var(--border); margin-bottom: 25px; }

/* Table Action Buttons */
.table-responsive { overflow-x: auto; border-radius: 15px; }
table { width: 100%; border-collapse: collapse; min-width: 600px; }
th, td { padding: 15px; text-align: left; border-bottom: 1px solid var(--border); }
th { color: #94a3b8; font-size: 11px; text-transform: uppercase; }

.btn-action-group { display: flex; gap: 8px; }
.btn-manage { background: rgba(99, 102, 241, 0.1); color: var(--primary); border: 1px solid var(--primary); padding: 8px; border-radius: 10px; cursor: pointer; }
.btn-delete { background: rgba(239, 68, 68, 0.1); color: var(--danger); border: 1px solid var(--danger); padding: 8px; border-radius: 10px; cursor: pointer; }

/* Modal & Toast */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.85); backdrop-filter: blur(10px); display: none; align-items: center; justify-content: center; padding: 20px; z-index: 2000; }
.modal-box { background: #1e293b; width: 100%; max-width: 450px; border-radius: 28px; padding: 35px; border: 1px solid var(--border); }

.toast { position: fixed; top: 25px; right: 25px; padding: 18px 30px; border-radius: 15px; background: var(--primary); color: white; font-weight: 700; z-index: 3000; transform: translateX(150%); transition: 0.4s; }
.toast.show { transform: translateX(0); }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 900; }
.sidebar-overlay.active { display: block; }
