/* AAUL Design System Stylesheet */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;700&family=JetBrains+Mono:wght@400;600&display=swap");

:root {
    color-scheme: dark;
    --brand-50: #f0f7ff;
    --brand-100: #e0effe;
    --brand-200: #badcfe;
    --brand-300: #7cc0fd;
    --brand-400: #379ef9;
    --brand-500: #0c81eb;
    --brand-600: #0265ca;
    --brand-700: #0250a3;
    --brand-800: #084586;
    --brand-900: #0d3b6f;
    --brand-950: #09254a;
    
    --ink-50: #f4f6f8;
    --ink-100: #e8ecef;
    --ink-200: #c6ced6;
    --ink-300: #a3b1bd;
    --ink-400: #708496;
    --ink-500: #4d6376;
    --ink-600: #3d4e5d;
    --ink-700: #33414d;
    --ink-800: #1a232e; /* Deep background card */
    --ink-900: #0f1721; /* Dark background */
    --ink-950: #080c13; /* Deepest black */
    
    --neon-500: #33f0b5;
    
    --shadow-glow: 0 0 20px rgba(12, 129, 235, 0.15);
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.4);
    --shadow-glass: inset 0 1px 1px 0 rgba(255, 255, 255, 0.05);
}

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

body {
    font-family: "Inter", system-ui, sans-serif;
    background-color: var(--ink-950);
    color: #e2e8f0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.5;
    background-image: 
      radial-gradient(circle at 50% -20%, rgba(12, 129, 235, 0.15), transparent 70%),
      radial-gradient(circle at 0% 0%, rgba(51, 240, 181, 0.05), transparent 40%);
    background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6, .font-display {
    font-family: "Space Grotesk", sans-serif;
    color: #f8fafc;
}

a {
    color: var(--brand-400);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--brand-300);
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

header {
    background: rgba(8, 12, 19, 0.6);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 20px;
    font-family: "Space Grotesk", sans-serif;
    color: #ffffff;
}

.logo span {
    background: linear-gradient(135deg, var(--brand-400), var(--brand-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 12px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #94a3b8;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.nav-pill:hover {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.05);
}

.nav-pill-active {
    background: rgba(12, 129, 235, 0.1);
    color: var(--brand-400);
    border: 1px solid rgba(12, 129, 235, 0.2);
    box-shadow: var(--shadow-glow);
}

/* Language and Admin Controls */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* Glass & Card components */
.glass {
    background: rgba(15, 23, 33, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-glass);
}

.card {
    background: rgba(15, 23, 33, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-glass);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--brand-500);
    color: #ffffff;
    border-color: rgba(55, 158, 249, 0.2);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    background: var(--brand-400);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    border-color: rgba(255, 255, 255, 0.05);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
}

.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 9999px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Main Content Area */
main {
    flex-grow: 1;
    padding: 48px 0;
}

/* Footer */
footer {
    background: rgba(8, 12, 19, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 32px 0;
    text-align: center;
    color: #64748b;
    font-size: 13px;
}

footer p {
    margin-bottom: 8px;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 0 40px 0;
}

.hero h1 {
    font-size: 48px;
    line-height: 1.15;
    margin-bottom: 24px;
    background: linear-gradient(to right, #ffffff, #cbd5e1, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.hero p {
    font-size: 18px;
    color: #94a3b8;
    max-width: 650px;
    margin: 0 auto 32px auto;
}

/* Grids */
.grid {
    display: grid;
    gap: 24px;
}

.grid-cols-1 { grid-template-columns: 1fr; }
@media (min-width: 768px) {
    .grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
}

/* Forms & Admin Dashboard */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #cbd5e1;
}

.input {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.20);
    padding: 12px 16px;
    font-size: 14px;
    color: #e2e8f0;
    transition: all 0.2s ease;
    font-family: inherit;
}

.input:focus {
    border-color: rgba(12, 129, 235, 0.5);
    box-shadow: 0 0 0 3px rgba(12, 129, 235, 0.15);
    outline: none;
}

textarea.input {
    min-height: 150px;
    resize: vertical;
}

.form-container {
    max-width: 450px;
    margin: 40px auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 16px;
}

.admin-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
}

@media (max-width: 768px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }
}

.admin-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.table-container {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    text-align: left;
}

th {
    background: rgba(0, 0, 0, 0.2);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.05em;
    color: #64748b;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: #cbd5e1;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.01);
}

.alert {
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 14px;
    margin-bottom: 24px;
    border: 1px solid transparent;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.2);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.2);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Tailwind utility mappings for inline/dynamic code components */
.text-center { text-align: center; }
.text-transparent {
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
}
.bg-gradient-to-r {
    background: linear-gradient(to right, #ffffff, #cbd5e1, #94a3b8);
}
.max-w-2xl { max-width: 42rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mt-12 { margin-top: 48px; }
.py-6 { padding-top: 24px; padding-bottom: 24px; }
.py-12 { padding-top: 48px; padding-bottom: 48px; }
.px-3 { padding-left: 12px; padding-right: 12px; }
.py-1 { padding-top: 4px; padding-bottom: 4px; }
.flex { display: flex; }
.justify-center { justify-content: center; }
.items-center { align-items: center; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.inline-block { display: inline-block; }

/* Font and text sizes */
.text-sm { font-size: 14px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 20px; }
.text-2xl { font-size: 24px; }
.text-3xl { font-size: 30px; }
.text-4xl { font-size: 36px; }
@media (min-width: 768px) {
    .md\:text-6xl { font-size: 60px; }
}
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-mono { font-family: "JetBrains Mono", monospace; }
.tracking-tight { letter-spacing: -0.025em; }
.leading-relaxed { line-height: 1.625; }
.break-all { word-break: break-all; }
.underline { text-decoration: underline; }

/* SVGs and spacing shapes */
.w-6 { width: 24px !important; height: 24px !important; }
.w-12 { width: 48px !important; height: 48px !important; }
.h-6 { height: 24px !important; width: 24px !important; }
.h-12 { height: 48px !important; width: 48px !important; }
.w-80 { width: 320px; }
.h-80 { height: 320px; }
.rounded-xl { border-radius: 12px; }
.rounded-full { border-radius: 9999px; }

/* Background and border overrides */
.bg-brand-500\/5 { background: rgba(12, 129, 235, 0.05); }
.bg-brand-500\/10 { background: rgba(12, 129, 235, 0.1); }
.bg-neon-500\/10 { background: rgba(51, 240, 181, 0.1); }
.border-brand-500\/10 { border-color: rgba(12, 129, 235, 0.1); }
.border-brand-500\/20 { border-color: rgba(12, 129, 235, 0.2); }
.border-neon-500\/20 { border-color: rgba(51, 240, 181, 0.2); }
.text-brand-300 { color: var(--brand-300); }
.text-brand-400 { color: var(--brand-400); }
.text-neon-500 { color: var(--neon-500); }
.text-slate-200 { color: #e2e8f0; }
.text-slate-300 { color: #cbd5e1; }
.text-slate-400 { color: #94a3b8; }

.hover\:border-brand-500\/20:hover { border-color: rgba(12, 129, 235, 0.2); }
.hover\:border-neon-500\/20:hover { border-color: rgba(51, 240, 181, 0.2); }
.transition-all { transition: all 0.3s ease; }
.duration-300 { transition-duration: 300ms; }

.absolute { position: absolute; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.pointer-events-none { pointer-events: none; }
.blur-3xl { filter: blur(64px); }
.-right-20 { right: -80px; }
.-top-20 { top: -80px; }

.space-y-3 > * + * {
    margin-top: 12px;
}

.w-full { width: 100% !important; height: auto; }
.shadow-soft { box-shadow: var(--shadow-soft); }
