:root {
    --bg: #0a0a0f;
    --bg-secondary: #12121a;
    --fg: #f0f0f5;
    --muted: #6b6b7a;
    --accent: #00d4aa;
    --accent-dim: #00a88a;
    --card: #16161f;
    --border: #2a2a3a;
    --danger: #ff4d6a;
}

[data-theme="light"] {
    --bg: #f8f9fc;
    --bg-secondary: #ffffff;
    --fg: #0f172a;
    --muted: #64748b;
    --card: #ffffff;
    --border: #e2e8f0;
}

* { box-sizing: border-box; }
body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--fg);
    overflow-x: hidden;
    transition: background 0.4s ease, color 0.4s ease;
}
h1, h2, h3, h4, h5, h6 { font-family: 'Space Grotesk', sans-serif; }

/* Background Effects */
.bg-noise {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 0; opacity: 0.03;
    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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}
.glow-orb {
    position: fixed; border-radius: 50%; filter: blur(100px);
    pointer-events: none; z-index: 0;
}
.glow-orb-1 { width: 600px; height: 600px; background: radial-gradient(circle, rgba(0, 212, 170, 0.12) 0%, transparent 70%); top: -200px; right: -200px; }
.glow-orb-2 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(0, 168, 138, 0.08) 0%, transparent 70%); bottom: 10%; left: -150px; }

/* Page Transitions */
.page { display: none; min-height: 100vh; position: relative; z-index: 1; }
.page.active { display: block; animation: fadeIn 0.5s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }

/* Stagger Animation */
.stagger-item { opacity: 0; animation: slideUp 0.6s ease-out forwards; }
.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }
.stagger-item:nth-child(6) { animation-delay: 0.6s; }

/* UI Elements */
.nav-link { position: relative; transition: color 0.3s ease; }
.nav-link::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--accent); transition: width 0.3s ease; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.btn-primary { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dim) 100%); color: #0a0a0f; font-weight: 600; padding: 12px 28px; border-radius: 8px; transition: all 0.3s ease; border: none; cursor: pointer; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0, 212, 170, 0.3); }

.btn-secondary { background: transparent; color: var(--fg); font-weight: 500; padding: 12px 28px; border-radius: 8px; border: 1px solid var(--border); transition: all 0.3s ease; cursor: pointer; }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; transition: all 0.4s ease; }
.card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2); }

.input-field { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; color: var(--fg); width: 100%; transition: all 0.3s ease; outline: none; }
.input-field:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1); }

/* Hero Illustration Styles */
.hero-illust-container { position: relative; width: 100%; height: 100%; min-height: 400px; display: flex; align-items: center; justify-content: center; }
.float-element { position: absolute; animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-15px); } }

/* Footer Styles */
.footer-full { background: var(--bg-secondary); border-top: 1px solid var(--border); position: relative; z-index: 10; }
.footer-link { color: var(--muted); transition: color 0.3s; }
.footer-link:hover { color: var(--accent); }
.social-btn { width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--muted); transition: all 0.3s; }
.social-btn:hover { background: var(--accent); border-color: var(--accent); color: #0a0a0f; transform: translateY(-2px); }

/* Utility */
.hero-text { font-size: clamp(2.5rem, 8vw, 5rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
.gradient-text { background: linear-gradient(135deg, var(--accent) 0%, #00ffcc 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.tag { display: inline-block; padding: 6px 14px; background: rgba(0, 212, 170, 0.1); color: var(--accent); border-radius: 20px; font-size: 13px; font-weight: 500; }

/* Theme Toggle */
.theme-toggle { position: relative; width: 56px; height: 28px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 14px; cursor: pointer; transition: all 0.3s ease; }
.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle-knob { position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; background: var(--accent); border-radius: 50%; transition: transform 0.3s ease; display: flex; align-items: center; justify-content: center; }
[data-theme="light"] .theme-toggle-knob { transform: translateX(28px); }
.theme-toggle-knob svg { width: 14px; height: 14px; color: #0a0a0f; }

/* Mobile Menu */
.mobile-menu { transform: translateX(100%); transition: transform 0.3s ease; }
.mobile-menu.open { transform: translateX(0); }

/* Admin Specific */
.sidebar-link { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 8px; color: var(--muted); transition: all 0.3s ease; cursor: pointer; }
.sidebar-link:hover, .sidebar-link.active { background: rgba(0, 212, 170, 0.1); color: var(--accent); }
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 24px; transition: all 0.3s ease; }
.chart-bar { flex: 1; background: linear-gradient(to top, var(--accent), var(--accent-dim)); border-radius: 6px 6px 0 0; transition: height 0.5s ease; }

/* Monitoring Animation */
.pulse-dot { animation: pulse 2s infinite; }
@keyframes pulse { 0% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.1); } 100% { opacity: 1; transform: scale(1); } }
