/* ── NGL Bootcamp 2026 Design System ── */
:root {
  --color-primary: #3B3186;
  --color-primary-light: #6C5CE7;
  --color-primary-dark: #2A2363;
  --color-primary-50: #f0eeff;
  --color-primary-100: #e0dcff;
  --color-primary-200: #c5bfff;
  --color-primary-600: #3B3186;
  --color-primary-700: #2A2363;
  --color-primary-800: #1e1a4d;
  --color-primary-900: #141038;
  --color-accent: #a29bfe;
  --color-success: #00b894;
  --color-warning: #fdcb6e;
  --color-danger: #e17055;
  --color-info: #74b9ff;
  --color-surface: #ffffff;
  --color-surface-alt: #f8f9ff;
  --color-border: #e8e6f0;
  --color-text: #2d3436;
  --color-text-secondary: #636e72;
  --color-text-muted: #b2bec3;
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --shadow-sm: 0 1px 3px rgba(59,49,134,0.06);
  --shadow-md: 0 4px 16px rgba(59,49,134,0.08);
  --shadow-lg: 0 10px 40px rgba(59,49,134,0.12);
  --shadow-xl: 0 20px 60px rgba(59,49,134,0.16);
  --font-sans: 'Montserrat', system-ui, -apple-system, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); font-weight: 500; color: var(--color-text); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

a { color: var(--color-primary-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--color-primary); }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.625rem 1.5rem; border-radius: var(--radius-lg); font-weight: 700; font-size: 0.875rem; border: none; cursor: pointer; transition: var(--transition); text-decoration: none; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light)); color: white; }
.btn-primary:hover { background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary)); box-shadow: 0 8px 30px rgba(108,92,231,0.3); color: white; }
.btn-outline { background: transparent; color: var(--color-primary-light); border: 2px solid var(--color-primary-light); }
.btn-outline:hover { background: var(--color-primary-light); color: white; }
.btn-success { background: linear-gradient(135deg, #00b894, #00cec9); color: white; }
.btn-danger { background: linear-gradient(135deg, #e17055, #d63031); color: white; }
.btn-sm { padding: 0.375rem 1rem; font-size: 0.75rem; }
.btn-lg { padding: 0.875rem 2rem; font-size: 1rem; }
.btn-icon { width: 2.5rem; height: 2.5rem; padding: 0; border-radius: var(--radius-md); }

/* ── Cards ── */
.card { background: var(--color-surface); border-radius: var(--radius-xl); padding: 1.5rem; box-shadow: var(--shadow-sm); border: 1px solid var(--color-border); transition: var(--transition); }
.card:hover { box-shadow: var(--shadow-md); }
.card-glass { background: rgba(255,255,255,0.05); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-xl); }

/* ── Form ── */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-weight: 600; font-size: 0.8125rem; color: var(--color-text-secondary); margin-bottom: 0.375rem; text-transform: uppercase; letter-spacing: 0.05em; }
.form-input { width: 100%; padding: 0.75rem 1rem; border: 2px solid var(--color-border); border-radius: var(--radius-md); font-family: var(--font-sans); font-size: 0.9375rem; transition: var(--transition); background: var(--color-surface); color: var(--color-text); }
.form-input:focus { outline: none; border-color: var(--color-primary-light); box-shadow: 0 0 0 4px rgba(108,92,231,0.1); }
.form-input::placeholder { color: var(--color-text-muted); }
select.form-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23636e72' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
textarea.form-input { resize: vertical; min-height: 100px; }

/* ── Badges ── */
.badge { display: inline-flex; align-items: center; padding: 0.25rem 0.625rem; border-radius: 999px; font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.badge-success { background: rgba(0,184,148,0.12); color: #00b894; }
.badge-danger { background: rgba(225,112,85,0.12); color: #e17055; }
.badge-warning { background: rgba(253,203,110,0.2); color: #e17055; }
.badge-info { background: rgba(116,185,255,0.12); color: #0984e3; }
.badge-primary { background: rgba(108,92,231,0.12); color: var(--color-primary-light); }
.badge-neutral { background: rgba(178,190,195,0.15); color: var(--color-text-secondary); }

/* ── Toggle Switch ── */
.toggle { position: relative; display: inline-block; width: 44px; height: 24px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: #dfe6e9; border-radius: 24px; cursor: pointer; transition: var(--transition); }
.toggle-slider::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; bottom: 3px; background: white; border-radius: 50%; transition: var(--transition); box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.toggle input:checked + .toggle-slider { background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light)); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }

/* ── Stats Card ── */
.stat-card { background: var(--color-surface); border-radius: var(--radius-xl); padding: 1.5rem; border: 1px solid var(--color-border); position: relative; overflow: hidden; }
.stat-card::before { content: ''; position: absolute; top: 0; right: 0; width: 80px; height: 80px; border-radius: 0 0 0 100%; opacity: 0.08; }
.stat-card .stat-value { font-size: 2rem; font-weight: 800; background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; }
.stat-card .stat-label { font-size: 0.75rem; font-weight: 600; color: var(--color-text-secondary); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0.25rem; }

/* ── Flash Messages ── */
.alert { padding: 1rem 1.25rem; border-radius: var(--radius-lg); font-size: 0.875rem; font-weight: 600; display: flex; align-items: center; gap: 0.75rem; animation: slideDown 0.4s ease; }
.alert-success { background: rgba(0,184,148,0.1); color: #00b894; border: 1px solid rgba(0,184,148,0.2); }
.alert-error { background: rgba(225,112,85,0.1); color: #e17055; border: 1px solid rgba(225,112,85,0.2); }
.alert-warning { background: rgba(253,203,110,0.15); color: #e17055; border: 1px solid rgba(253,203,110,0.3); }

/* ── Table ── */
.table-wrapper { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--color-border); }
table.datatable { width: 100%; border-collapse: collapse; }
table.datatable th { background: var(--color-surface-alt); padding: 0.75rem 1rem; font-size: 0.75rem; font-weight: 700; color: var(--color-text-secondary); text-transform: uppercase; letter-spacing: 0.05em; text-align: left; border-bottom: 2px solid var(--color-border); white-space: nowrap; }
table.datatable td { padding: 0.75rem 1rem; font-size: 0.875rem; border-bottom: 1px solid var(--color-border); vertical-align: middle; }
table.datatable tbody tr { transition: var(--transition); }
table.datatable tbody tr:hover { background: var(--color-primary-50); }

/* ── Modal ── */
.modal-overlay { position: fixed; inset: 0; background: rgba(20,16,56,0.6); backdrop-filter: blur(8px); z-index: 1000; display: none; align-items: center; justify-content: center; padding: 1rem; animation: fadeIn 0.3s ease; }
.modal-overlay.active { display: flex; }
.modal { background: var(--color-surface); border-radius: var(--radius-2xl); max-width: 540px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-xl); animation: scaleIn 0.3s ease; }
.modal-header { padding: 1.5rem 1.5rem 0; }
.modal-body { padding: 1.5rem; }
.modal-footer { padding: 0 1.5rem 1.5rem; display: flex; gap: 0.75rem; justify-content: flex-end; }

/* ── Animations ── */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: none; } }
.fade-in { animation: fadeIn 0.4s ease; }

/* ── Progress Bar ── */
.progress { height: 8px; background: var(--color-border); border-radius: 999px; overflow: hidden; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light)); border-radius: 999px; transition: width 0.8s ease; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-text-muted); }

/* ── Responsive ── */
@media (max-width: 768px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  .btn-lg { padding: 0.75rem 1.5rem; font-size: 0.875rem; }
  .stat-card .stat-value { font-size: 1.5rem; }
}

/* ── DataTables Override ── */
.dataTables_wrapper { font-family: var(--font-sans); }
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input { font-family: var(--font-sans); padding: 0.5rem 0.75rem; border: 2px solid var(--color-border); border-radius: var(--radius-md); font-size: 0.875rem; }
.dataTables_wrapper .dataTables_filter input:focus { outline: none; border-color: var(--color-primary-light); }
.dataTables_wrapper .dataTables_info { font-size: 0.8125rem; color: var(--color-text-secondary); }
.dataTables_wrapper .dataTables_paginate .paginate_button { border-radius: var(--radius-sm) !important; font-weight: 600; font-size: 0.8125rem; }
.dataTables_wrapper .dataTables_paginate .paginate_button.current { background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light)) !important; color: white !important; border: none !important; }
