/* ==========================================================
   玲珑API · 次世代赛博黑曜石、翡翠与金芒主题
   Linglong Cyber Jade, Gold & Obsidian Master Theme
   ========================================================== */

:root, .dark, html.dark {
    --background: #060912 !important;
    --foreground: #f1f5f9 !important;
    --card: #0b1122 !important;
    --card-foreground: #f8fafc !important;
    --popover: #0b1122 !important;
    --popover-foreground: #f8fafc !important;
    --primary: #00f5a0 !important;
    --primary-foreground: #021a11 !important;
    --secondary: #111a30 !important;
    --secondary-foreground: #e2e8f0 !important;
    --muted: #111a30 !important;
    --muted-foreground: #8195b0 !important;
    --accent: rgba(0, 245, 160, 0.16) !important;
    --accent-foreground: #00f5a0 !important;
    --destructive: #f43f5e !important;
    --destructive-foreground: #ffffff !important;
    --border: rgba(0, 245, 160, 0.22) !important;
    --input: rgba(15, 23, 42, 0.85) !important;
    --ring: rgba(0, 245, 160, 0.6) !important;
    --sidebar: #060912 !important;
    --sidebar-accent: #00f5a0 !important;
    --table-row: #060912 !important;
    --table-header: #0d1629 !important;
    --table-header-hover: #13203c !important;
    --radius: 14px !important;
}

/* Global Ambient Atmosphere */
body, html {
    background-color: #060912 !important;
    background-image: 
        radial-gradient(circle at 12% 16%, rgba(0, 245, 160, 0.12) 0%, transparent 42%),
        radial-gradient(circle at 88% 22%, rgba(251, 191, 36, 0.09) 0%, transparent 45%),
        radial-gradient(circle at 50% 85%, rgba(0, 217, 245, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 0%, rgba(0, 245, 160, 0.15) 0%, transparent 38%) !important;
    background-attachment: fixed !important;
    color: #f1f5f9 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif !important;
    overflow-x: hidden !important;
}

/* Custom Cyber-Jade Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #060912;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #00f5a0, #fbbf24);
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #00f5a0;
}

/* Floating Navbar Glassmorphism */
header.pointer-events-none {
    background: transparent !important;
}

header .pointer-events-auto {
    background: rgba(10, 16, 32, 0.88) !important;
    backdrop-filter: blur(28px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
    border: 1px solid rgba(0, 245, 160, 0.25) !important;
    border-radius: 18px !important;
    margin-top: 14px !important;
    box-shadow: 0 10px 35px -5px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 245, 160, 0.12) !important;
    transition: all 0.3s ease !important;
}

/* Logo Image in Navbar */
header img, a[href='/'] img {
    filter: drop-shadow(0 0 12px rgba(0, 245, 160, 0.7)) !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
}
header img:hover, a[href='/'] img:hover {
    filter: drop-shadow(0 0 20px rgba(0, 245, 160, 0.95)) drop-shadow(0 0 10px rgba(251, 191, 36, 0.5)) scale(1.1) !important;
}

/* Nav Links */
header nav a, header .pointer-events-auto a {
    color: #94a3b8 !important;
    font-weight: 500 !important;
    border-radius: 10px !important;
    transition: all 0.2s ease !important;
}
header nav a:hover, header .pointer-events-auto a:hover {
    color: #00f5a0 !important;
    background: rgba(0, 245, 160, 0.1) !important;
    box-shadow: 0 0 10px rgba(0, 245, 160, 0.15) !important;
}
header nav a.active, header .pointer-events-auto a.active {
    color: #00f5a0 !important;
    background: rgba(0, 245, 160, 0.15) !important;
    box-shadow: 0 0 15px rgba(0, 245, 160, 0.25) !important;
}

/* Primary Action Buttons */
button[class*="bg-primary"], a[class*="bg-primary"] {
    background: linear-gradient(135deg, #00f5a0 0%, #00d9f5 60%, #fbbf24 100%) !important;
    color: #021a11 !important;
    font-weight: 700 !important;
    border: none !important;
    box-shadow: 0 4px 20px rgba(0, 245, 160, 0.38) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    border-radius: 12px !important;
}
button[class*="bg-primary"]:hover, a[class*="bg-primary"]:hover {
    box-shadow: 0 6px 30px rgba(0, 245, 160, 0.6), 0 0 15px rgba(251, 191, 36, 0.4) !important;
    transform: translateY(-2px) scale(1.02) !important;
    filter: brightness(1.08) !important;
}
button[class*="bg-primary"]:active, a[class*="bg-primary"]:active {
    transform: translateY(0px) scale(0.98) !important;
}

/* Secondary / Outline Buttons */
button[class*="hover:bg-muted"], button[class*="bg-muted"], a[class*="hover:bg-muted"] {
    background: rgba(17, 26, 48, 0.7) !important;
    border: 1px solid rgba(0, 245, 160, 0.2) !important;
    color: #cbd5e1 !important;
    border-radius: 12px !important;
    transition: all 0.2s ease !important;
}
button[class*="hover:bg-muted"]:hover, a[class*="hover:bg-muted"]:hover {
    background: rgba(0, 245, 160, 0.15) !important;
    border-color: rgba(0, 245, 160, 0.45) !important;
    color: #00f5a0 !important;
    box-shadow: 0 0 15px rgba(0, 245, 160, 0.2) !important;
}

/* Glassmorphism Cards */
div[class*="rounded-xl border"], div[class*="rounded-lg border"], .border, [role="region"] {
    background: rgba(11, 18, 36, 0.85) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(0, 245, 160, 0.2) !important;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6) !important;
    border-radius: 16px !important;
    transition: all 0.3s ease !important;
}
div[class*="rounded-xl border"]:hover {
    border-color: rgba(0, 245, 160, 0.4) !important;
    box-shadow: 0 14px 40px -5px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 245, 160, 0.15) !important;
}

/* Input Fields & Textareas */
input, textarea, select {
    background: rgba(10, 15, 30, 0.92) !important;
    border: 1px solid rgba(0, 245, 160, 0.25) !important;
    color: #f1f5f9 !important;
    border-radius: 10px !important;
    transition: all 0.2s ease !important;
}
input:focus, textarea:focus, select:focus {
    border-color: #00f5a0 !important;
    box-shadow: 0 0 0 3px rgba(0, 245, 160, 0.28), 0 0 15px rgba(0, 245, 160, 0.2) !important;
    outline: none !important;
}

/* Floating Dragon on Login Page */
form::before {
    content: "";
    display: block;
    width: 100px;
    height: 100px;
    margin: 0 auto 16px;
    background: url('/static/dragon_hero.png') no-repeat center/contain;
    filter: drop-shadow(0 0 25px rgba(0, 245, 160, 0.6)) drop-shadow(0 0 10px rgba(251, 191, 36, 0.35));
    animation: dragonFloat 4s ease-in-out infinite;
}

/* Floating Dragon on Hero Section */
.lg\:col-span-5::before {
    content: "";
    display: block;
    width: 86px;
    height: 86px;
    margin: 0 auto 16px;
    background: url('/static/dragon_hero.png') no-repeat center/contain;
    filter: drop-shadow(0 0 25px rgba(0, 245, 160, 0.6)) drop-shadow(0 0 10px rgba(251, 191, 36, 0.35));
    animation: dragonFloat 4s ease-in-out infinite;
}

/* Animations */
@keyframes dragonFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); filter: drop-shadow(0 0 25px rgba(0, 245, 160, 0.5)); }
    50% { transform: translateY(-8px) rotate(1deg); filter: drop-shadow(0 0 40px rgba(0, 245, 160, 0.75)) drop-shadow(0 0 18px rgba(251, 191, 36, 0.4)); }
}

@keyframes pulsePill {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 245, 160, 0.6); }
    50% { transform: scale(1.08); box-shadow: 0 0 0 8px rgba(0, 245, 160, 0); }
}

.linglong-pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00f5a0;
    margin-right: 6px;
    animation: pulsePill 2s infinite ease-in-out;
}

/* Feature Cards and Landing Sections Force Visibility & Cyber-Jade Polish */
.opacity-0.will-change-\[transform\,opacity\],
[class*="opacity-0"][class*="will-change"] {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

.border-border\/40.bg-border\/40 {
    background: rgba(0, 245, 160, 0.12) !important;
    border: 1px solid rgba(0, 245, 160, 0.25) !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(0, 245, 160, 0.08) !important;
}

.bg-background.group {
    background: rgba(10, 15, 30, 0.92) !important;
    backdrop-filter: blur(20px) !important;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative !important;
}

.bg-background.group:hover {
    background: rgba(14, 22, 44, 0.95) !important;
    box-shadow: inset 0 0 25px rgba(0, 245, 160, 0.1) !important;
}

.bg-background.group span[class*="tabular-nums"] {
    background: linear-gradient(135deg, rgba(0, 245, 160, 0.2), rgba(0, 217, 245, 0.1)) !important;
    border: 1px solid rgba(0, 245, 160, 0.4) !important;
    color: #00f5a0 !important;
    box-shadow: 0 0 10px rgba(0, 245, 160, 0.2) !important;
}

.bg-background.group h3 {
    color: #f1f5f9 !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em !important;
}

.bg-background.group:hover h3 {
    color: #00f5a0 !important;
    text-shadow: 0 0 12px rgba(0, 245, 160, 0.4) !important;
}

.bg-background.group p {
    color: #94a3b8 !important;
    font-size: 0.875rem !important;
    line-height: 1.6 !important;
}

footer {
    border-top: 1px solid rgba(0, 245, 160, 0.2) !important;
    background: rgba(6, 9, 18, 0.95) !important;
    backdrop-filter: blur(20px) !important;
}

footer a {
    color: #94a3b8 !important;
    transition: all 0.2s ease !important;
}

footer a:hover {
    color: #00f5a0 !important;
    text-shadow: 0 0 8px rgba(0, 245, 160, 0.5) !important;
}


/* Login Page Dragon Placement */
div.sm\:w-\[480px\]::before,
[class*="sm:w-[480px]"]::before {
    content: "" !important;
    display: block !important;
    width: 96px !important;
    height: 96px !important;
    margin: 0 auto 20px auto !important;
    background-image: url('/static/logo.png') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    filter: drop-shadow(0 0 25px rgba(0, 245, 160, 0.7)) drop-shadow(0 0 12px rgba(251, 191, 36, 0.4)) !important;
    animation: dragonFloat 4s ease-in-out infinite !important;
}

/* Remove form::before to avoid redundant spacing */
form::before {
    display: none !important;
}

