:root {
  --bg-primary: #0F0F1A;
  --bg-secondary: #1A1A2E;
  --bg-surface: #252540;
  --bg-card: #1E1E35;
  --border-color: rgba(108,58,232,0.2);
  --border-hover: rgba(108,58,232,0.5);
  --text-primary: #E2E8F0;
  --text-secondary: #CBD5E1;
  --text-muted: #64748B;
  --accent-violet: #6C3AE8;
  --accent-violet-light: #8B5CF6;
  --accent-violet-dark: #5B21B6;
  --accent-amber: #F59E0B;
  --accent-emerald: #10B981;
  --accent-red: #EF4444;
  --accent-blue: #3B82F6;
  --accent-cyan: #06B6D4;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.6);
  --shadow-violet: 0 4px 20px rgba(108,58,232,0.3);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
  --sidebar-width: 260px;
  --header-height: 64px;
  --bottom-nav-height: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Layout */
.turko-app { display: flex; height: 100vh; overflow: hidden; }
.turko-sidebar {
    width: var(--sidebar-width);
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 20px;
}
.turko-main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.turko-header {
    height: var(--header-height);
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}
.turko-main {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}
.turko-bottom-nav { display: none; }

/* Components */
.card, .card-glass {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
}
.card-stat { border-top: 3px solid var(--accent-violet); }
.btn {
    padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 500;
    cursor: pointer; transition: var(--transition); border: none; outline: none;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-primary { background: linear-gradient(135deg, var(--accent-violet-light), var(--accent-violet)); color: white; box-shadow: var(--shadow-violet); }
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }

/* Grid */
.grid { display: grid; gap: 20px; }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Responsive */
@media (max-width: 768px) {
    .turko-sidebar { display: none; }
    .turko-bottom-nav {
        display: flex; height: var(--bottom-nav-height);
        background: rgba(26,26,46,0.9); backdrop-filter: blur(10px);
        position: fixed; bottom: 0; width: 100%; border-top: 1px solid var(--border-color);
        justify-content: space-around; align-items: center; padding-bottom: env(safe-area-inset-bottom);
        z-index: 1000;
    }
    .turko-main { padding-bottom: calc(var(--bottom-nav-height) + 24px); }
    .grid-cols-4 { grid-template-columns: 1fr; }
}

/* Links & Typography utilities */
a { color: var(--accent-violet-light); text-decoration: none; }
a:hover { color: var(--accent-violet); }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }

/* Missing Buttons */
.btn-secondary { background: transparent; color: var(--text-secondary); border: 1px solid transparent; }
.btn-secondary:hover { background: rgba(255,255,255,0.05); color: var(--text-primary); }

/* Forms & Inputs */
.form-group { margin-bottom: 15px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; }
.form-input, .form-select, .form-textarea { width: 100%; padding: 10px 14px; background: rgba(0,0,0,0.2); border: 1px solid var(--border-color); border-radius: var(--radius-sm); color: white; outline: none; transition: var(--transition); color-scheme: dark; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--accent-violet); box-shadow: 0 0 0 3px rgba(108,58,232,0.1); }
.form-input::placeholder { color: var(--text-muted); }

select option {
    background-color: var(--bg-card);
    color: var(--text-primary);
}

/* Tables */
.turko-table { width: 100%; border-collapse: collapse; text-align: left; }
.turko-table th { padding: 15px; color: var(--text-muted); font-size: 12px; font-weight: 600; text-transform: uppercase; border-bottom: 1px solid var(--border-color); }
.turko-table td { padding: 15px; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.turko-table tbody tr:hover { background: rgba(255,255,255,0.02); }

/* Badges */
.badge { padding: 4px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; text-transform: uppercase; display: inline-block; }

/* Custom Scrollbar for modern look */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
}
::-webkit-scrollbar-thumb {
    background: rgba(108,58,232,0.3);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(108,58,232,0.6);
}

.turko-sidebar {
    height: 100vh;
}
