:root {
    /* Paleta de Colores - Tema Oscuro Vívido */
    --bg-gradient: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    --primary-color: #00d2ff;
    --secondary-color: #3a7bd5;
    --accent-color: #ff0099;
    --text-main: #ffffff;
    --text-muted: #b3b3b3;

    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --blur-amount: 10px;

    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    
    /* Tipografía */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    width: 90%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: rgba(15, 12, 41, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 15px;
    animation: slideDown 0.3s ease-out;
    pointer-events: auto;
}

.toast.success { border-left: 4px solid #00ff88; }
.toast.error { border-left: 4px solid #ff4444; }
.toast.info { border-left: 4px solid #00d2ff; }

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background: var(--bg-gradient);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Glass Utility Class */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

/* Navigation - Mobile Bottom Bar */
.nav-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(15, 12, 41, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid var(--glass-border);
    z-index: 100;
}

.nav-item {
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-item i {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

/* Container */
.container {
    padding: var(--spacing-md);
    padding-bottom: 80px; /* Space for nav */
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

/* Components */
.btn {
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
    display: inline-block;
}

.btn:active {
    transform: scale(0.95);
}

.scan-fab {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 0, 153, 0.5);
    border: 4px solid #1a1635; /* Match bg roughly */
}

/* Debug Console */
#debug-console {
    display: none; /* Hidden by default */
    position: fixed;
    top: 50px;
    right: 10px;
    width: 90%;
    max-width: 400px;
    height: 300px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid var(--primary-color);
    z-index: 9999;
    overflow: hidden;
    border-radius: 8px;
    font-family: monospace;
    font-size: 12px;
}

#debug-header {
    background: var(--primary-color);
    color: black;
    padding: 5px 10px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
}

#debug-content {
    height: calc(100% - 30px);
    overflow-y: auto;
    padding: 10px;
    color: #0f0;
}

.log-entry {
    margin-bottom: 5px;
    border-bottom: 1px solid #333;
    padding-bottom: 2px;
}
.log-time { color: #888; }
.log-level { font-weight: bold; }
.log-level.INFO { color: #0af; }
.log-level.ERROR { color: #f00; }
.log-level.DEBUG { color: #fe0; }


/* Dropdown Fix */
select option { background-color: #0f0c29; color: white; }
