/* Prototype Theme - Shared Styles */

:root {
    --primary: #ef4444; /* Neon Red */
    --primary-container: #ef4444; /* Neon Red */
    --secondary: #dc2626; /* Neon Orange */
    --secondary-container: #dc2626; /* Neon Orange */
    --tertiary: #2563eb; /* Cyber Purple */
    --tertiary-container: #2563eb; /* Cyber Purple */
    --cyber-green: #eab308; /* Emerald Green */
    --cyber-purple: #2563eb; /* Cyber Purple */
    --background: #000000;
    --surface: #0e0e11;
    --on-surface: #e8e0ed;
    --on-surface-variant: #ccc3d7;
    --error: #ffb4ab;
    --error-container: #93000a;
}

html {
    background: #020105 !important;
    background: linear-gradient(135deg, #020105 0%, #0c051a 50%, #020105 100%) !important;
    background-attachment: fixed !important;
}

body {
    background: transparent !important;
    color: #e8e0ed;
    opacity: 0 !important;
    transition: opacity 0.25s ease-in-out !important;
}

body.page-loaded {
    opacity: 1 !important;
}

body.page-fade-out {
    opacity: 0 !important;
}

/* Navigation scroll interaction & hover improvements */
nav.fixed {
    z-index: 1000 !important;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

nav.fixed.scrolled {
    top: 0 !important;
    height: 64px !important;
    background-color: rgba(15, 23, 42, 0.8) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

/* Logo hover effects */
nav .flex.items-center img {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease !important;
}

nav .flex.items-center:hover img {
    transform: scale(1.06) rotate(3deg);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.35);
}

/* Desktop navigation links hover animation */
nav .hidden.md\:flex a {
    position: relative;
    transition: color 0.3s ease !important;
}

nav .hidden.md\:flex a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
    transition: width 0.3s ease, left 0.3s ease;
}

nav .hidden.md\:flex a:hover::after {
    width: 100%;
    left: 0;
}

/* Clean up inline active borders and replace with premium glow */
nav .hidden.md\:flex a[class*="border-[#ef4444]"],
nav .hidden.md\:flex a[class*="border-b-2"] {
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

nav .hidden.md\:flex a[class*="border-[#ef4444]"]::after,
nav .hidden.md\:flex a[class*="border-b-2"]::after {
    width: 100%;
    left: 0;
}

/* Login user button hover glow */
nav button[onclick*="/login"]:hover {
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4) !important;
}

/* User profile avatar hover glow */
nav #user-info img {
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}
nav #user-info:hover img {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

#floating-lines-canvas {
    display: none !important;
}

.glass-card {
    background: rgba(18, 12, 32, 0.45) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(139, 92, 246, 0.15) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.05) !important;
}

.neon-glow-purple {
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.3);
}

.neon-glow-primary {
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

.grid-overlay {
    background-image: none !important;
}

.pulse-indicator {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

@keyframes line-trace {
    from { stroke-dashoffset: 1000; }
    to { stroke-dashoffset: 0; }
}
@keyframes heartbeat-glow {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}
@keyframes bar-grow {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

.animate-line-trace {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: line-trace 3s ease-out forwards;
}
.animate-heartbeat {
    animation: heartbeat-glow 2s ease-in-out infinite;
}
.animate-bar-grow {
    transform-origin: bottom;
    animation: bar-grow 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Custom Slider */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #ef4444;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
}

/* Premium Dropdowns */
select {
    background-color: rgba(0, 0, 0, 0.95) !important;
    color: #e8e0ed !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 0.75rem 1rem !important;
    border-radius: 0.75rem !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ff4b4b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    background-size: 1.25rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

select:focus {
    border-color: rgba(239, 68, 68, 0.5) !important;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.2) !important;
    outline: none !important;
}

select option {
    background-color: #0e0e11 !important;
    color: #e8e0ed !important;
    padding: 1rem !important;
}

/* Custom Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.05);
    transition: .4s;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 3px;
    background-color: #94a3b8;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
}

input:checked + .slider:before {
    transform: translateX(24px);
    background-color: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Dropdown Visibility */
.dropdown-content {
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown-content.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Premium Text Inputs & Textareas */
.glow-input {
    width: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    border-radius: 0.75rem !important;
    padding: 0.75rem 1rem !important;
    outline: none !important;
    transition: all 0.2s ease-in-out !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
}

.glow-input:hover {
    border-color: rgba(255, 255, 255, 0.15) !important;
    background: rgba(0, 0, 0, 0.65) !important;
}

.glow-input:focus {
    border-color: rgba(239, 68, 68, 0.6) !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15) !important;
    background: rgba(0, 0, 0, 0.8) !important;
}

.glow-input::placeholder {
    color: rgba(148, 163, 184, 0.4) !important;
}

/* Dropdown override focus states */
select:hover {
    border-color: rgba(255, 255, 255, 0.15) !important;
}
select:focus {
    border-color: rgba(239, 68, 68, 0.6) !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15) !important;
    outline: none !important;
}

/* ================= MINIMALIST DASHBOARD ENHANCEMENTS ================= */

/* Transition for clean hover on glass cards */
.glass-card {
    background: rgba(18, 12, 32, 0.45) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(139, 92, 246, 0.15) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.05) !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease !important;
}

.glass-card:hover {
    border-color: rgba(139, 92, 246, 0.35) !important;
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.08) !important;
    transform: translateY(-2px);
}

/* Semi-transparent button aesthetics */
.bg-gradient-to-r.from-\[\#ef4444\].to-\[\#dc2626\], 
button[class*="from-[#ef4444]"],
.btn-primary {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.2) 100%) !important;
    border: 1px solid rgba(239, 68, 68, 0.35) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.bg-gradient-to-r.from-\[\#ef4444\].to-\[\#dc2626\]:hover,
button[class*="from-[#ef4444]"]:hover,
.btn-primary:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.3) 0%, rgba(220, 38, 38, 0.3) 100%) !important;
    border-color: rgba(239, 68, 68, 0.55) !important;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.25) !important;
    transform: translateY(-1px);
}

.bg-gradient-to-r.from-\[\#ef4444\].to-\[\#dc2626\]:active,
button[class*="from-[#ef4444]"]:active,
.btn-primary:active {
    transform: translateY(1px);
}

/* Cohesive input boxes styling */
.glow-input, 
input[type="text"], 
input[type="password"], 
input[type="number"], 
select, 
textarea {
    background: rgba(18, 12, 32, 0.2) !important;
    border: 1px solid rgba(139, 92, 246, 0.15) !important;
    border-radius: 0.75rem !important;
    color: #ffffff !important;
    transition: all 0.3s ease !important;
}

.glow-input:focus, 
input:focus, 
select:focus, 
textarea:focus {
    border-color: rgba(139, 92, 246, 0.45) !important;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.15) !important;
    background: rgba(18, 12, 32, 0.35) !important;
}

/* Force standard dark mode card styles on elements overriding it locally */
div[class*="bg-[#000000]/80"].backdrop-blur-xl {
    border-left-width: 1px !important;
    border-top-width: 1px !important;
    border-right-width: 1px !important;
    border-bottom-width: 1px !important;
    border-color: rgba(139, 92, 246, 0.15) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5) !important;
}





/* ================= PROFESSIONAL GRAPHIC DESIGN TYPOGRAPHY & SPACING SYSTEM ================= */

/* Clean font family and resets */
h1, h2, h3, h4, h5, h6,
.font-headline,
[class*="font-h1"], [class*="font-h2"], [class*="font-h3"] {
    font-family: 'Space Grotesk', 'Inter', sans-serif !important;
}

body, p, span, a, input, select, textarea, div {
    font-family: 'Inter', 'Manrope', sans-serif;
}

/* 1. HEADINGS: Capitalized (uppercase), slightly letter-spaced, normal clean capitalization */
h1, h2, h3, h4, h5, h6,
.title, .heading,
.font-headline,
[class*="text-2xl"], [class*="text-3xl"], [class*="text-4xl"], [class*="text-5xl"],
[class*="font-h1"], [class*="font-h2"], [class*="font-h3"] {
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    font-weight: 700 !important;
}

/* Specific heading scales to avoid AI vibe-coded oversized texts */
h1, [class*="text-5xl"] { font-size: 2.25rem !important; }
h2, [class*="text-3xl"] { font-size: 1.65rem !important; }
h3, [class*="text-2xl"] { font-size: 1.25rem !important; }
h4, [class*="text-xl"] { font-size: 1.05rem !important; }

/* 2. DESCRIPTIONS: Small text, line-height 1.65, soft muted color, tracked nicely */
p, 
.description,
[class*="text-slate-400"], 
[class*="text-slate-500"], 
[class*="text-on-surface-variant"],
[class*="text-xs"], [class*="text-sm"] {
    font-size: 0.82rem !important;
    line-height: 1.65 !important;
    letter-spacing: 0.02em !important;
    color: rgba(204, 195, 215, 0.72) !important;
    text-transform: none !important; /* Force descriptions to be normal text, not all-caps */
}

/* 3. HIGHLIGHTS: Bold text, crisp brand colors */
strong, b, .highlight,
.text-primary, [class*="text-primary"], [class*="text-[#ef4444]"],
.font-bold, [class*="font-bold"], [class*="font-black"] {
    font-weight: 750 !important;
    letter-spacing: 0.03em !important;
}

/* 4. SENSIBLE LAYOUT BOXES & PADDING */
.glass-card {
    background: rgba(8, 5, 15, 0.78) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border: 1px solid rgba(139, 92, 246, 0.1) !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.65), inset 0 1px 1px rgba(255, 255, 255, 0.04) !important;
    border-radius: 1.25rem !important;
    padding: 1.75rem !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.glass-card:hover {
    border-color: rgba(239, 68, 68, 0.35) !important;
    box-shadow: 0 24px 60px rgba(239, 68, 68, 0.12), inset 0 1px 1px rgba(255, 255, 255, 0.06) !important;
    transform: translateY(-3px) !important;
}

/* Clean up button visual hierarchy */
.bg-gradient-to-r.from-\[\#ef4444\].to-\[\#dc2626\],
button[class*="from-[#ef4444]"],
.btn-primary {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.15) 100%) !important;
    border: 1px solid rgba(239, 68, 68, 0.4) !important;
    color: #ffffff !important;
    border-radius: 0.75rem !important;
    padding: 0.75rem 1.5rem !important;
    font-size: 0.82rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.bg-gradient-to-r.from-\[\#ef4444\].to-\[\#dc2626\]:hover,
button[class*="from-[#ef4444]"]:hover,
.btn-primary:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(220, 38, 38, 0.25) 100%) !important;
    border-color: rgba(239, 68, 68, 0.75) !important;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.2) !important;
    transform: translateY(-1.5px) !important;
}

/* Sidebar and active menu item glow */
.nav-item {
    font-size: 0.85rem !important;
    letter-spacing: 0.04em !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    transition: all 0.2s ease !important;
}

.nav-item.active, .nav-item[class*="text-[#ef4444]"].font-bold {
    color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.08) !important;
    border-left: 3px solid #ef4444 !important;
    border-radius: 0 0.5rem 0.5rem 0 !important;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(239, 68, 68, 0.4);
}

/* Floating Navigation spacing adjustments */
nav.fixed {
    top: 1rem !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: calc(100% - 2rem) !important;
    max-width: 80rem !important; /* 7xl */
    height: 5rem !important; /* h-20 */
    background: rgba(0, 0, 0, 0.45) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 1rem !important; /* rounded-2xl */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5) !important;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
}

@media (min-width: 768px) {
    nav.fixed {
        width: calc(100% - 4rem) !important;
    }
}

nav.fixed.scrolled {
    top: 1rem !important;
    height: 5rem !important;
    background-color: rgba(0, 0, 0, 0.65) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7) !important;
}

#dashboard-sidebar {
    top: 108px !important;
    height: calc(100vh - 128px) !important;
}

main {
    padding-top: 136px !important;
}

@media (max-width: 767px) {
    main {
        padding-top: 120px !important;
    }
    #dashboard-sidebar {
        top: 0 !important;
        height: 100vh !important;
        margin-left: 0 !important;
        border-radius: 0 !important;
    }
}
.bento-stat-number {
    font-size: 3.5rem !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    font-family: 'Space Grotesk', sans-serif !important;
    letter-spacing: -0.04em !important;
    color: #ffffff !important;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}
@media (max-width: 768px) {
    .bento-stat-number {
        font-size: 2.75rem !important;
    }
}

/* Bot Profile Card 3D Tilt & Hover Straighten Effect */
.bot-profile-card {
    transform: perspective(1200px) rotateX(5deg) rotateY(-10deg) rotateZ(2deg) scale(0.96) !important;
    transform-style: preserve-3d !important;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.6s ease !important;
    box-shadow: -15px 15px 40px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.05) !important;
}

.bot-profile-card:hover {
    transform: perspective(1200px) rotateX(0deg) rotateY(0deg) rotateZ(0deg) scale(1) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7), 0 0 30px var(--card-glow, rgba(239, 68, 68, 0.2)), inset 0 1px 1px rgba(255, 255, 255, 0.08) !important;
}
