/* ==========================================================
   Fácil-SaaS — Design System Global (Premium Dark)
   Usado por: Todos os Painéis Administrativos
   ========================================================== */

:root {
    --brand-color: #ff6b00; /* Laranja Espetaria */
    --brand-dark: #cc5600;
    --bg-color: #0b0c10;
    --card-bg: rgba(30, 41, 59, 0.4);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --glass-blur: blur(20px) saturate(160%);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Outfit', sans-serif; 
}

body {
    background: var(--bg-color);
    background-image: 
        radial-gradient(at 0% 0%, hsla(253,16%,7%,1) 0, transparent 50%), 
        radial-gradient(at 50% 0%, hsla(22,100%,10%,1) 0, transparent 50%), 
        radial-gradient(at 100% 0%, hsla(253,16%,7%,1) 0, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Glass Utility Classes */
.glass {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--card-border);
}

/* SIDEBAR REESTRUTURADA */
aside#main-sidebar {
    width: 260px;
    border-right: 1px solid var(--card-border);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    height: 100vh;
    position: sticky;
    top: 0;
    z-index: 100;
}

.sidebar-logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--brand-color);
    margin-bottom: 40px;
    padding-left: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-item {
    padding: 14px 18px;
    border-radius: 14px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.nav-item:hover {
    background: rgba(255, 107, 0, 0.05);
    color: var(--text-main);
}

.nav-item.active {
    background: var(--brand-color);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

.nav-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* CARDS GLOBAIS */
.card-premium {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    transition: var(--transition);
}

.card-premium:hover {
    border-color: rgba(255, 107, 0, 0.3);
    transform: translateY(-2px);
}

/* SCROLLBAR MODO DARK */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* MOBILE - BOTTOM NAVIGATION BAR */
@media (max-width: 768px) {
    aside#main-sidebar {
        width: 100%;
        height: 75px;
        position: fixed;
        bottom: 0;
        left: 0;
        border-right: none;
        border-top: 1px solid var(--border);
        padding: 5px 10px;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        z-index: 9999;
        gap: 0;
        background: var(--bg-card);
    }

    aside#main-sidebar .sidebar-logo {
        display: none;
    }

    aside#main-sidebar .nav-item {
        flex-direction: column;
        gap: 4px;
        padding: 8px 5px;
        font-size: 0.65rem;
        flex: 1;
        justify-content: center;
        text-align: center;
        font-weight: 700;
        border-radius: 10px;
    }
    
    aside#main-sidebar .nav-item i {
        font-size: 1.2rem;
    }

    aside#main-sidebar .nav-footer {
        margin-top: 0;
        padding-top: 0;
        border-top: none;
        display: flex;
        flex: 1;
    }
}
/* --- TOAST NOTIFICATIONS (ADMIN) --- */
#toast-container {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 16px 24px;
    min-width: 300px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow);
    transform: translateX(120%);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 5px solid var(--brand-color);
}

.toast.visible { transform: translateX(0); }
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.info { border-left-color: var(--info); }

.toast-msg {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
}
