/* /vecna2/style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* GLOBAL */
body { 
    margin: 0; 
    overflow: hidden; 
    background: #050505; 
    color: #e2e8f0; 
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
}

/* TOPBAR (Sophisticated Glassmorphism) */
#topbar { 
    position: absolute; top: 0; left: 0; width: 100%; height: 50px; 
    background: rgba(10, 10, 10, 0.65); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05); 
    display: flex; align-items: center; justify-content: space-between; 
    padding: 0 20px; box-sizing: border-box; z-index: 1000; 
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; letter-spacing: -0.5px; color: #fff; }
.brand-logo { width: 24px; height: 24px; border-radius: 4px; background: linear-gradient(135deg, #4f46e5, #ec4899); display: flex; align-items: center; justify-content: center; font-size: 12px; }
.nav-links { display: flex; gap: 20px; font-size: 0.85rem; font-weight: 500; align-items: center; }
.nav-links a { color: #94a3b8; text-decoration: none; transition: 0.2s; }
.nav-links a:hover { color: #fff; }

.toggle-wrap { display: flex; background: rgba(255,255,255,0.03); border-radius: 4px; padding: 2px; border: 1px solid rgba(255,255,255,0.05); }
.toggle-wrap button { background: transparent; border: none; color: #64748b; padding: 6px 12px; border-radius: 3px; cursor: pointer; font-weight: 600; transition: 0.2s; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; }
.toggle-wrap button.active { background: rgba(255,255,255,0.1); color: #fff; }

/* VIEW CONTAINERS */
.view-container { position: absolute; top: 50px; left: 0; width: 100vw; height: calc(100vh - 50px); display: none; }
.active-view { display: block; }

/* DASHBOARD COMPONENTS */
#dashboard-view { overflow-y: auto; padding: 2rem; box-sizing: border-box; background-image: radial-gradient(circle at 15% 50%, rgba(79, 70, 229, 0.05), transparent 25%); background-attachment: fixed; }
.dash-container { max-width: 1200px; margin: 0 auto; }
.glass-card { background: rgba(15, 15, 20, 0.7); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.05); border-radius: 12px; padding: 2rem; margin-bottom: 2rem; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media(max-width: 768px) { .grid-2 { grid-template-columns: 1fr; } }
h2 { margin-top: 0; font-size: 1.25rem; font-weight: 600; }
h3 { font-size: 1rem; font-weight: 600; color: #cbd5e1; }

/* FORMS & BUTTONS */
.btn { padding: 0.75rem 1.5rem; border: none; border-radius: 6px; font-weight: 600; cursor: pointer; color: #fff; text-decoration: none; display: inline-block; font-size: 0.85rem; transition: 0.2s; }
.btn-primary { background: linear-gradient(135deg, #4f46e5, #3b82f6); }
.btn-primary:hover { filter: brightness(1.2); }
.btn-secondary { background: transparent; border: 1px solid rgba(255,255,255,0.2); }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-size: 0.75rem; color: #64748b; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], textarea, select { 
    width: 100%; padding: 10px; background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1); 
    border-radius: 6px; color: white; box-sizing: border-box; font-family: 'Inter', sans-serif; font-size: 0.85rem; outline: none; 
}
input:focus, textarea:focus, select:focus { border-color: #4f46e5; }

table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: 0.85rem; }
th, td { text-align: left; padding: 1rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
th { color: #64748b; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; font-size: 0.75rem; }

/* FAB & MODALS */
#fab { position: absolute; bottom: 40px; right: 40px; width: 50px; height: 50px; background: linear-gradient(135deg, #4f46e5, #ec4899); border-radius: 50%; color: white; font-size: 24px; border: none; cursor: pointer; box-shadow: 0 10px 20px rgba(0,0,0,0.5); z-index: 1000; display: flex; align-items: center; justify-content: center; transition: 0.2s; }
#fab:hover { transform: scale(1.1); }
#modal-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.8); backdrop-filter: blur(5px); z-index: 2000; display: none; align-items: center; justify-content: center; }
.modal { background: #0f0f14; padding: 30px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.1); width: 350px; text-align: center; }

/* VISUALIZATION SPECIFIC */
#sidebar { 
    position: absolute; top: 50px; left: 0; width: 260px; height: calc(100vh - 50px); 
    background: rgba(10, 10, 10, 0.8); backdrop-filter: blur(10px); border-right: 1px solid rgba(255,255,255,0.05); 
    padding: 20px; box-sizing: border-box; overflow-y: auto; z-index: 100; font-size: 0.85rem; 
}
#engine-3d, #engine-2d { position: absolute; top: 50px; left: 260px; width: calc(100vw - 260px); height: calc(100vh - 50px); opacity: 0; pointer-events: none; transition: 0.3s; }
.active-canvas { opacity: 1 !important; pointer-events: auto !important; z-index: 5; }
#loading-overlay { position: absolute; top: 50px; left: 260px; width: calc(100vw - 260px); height: calc(100vh - 50px); background: #050505; z-index: 50; display: flex; align-items: center; justify-content: center; flex-direction: column; }
.spinner { border: 4px solid rgba(255,255,255,0.1); border-top: 4px solid #4f46e5; border-radius: 50%; width: 40px; height: 40px; animation: spin 1s linear infinite; margin-bottom: 15px; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* SLIDERS */
.control-group { margin-bottom: 20px; }
.control-header { display: flex; justify-content: space-between; font-size: 0.75rem; color: #64748b; margin-bottom: 8px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; }
.val-display { color: #f59e0b; font-weight: bold; font-family: monospace; font-size: 0.85rem; }
input[type=range] { -webkit-appearance: none; width: 100%; background: transparent; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; height: 12px; width: 12px; border-radius: 50%; background: #4f46e5; cursor: pointer; margin-top: -5px; }
input[type=range]::-webkit-slider-runnable-track { width: 100%; height: 2px; cursor: pointer; background: rgba(255,255,255,0.1); border-radius: 1px; }

/* TOOLTIPS */
#canvas-tooltip { position: absolute; background: rgba(0,0,0,0.9); border: 1px solid rgba(255,255,255,0.2); color: #fff; padding: 6px 10px; border-radius: 4px; font-size: 12px; pointer-events: none; opacity: 0; z-index: 100; transition: opacity 0.1s; font-family: monospace; white-space: nowrap; }

/* AUTH SCREEN */
.auth-wrapper { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at top right, #0f0f14, #000000); }
.auth-panel { background: rgba(10, 10, 10, 0.8); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 12px; padding: 40px; width: 100%; max-width: 400px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); }
.error { color: #ef4444; text-align: center; margin-bottom: 15px; font-size: 0.85rem; font-weight: 600; }