/* Branding Greenpharma 2025 - Moderno Minimalista */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --gp-forest: #0B3D1D;
    --gp-citrus: #A4C639;
    --gp-bg: #F2F4F2;
    --sidebar-width: 270px;
    --gp-white: #FFFFFF;
    --gp-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

body {
    background-color: var(--gp-bg);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--gp-forest);
    margin: 0;
    overflow-x: hidden;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    background: var(--gp-forest);
    color: white;
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.sidebar-brand { 
    padding: 2.5rem 1.5rem; 
    text-align: center; 
    border-bottom: 1px solid rgba(255,255,255,0.1); 
}

.brand-slogan { 
    font-size: 0.65rem; 
    color: var(--gp-citrus); 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 1px;
}

.menu-item {
    display: flex; 
    align-items: center; 
    padding: 12px 25px;
    color: rgba(255,255,255,0.7); 
    text-decoration: none; 
    transition: 0.3s;
    font-weight: 500;
}

.menu-item i { width: 30px; font-size: 1.1rem; }

.menu-item:hover, .menu-item.active { 
    background: rgba(164,198,57,0.1); 
    color: white; 
    border-left: 4px solid var(--gp-citrus); 
}

.menu-divider { 
    padding: 20px 25px 10px; 
    font-size: 0.7rem; 
    font-weight: 800; 
    color: var(--gp-citrus); 
    opacity: 0.6; 
    text-transform: uppercase;
}

/* Main Layout */
.main-content { 
    margin-left: var(--sidebar-width); 
    min-height: 100vh; 
}

.topbar { 
    background: white; 
    height: 75px; 
    padding: 0 2rem; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    border-bottom: 3px solid var(--gp-citrus);
    box-shadow: var(--gp-shadow);
}

/* User Profile & Notifications */
.user-profile { display: flex; align-items: center; gap: 12px; }
.user-info { text-align: right; line-height: 1.2; }
.user-name { font-weight: 700; font-size: 0.9rem; color: var(--gp-forest); }
.user-role { font-size: 0.7rem; color: #888; }

.user-avatar { 
    width: 45px; height: 45px; 
    border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; 
    background: #eee; overflow: hidden; 
    border: 2px solid var(--gp-citrus);
}
.user-avatar i { font-size: 2.2rem; color: var(--gp-forest); }
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }

.notification-dot { 
    position: absolute; top: -2px; right: -2px; 
    width: 10px; height: 10px; 
    background: #ff4757; border-radius: 50%; 
    border: 2px solid white; 
}

/* Estilização Global de Scrollbar (Crucial para Tabelas e Mensageiro) */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--gp-citrus); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--gp-forest); }

/* Utilitários de Tabela */
.table-responsive {
    border-radius: 12px;
    overflow-x: auto;
    background: white;
}

.text-nowrap { white-space: nowrap !important; }
