@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Sora:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --bg-base: #0B0B0F;
    --bg-surface: #131317;
    --primary: #ff8a00;
    --secondary: #c4041a;
    --tertiary: #00dbe9;
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-heading: 'Sora', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'Space Grotesk', monospace;
}

body {
    background-color: var(--bg-base);
    color: white;
    font-family: var(--font-body);
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

.font-mono {
    font-family: var(--font-mono);
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    border-radius: 16px;
    z-index: 1;
}

.glass-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.02) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: -1;
}

.glass-panel-active {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    position: relative;
    border-radius: 16px;
    z-index: 1;
}

.glass-panel-active::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, var(--primary) 0%, rgba(255, 138, 0, 0.2) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: -1;
    box-shadow: 0 0 20px rgba(255, 138, 0, 0.4);
}

.glow-orange {
    text-shadow: 0 0 20px rgba(255, 138, 0, 0.4);
    box-shadow: 0 0 20px rgba(255, 138, 0, 0.4);
}

.glow-cyan {
    text-shadow: 0 0 20px rgba(0, 219, 233, 0.4);
    box-shadow: 0 0 20px rgba(0, 219, 233, 0.4);
}

.glow-red {
    text-shadow: 0 0 20px rgba(196, 4, 26, 0.4);
    box-shadow: 0 0 20px rgba(196, 4, 26, 0.4);
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.1));
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.3;
}

.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}

.ambient-glow.primary { background: var(--primary); width: 300px; height: 300px; top: -50px; left: -50px; }
.ambient-glow.secondary { background: var(--secondary); width: 400px; height: 400px; bottom: 10%; right: -100px; }
.ambient-glow.tertiary { background: var(--tertiary); width: 250px; height: 250px; top: 40%; left: 30%; }

.sensitivity-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.sensitivity-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 4px;
    position: absolute;
    left: 0;
    top: 0;
    transition: width 0.3s ease;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(19, 19, 23, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid var(--glass-border);
    z-index: 50;
    padding-bottom: env(safe-area-inset-bottom, 12px);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.bottom-nav-item.active {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(255, 138, 0, 0.5);
}

.bottom-nav-item i {
    font-size: 24px;
}

.bottom-nav-item.active i {
    filter: drop-shadow(0 0 5px rgba(255, 138, 0, 0.8));
}

.preset-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.preset-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.preset-card:hover::before {
    background: linear-gradient(135deg, rgba(255, 138, 0, 0.4) 0%, rgba(255, 255, 255, 0.05) 100%);
}

.skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.1) 37%, rgba(255, 255, 255, 0.05) 63%);
    background-size: 400% 100%;
    animation: shimmer 1.5s ease infinite;
    border-radius: 4px;
}

@keyframes shimmer {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 12px 24px;
    border-radius: 8px;
    background: var(--bg-surface);
    color: white;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: toast-in 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toast.toast-success { border-color: #10b981; }
.toast.toast-error { border-color: var(--secondary); }
.toast.toast-info { border-color: var(--tertiary); }

.toast.toast-out {
    animation: toast-out 0.2s ease forwards;
}

@keyframes toast-in {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes toast-out {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-20px); }
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.primary-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(255, 138, 0, 0.3);
}

.primary-btn:hover {
    background: #ff9922;
    box-shadow: 0 6px 20px rgba(255, 138, 0, 0.5);
    transform: translateY(-2px);
}

.secondary-btn {
    background: var(--bg-surface);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 24px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.ghost-btn {
    background: transparent;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ghost-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 1px var(--primary), 0 0 15px rgba(255, 138, 0, 0.2) !important;
}

.chip {
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.chip.primary { background: rgba(255, 138, 0, 0.2); color: var(--primary); border-color: rgba(255, 138, 0, 0.3); }
.chip.secondary { background: rgba(196, 4, 26, 0.2); color: #ff4d64; border-color: rgba(196, 4, 26, 0.3); }
.chip.tertiary { background: rgba(0, 219, 233, 0.2); color: var(--tertiary); border-color: rgba(0, 219, 233, 0.3); }

/* Tailwind Config Script Template */
/*
export const TAILWIND_CONFIG = `
tailwind.config = {
  theme: {
    extend: {
      colors: {
        base: '#0B0B0F',
        surface: '#131317',
        primary: '#ff8a00',
        secondary: '#c4041a',
        tertiary: '#00dbe9',
      },
      fontFamily: {
        heading: ['Sora', 'sans-serif'],
        body: ['Plus Jakarta Sans', 'sans-serif'],
        mono: ['Space Grotesk', 'monospace'],
      }
    }
  }
}
`;
*/
