@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-dark: #0f172a;      /* slate-900 */
    --bg-sidebar: #0b1120;   /* darker slate */
    --bg-card: #1e293b;      /* slate-800 */
    --border-color: #334155; /* slate-700 */
    
    --primary: #06b6d4;      /* cyan-500 */
    --primary-glow: rgba(6, 182, 212, 0.5);
    --secondary: #8b5cf6;    /* violet-500 */
    
    --text-main: #f8fafc;    /* slate-50 */
    --text-muted: #94a3b8;   /* slate-400 */
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* App Layout */
.app-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 1000;
    transition: all 0.3s ease;
}

.main-content {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at top right, #1e293b, #0f172a 40%);
}

/* Sidebar Brand */
.sidebar-brand {
    padding: 1.5rem 1.8rem;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    letter-spacing: 1px;
}
.sidebar-brand i {
    color: var(--text-muted);
    margin-right: 12px;
    font-size: 1.6rem;
}

/* Sidebar Menu */
.sidebar-menu {
    list-style: none;
    padding: 1rem 0;
    margin: 0;
    overflow-y: auto;
}
.sidebar-menu li {
    padding: 0.2rem 1rem;
}
.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}
.sidebar-menu a i {
    margin-right: 12px;
    font-size: 1.2rem;
}
.sidebar-menu a:hover {
    color: white;
}
.sidebar-menu a.active {
    background: rgba(6, 182, 212, 0.1);
    color: var(--primary);
    box-shadow: inset 4px 0 0 var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

/* Topbar */
.topbar {
    height: 70px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 999;
}

/* Cards & Containers */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.5);
    color: var(--text-main);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.5), 0 0 15px var(--primary-glow);
    border-color: rgba(6, 182, 212, 0.3);
}

/* Typography & Utilities */
.page-title {
    color: white;
    font-weight: 700;
    font-size: 1.8rem;
}
.text-muted {
    color: var(--text-muted) !important;
}
.text-dark {
    color: var(--text-main) !important;
}
.text-primary {
    color: var(--primary) !important;
}
.bg-light {
    background-color: rgba(255,255,255,0.05) !important;
}
.bg-white {
    background-color: var(--bg-card) !important;
}

/* Tables */
.table-custom {
    color: var(--text-main);
    width: 100%;
}
.table-custom th {
    background-color: rgba(0,0,0,0.2);
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
}
.table-custom td {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
    vertical-align: middle;
}
.table-custom tbody tr:hover {
    background-color: rgba(255,255,255,0.02);
}

/* Forms & Inputs */
.form-control-custom, .form-select {
    background-color: rgba(0,0,0,0.2) !important;
    border: 1px solid var(--border-color);
    color: white !important;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
}
.form-control-custom:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(6, 182, 212, 0.25);
}
.input-group-text {
    background-color: rgba(0,0,0,0.4);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* Buttons */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
    transition: all 0.3s;
    border-radius: 0.5rem;
}
.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.5);
    color: white;
}
.btn-secondary {
    background: var(--border-color);
    border: none;
    color: white;
}
.btn-secondary:hover {
    background: #475569;
}

/* Badges */
.badge {
    padding: 0.5em 0.8em;
    font-weight: 600;
}
