:root {
    /* Color System - Dark with Vibrant Accents */
    --bg-app: #000000;
    --bg-panel: #0a0a0f;
    --bg-card: #0f0f14;
    --bg-element: #16161d;

    /* Accent Colors - Electric Blue/Purple */
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --accent-glow: rgba(99, 102, 241, 0.3);

    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #52525b;

    --border-subtle: #27272a;
    --border-active: #3f3f46;
    --border-accent: rgba(99, 102, 241, 0.5);

    /* Font */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

    /* Effects */
    --glass-bg: rgba(16, 16, 24, 0.4);
    --glass-border: rgba(99, 102, 241, 0.1);
    --blur-strength: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html,
body,
#app {
    height: 100%;
    width: 100%;
}

body {
    background-color: var(--bg-app);
    color: var(--text-primary);
    font-family: var(--font-sans);
    overflow: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 500;
    letter-spacing: -0.02em;
}

.text-sm {
    font-size: 0.875rem;
}

.text-xs {
    font-size: 0.75rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.font-medium {
    font-weight: 500;
}

.text-secondary {
    color: var(--text-secondary);
}

.text-muted {
    color: var(--text-muted);
}

.text-primary {
    color: var(--text-primary);
}

.text-white {
    color: #ffffff;
}

/* Utilities */
.hidden {
    display: none !important;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-1 {
    flex: 1;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-start {
    justify-content: flex-start;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.h-32 {
    height: 8rem;
}

.p-2 {
    padding: 0.5rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.pt-4 {
    padding-top: 1rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mt-4 {
    margin-top: 1rem;
}

.pt-4 {
    padding-top: 1rem;
}

.ml-2 {
    margin-left: 0.5rem;
}

.mt-12 {
    margin-top: 3rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.border {
    border: 1px solid var(--border-subtle);
}

.overflow-hidden {
    overflow: hidden;
}

.grid {
    display: grid;
}

.relative {
    position: relative;
}

.cursor-pointer {
    cursor: pointer;
}

.transition-colors {
    transition: color 0.2s ease;
}

.tracking-widest {
    letter-spacing: 0.1em;
}

/* Glass Effect */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-strength));
    border: 1px solid var(--glass-border);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    gap: 0.5rem;
    user-select: none;
}

.btn:active {
    transform: scale(0.96);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-secondary {
    background: var(--bg-element);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
    background: var(--border-subtle);
    border-color: var(--border-active);
    transform: translateY(-1px);
}

.btn-discord {
    background: #5865F2;
    color: white;
}

.btn-discord:hover {
    background: #4752c4;
}

/* Form Elements */
input,
textarea,
select {
    background: var(--bg-element);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-family: inherit;
    font-size: 0.875rem;
    width: 100%;
    outline: none;
    transition: border-color 0.2s;
}

input:focus,
textarea:focus {
    border-color: var(--text-secondary);
}

textarea {
    resize: none;
}

/* Slider */
input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    background: transparent;
    padding: 0;
    border: none;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: var(--accent-gradient);
    cursor: pointer;
    margin-top: -6px;
    box-shadow: 0 2px 8px var(--accent-glow);
    transition: transform 0.2s ease;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: var(--border-subtle);
    border-radius: 2px;
}



/* Login View */
.login-container {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 20%, rgba(99, 102, 241, 0.15) 0%, #000000 50%),
        radial-gradient(circle at 70% 80%, rgba(139, 92, 246, 0.1) 0%, #000000 50%);
}

.login-card {
    width: 100%;
    max-width: 400px;
    padding: 3rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    text-align: center;
}

/* Dashboard Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    height: 100%;
}

.sidebar {
    background: var(--bg-panel);
    border-right: 1px solid var(--border-subtle);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    border-radius: 0.5rem;
    cursor: pointer;
    margin-bottom: 0.25rem;
    transition: all 0.2s;
    position: relative;
}

.nav-item:hover {
    background: var(--bg-element);
    color: var(--text-primary);
}

.nav-item.active {
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-primary);
    border-left: 3px solid var(--accent-primary);
    padding-left: calc(1rem - 3px);
}

/* Content Wrapper */
.content-wrapper {
    height: 100%;
    overflow: hidden;
    position: relative;
}

.content-section {
    display: none;
    height: 100%;
    width: 100%;
    overflow-y: auto;
    /* Allow children to scroll or scroll the section itself */
}

.content-section.active {
    display: block;
}

/* Console Grid */
.console-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    height: 100%;
}

.main-content {
    background: var(--bg-app);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.settings-panel {
    background: var(--bg-panel);
    border-left: 1px solid var(--border-subtle);
    padding: 1.5rem;
    overflow-y: auto;
}

.control-group {
    margin-bottom: 1.5rem;
}

.control-group label {
    display: flex;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-card {
    height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-active);
}

.card-image-placeholder {
    height: 160px;
    background: linear-gradient(45deg, #090909, #1a1a1a);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
}

/* Dashbord Specifics */
.bg-green-900\/30 {
    background: rgba(22, 101, 52, 0.3);
}

.text-green-400 {
    color: #4ade80;
}

.bg-element {
    background: var(--bg-element);
}

.border-subtle {
    border-color: var(--border-subtle);
}

.w-full {
    width: 100%;
}

.rounded-full {
    border-radius: 9999px;
}

.h-2 {
    height: 0.5rem;
}

table th {
    font-weight: 500;
    color: var(--text-muted);
}

table td {
    border-bottom: 1px solid var(--border-subtle);
}

tr:last-child td {
    border-bottom: none;
}


.docs-layout {
    display: flex;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.docs-sidebar {
    width: 260px;
    border-right: 1px solid var(--border-subtle);
    padding: 2rem 1.5rem;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.3);
    overflow-y: auto;
}

.docs-sidebar .nav-item {
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    cursor: pointer;
    margin-bottom: 0.25rem;
}

.docs-sidebar .nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    padding-left: 1.25rem;
}

.docs-sidebar .nav-item.active {
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-primary);
    border-left: 3px solid var(--accent-primary);
}

.docs-content {
    flex: 1;
    min-width: 0;
    padding: 3rem 4rem;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.02);
}

.doc-page {
    padding-bottom: 5rem;
}

.doc-page h1 {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

.docs-content h2 {
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.75rem;
    margin-top: 3rem;
}

.docs-content h3 {
    color: var(--accent-primary);
    font-size: 1rem;
}

code {
    font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;
    background: rgba(99, 102, 241, 0.1);
    color: #a5b4fc;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85em;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

pre {
    background: linear-gradient(145deg, #0a0a0f, #0d0d14);
    border: 1px solid var(--border-subtle);
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
    overflow-x: auto;
    position: relative;
}

pre::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 0.75rem 0.75rem 0 0;
}

pre code {
    background: none;
    border: none;
    padding: 0;
    color: #e2e8f0;
    font-size: 0.8rem;
    line-height: 1.7;
}

.docs-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0.75rem;
    overflow: hidden;
}

.docs-content table th {
    background: rgba(99, 102, 241, 0.1);
    text-align: left;
    padding: 1rem;
    font-weight: 500;
    color: var(--accent-primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.docs-content table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.9rem;
}

.docs-content table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.docs-content ul {
    padding-left: 0;
    list-style: none;
}

.docs-content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.docs-content ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

.doc-page .glass {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.doc-page .glass:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.pricing-card {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent !important;
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
}

.pricing-card .pricing-btn {
    margin-top: auto;
}

.pricing-card:hover {
    transform: translateY(-4px);
}

.recommended-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #eab308, #f59e0b);
    color: black;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

.payg-card {
    border: 1px dashed var(--border-subtle) !important;
    background: rgba(99, 102, 241, 0.05);
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

/* Toast System */

.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 9999;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    animation: toastIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Documentation Content Transitions */
.doc-link.active {
    background: rgba(99, 102, 241, 0.2);
    color: var(--accent-primary);
}

.docs-content>div {
    animation: fadeIn 0.4s ease forwards;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade {
    animation: fadeIn 0.4s ease forwards;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Hover utilities */
.hover\:text-white:hover {
    color: white;
}