:root {
    /* --- COLOR PALETTE (USER DEFINED) --- */
    --primary: #6b4eff;
    /* Índigo vivido (Buttons, Highlights) */
    --primary-pastel: #8b68ff;
    /* Índigo pastel */
    --primary-light: #b4a2ff;
    /* Índigo claro (Soft Accents) */
    --primary-dark: #241057;
    /* Violeta oscuro (Main Background) */

    --secondary: #00b6fc;
    /* Celeste vivido oscuro */
    --secondary-light: #00c4fc;
    /* Celeste vivido claro */
    --cyan-vivid: #00ebff;
    /* Cian vivido (Glows / Active States) */
    --cyan-dim: #115d8c;
    /* Celeste (Muted) */

    --text-main: #2c2a29;
    /* Negro (Text on White) */
    --text-light: #ffffff;
    /* Blanco (Text on Dark) */

    --bg-glass: rgba(255, 255, 255, 0.1);
    --bg-card: #ffffff;

    /* --- SPACING & UI --- */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 15px rgba(107, 78, 255, 0.4);

    --nav-height: 60px;
    --bottom-nav-height: 70px;
}

/* --- RESET & BASE --- */
* {
    box-sizing: border-box;
}

body {
    background-color: #f0f2f5;
    /* Fallback Light Mode */
    font-family: 'Inter', 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-main);
    overflow: hidden;
    /* App Shell */
}

/* --- DARK MODE OVERRIDES (Optional / Future) --- */
body.premium-dark {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #000000 100%);
    color: var(--text-light);
}

/* --- COMPONENTS: CARDS --- */
.card-premium {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border-left: 5px solid transparent;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card-premium:active {
    transform: scale(0.98);
}

/* --- COMPONENTS: BUTTONS --- */
.btn-premium {
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px 20px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(107, 78, 255, 0.3);
    transition: 0.3s;
}

.btn-premium:hover {
    box-shadow: var(--shadow-glow);
    filter: brightness(1.1);
}

/* --- LAYOUT: APP SHELL --- */
#app-shell {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

#main-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    padding-bottom: 90px;
    /* Space for Bottom Nav */
}

/* --- COMPONENTS: BOTTOM NAV (MOBILE) --- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--bottom-nav-height);
    background: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #aaa;
    font-size: 0.75rem;
    text-decoration: none;
    transition: 0.2s;
}

.nav-item i {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.nav-item.active {
    color: var(--primary);
}

/* --- STATUS BADGES --- */
.badge-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.status-active {
    background: rgba(46, 204, 113, 0.15);
    color: #27ae60;
}

.status-warn {
    background: rgba(241, 196, 15, 0.15);
    color: #d35400;
}

.status-danger {
    background: rgba(231, 76, 60, 0.15);
    color: #c0392b;
}

/* --- RESPONSIVE TYPOGRAPHY --- */
h1,
h2,
h3 {
    font-weight: 700;
    color: var(--primary-dark);
}

small {
    color: #666;
}

@media (min-width: 768px) {

    /* Desktop Sidebar adjustment */
    .bottom-nav {
        display: none;
    }

    #main-content {
        padding-left: 280px;
        padding-bottom: 20px;
    }
}