/* BestieBot Dashboard - Shared Theme Styles */
/* This file contains shared CSS variables and common styles used across all templates */

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

/* CSS Variables - Dark Cinematic Theme */
:root {
    --primary: #5DADE2;
    --primary-light: #85C1E9;
    --primary-dark: #3498db;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --light: #0a0a0f;
    --dark: #0a0a0f;
    --bg: #0a0a0f;
    --card-bg: rgba(255, 255, 255, 0.03);
    --text: #e0e0e0;
    --text-light: rgba(255, 255, 255, 0.45);
    --border: rgba(255, 255, 255, 0.06);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.2), 0 4px 12px 0 rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 1px 4px 0 rgba(0, 0, 0, 0.2), 0 4px 12px 0 rgba(0, 0, 0, 0.3), 0 8px 24px 0 rgba(0, 0, 0, 0.4), 0 16px 40px 0 rgba(0, 0, 0, 0.5);
}

/* CSS Variables - Dark Mode (same as default, always dark) */
html.dark {
    --bg: #0a0a0f;
    --card-bg: rgba(255, 255, 255, 0.03);
    --text: #e0e0e0;
    --text-light: rgba(255, 255, 255, 0.45);
    --border: rgba(255, 255, 255, 0.06);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.2), 0 4px 12px 0 rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 1px 4px 0 rgba(0, 0, 0, 0.2), 0 4px 12px 0 rgba(0, 0, 0, 0.3), 0 8px 24px 0 rgba(0, 0, 0, 0.4), 0 16px 40px 0 rgba(0, 0, 0, 0.5);
}

/* Custom Cursors */
:root {
    --cursor-default-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='6' fill='%230a0a0f' stroke='%235DADE2' stroke-width='2'/%3E%3C/svg%3E") 10 10, auto;
    --cursor-default-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='6' fill='%230a0a0f' stroke='%235DADE2' stroke-width='2'/%3E%3C/svg%3E") 10 10, auto;
    --cursor-pointer-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='14' fill='none' stroke='%235DADE2' stroke-width='1.5' opacity='0.5'/%3E%3Ccircle cx='16' cy='16' r='5' fill='%230a0a0f' stroke='%235DADE2' stroke-width='2'/%3E%3C/svg%3E") 16 16, pointer;
    --cursor-pointer-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='14' fill='none' stroke='%235DADE2' stroke-width='1.5' opacity='0.5'/%3E%3Ccircle cx='16' cy='16' r='5' fill='%230a0a0f' stroke='%235DADE2' stroke-width='2'/%3E%3C/svg%3E") 16 16, pointer;
}

/* Base HTML Styles */
html {
    cursor: var(--cursor-default-light);
    scroll-behavior: smooth;
    background-color: var(--bg);
}

html.dark {
    cursor: var(--cursor-default-dark);
}

/* Cursor Styles for Interactive Elements */
a, button, [role="button"], [type="button"], [type="submit"], label[for], select, summary, [tabindex]:not([tabindex="-1"]), .cursor-pointer {
    cursor: var(--cursor-pointer-light) !important;
}

html.dark a, html.dark button, html.dark [role="button"], html.dark [type="button"], html.dark [type="submit"], html.dark label[for], html.dark select, html.dark summary, html.dark [tabindex]:not([tabindex="-1"]), html.dark .cursor-pointer {
    cursor: var(--cursor-pointer-dark) !important;
}

input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="tel"], input[type="url"], input[type="number"], textarea, [contenteditable="true"] {
    cursor: text !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(93, 173, 226, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(93, 173, 226, 0.5);
}

html.dark ::-webkit-scrollbar-thumb {
    background: rgba(93, 173, 226, 0.4);
}

html.dark ::-webkit-scrollbar-thumb:hover {
    background: rgba(93, 173, 226, 0.6);
}

/* ================================================================
   ANIMATED BACKGROUND - Floating Orbs + Grid Overlay
   ================================================================ */
.bg-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.12;
    will-change: transform;
}

.bg-orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #5DADE2 0%, transparent 70%);
    top: -10%;
    left: -5%;
    animation: orbFloat1 20s ease-in-out infinite;
}

.bg-orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #764ba2 0%, transparent 70%);
    bottom: -10%;
    right: -5%;
    animation: orbFloat2 25s ease-in-out infinite;
}

.bg-orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #5DADE2 0%, #764ba2 40%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbFloat3 18s ease-in-out infinite;
    opacity: 0.06;
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
}

.bg-noise {
    position: absolute;
    inset: 0;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(60px, 40px) scale(1.05); }
    66% { transform: translate(-30px, 80px) scale(0.95); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-50px, -60px) scale(1.08); }
    66% { transform: translate(40px, -30px) scale(0.92); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    33% { transform: translate(-40%, -60%) scale(1.1); }
    66% { transform: translate(-60%, -40%) scale(0.9); }
}
