/* style.css - Sistema de Temas e Base Universal */

/* ===== VARIÁVEIS CSS GLOBAIS ===== */
:root {
    /* Cores base - Light Mode (default) */
    --color-bg: #ffffff;
    --color-surface: #f8fafc;
    --color-surface-alt: #f1f5f9;
    --color-text: #1e293b;
    --color-text-muted: #64748b;
    --color-text-light: #94a3b8;
    --color-border: #e2e8f0;
    --color-border-light: #f1f5f9;


    
    /* Cores primárias - Azul (default) */
    --color-primary: #3b82f6;
    --color-primary-hover: #2563eb;
    --color-primary-light: #dbeafe;
    --color-primary-dark: #1d4ed8;
    
    /* Cores de estado */
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    --color-info: #06b6d4;
    
    /* Componentes */
    --color-card-bg: #ffffff;
    --color-card-border: #e2e8f0;
    --color-card-shadow: rgba(0, 0, 0, 0.05);
    
    /* Inputs e Formulários */
    --color-input-bg: #ffffff;
    --color-input-border: #cbd5e1;
    --color-input-text: #1e293b;
    --color-input-placeholder: #94a3b8;
    --color-input-focus: #3b82f6;
    
    /* Tabelas */
    --color-table-bg: #ffffff;
    --color-table-header-bg: #f8fafc;
    --color-table-border: #e2e8f0;
    --color-table-row-hover: #f1f5f9;
    --color-table-text: #1e293b;
    
    /* Sidebar - Variáveis específicas */
    --sidebar-width: 280px;
    --sidebar-width-collapsed: 80px;
    --sidebar-bg: linear-gradient(180deg, #1e40af, #1e3a8a);
    --sidebar-color: rgba(255, 255, 255, 0.95);
    --sidebar-color-muted: rgba(255, 255, 255, 0.7);
    --sidebar-border: rgba(255, 255, 255, 0.1);
    --sidebar-hover-bg: rgba(255, 255, 255, 0.15);
    --sidebar-active-bg: rgba(255, 255, 255, 0.2);
    --sidebar-active-border: rgba(255, 255, 255, 0.3);
    --sidebar-header-height: 85px;
    --sidebar-footer-height: 200px;
    --sidebar-z-index: 1050;
    
    /* Transições */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.35s ease;
    
    /* Bordas */
    --border-radius-sm: 6px;
    --border-radius-md: 10px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    
    /* Sombras */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.1);
    
    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-blur: blur(10px);



     /* Glass Effect - Light */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-blur: blur(20px);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    
    /* Novos gradientes para glass */
    --glass-gradient-primary: linear-gradient(
        135deg,
        rgba(59, 130, 246, 0.2) 0%,
        rgba(59, 130, 246, 0.1) 100%
    );
    
    --glass-gradient-dark: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.8) 0%,
        rgba(15, 23, 42, 0.6) 100%
    );
}

/* ===== DARK MODE GLOBAL ===== */
body.dark-mode {
    /* Cores base - Dark Mode */
    --color-bg: #0f172a;
    --color-surface: #1e293b;
    --color-surface-alt: #334155;
    --color-text: #f1f5f9;
    --color-text-muted: #cbd5e1;
    --color-text-light: #94a3b8;
    --color-border: #334155;
    --color-border-light: #475569;
    
    /* Componentes Dark */
    --color-card-bg: #1e293bc5;
    --color-card-border: #334155;
    --color-card-shadow: rgba(0, 0, 0, 0.3);
    
    /* Inputs Dark */
    --color-input-bg: #1e293b;
    --color-input-border: #475569;
    --color-input-text: #f1f5f9;
    --color-input-placeholder: #64748b;
    --color-input-focus: #3b82f6;
    
    /* Tabelas Dark */
    --color-table-bg: #1e293b;
    --color-table-header-bg: #0f172a;
    --color-table-border: #334155;
    --color-table-row-hover: #2d3748;
    --color-table-text: #f1f5f9;
    
    /* Sidebar Dark */
    --sidebar-bg: linear-gradient(180deg, #0f172a, #020617);
    --sidebar-color: rgba(255, 255, 255, 0.95);
    --sidebar-color-muted: rgba(255, 255, 255, 0.6);
    --sidebar-border: rgba(255, 255, 255, 0.08);
    --sidebar-hover-bg: rgba(255, 255, 255, 0.1);
    --sidebar-active-bg: rgba(255, 255, 255, 0.15);
    --sidebar-active-border: rgba(255, 255, 255, 0.2);
    
    /* Glass Effect Dark */
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);


     
    /* Glass Effect - Dark */
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(25px);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    
    --glass-gradient-primary: linear-gradient(
        135deg,
        rgba(59, 130, 246, 0.3) 0%,
        rgba(59, 130, 246, 0.15) 100%
    );
    
    --glass-gradient-dark: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.9) 0%,
        rgba(15, 23, 42, 0.7) 100%
    );
}

/* ===== TEMAS DE CORES ===== */

/* Tema Azul (default) */
body.theme-blue {
    --color-primary: #3b82f6;
    --color-primary-hover: #2563eb;
    --color-primary-light: #dbeafe;
    --color-primary-dark: #1d4ed8;
    --sidebar-bg: linear-gradient(180deg, #1e40af, #1e3a8a);
}

/* Tema Roxo */
body.theme-purple {
    --color-primary: #8b5cf6;
    --color-primary-hover: #7c3aed;
    --color-primary-light: #ede9fe;
    --color-primary-dark: #6d28d9;
    --sidebar-bg: linear-gradient(180deg, #7c3aed, #5b21b6);
}

/* Tema Verde */
body.theme-green {
    --color-primary: #10b981;
    --color-primary-hover: #059669;
    --color-primary-light: #d1fae5;
    --color-primary-dark: #047857;
    --sidebar-bg: linear-gradient(180deg, #059669, #047857);
}

/* Tema Vermelho */
body.theme-red {
    --color-primary: #ef4444;
    --color-primary-hover: #dc2626;
    --color-primary-light: #fee2e2;
    --color-primary-dark: #b91c1c;
    --sidebar-bg: linear-gradient(180deg, #dc2626, #b91c1c);
}

/* Tema Dark (especial) */
body.theme-dark {
    --color-primary: #60a5fa;
    --color-primary-hover: #3b82f6;
    --color-primary-light: #1e293b;
    --color-primary-dark: #1d4ed8;
    --sidebar-bg: linear-gradient(180deg, #0f172ab7, #0206177a);
}

/* ===== RESET E BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--color-bg);
    color: white;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}


.texto-primario{
 color: white;
}


/* ===== LAYOUT PRINCIPAL COM SIDEBAR ===== */
.layout-wrapper {
    display: flex;
    min-height: 100vh;
    margin-left: var(--sidebar-width);
    transition: margin-left var(--transition-normal);
}

.main-content {
    flex: 1;
    padding: 1.5rem;
    min-height: 100vh;
    width: calc(100% - var(--sidebar-width));
    transition: width var(--transition-normal);
    filter: blur(12px);
}

/* Quando sidebar está colapsada */
.sidebar-collapsed .layout-wrapper {
    margin-left: var(--sidebar-width-collapsed);
}

.sidebar-collapsed .main-content {
    width: calc(100% - var(--sidebar-width-collapsed));
}

/* ===== SIDEBAR ESTILIZADA ===== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--sidebar-bg);
    color: var(--sidebar-color);
    z-index: var(--sidebar-z-index);
    display: flex;
    flex-direction: column;
    transition: all var(--transition-normal);
    overflow: hidden;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
}

/* Estado colapsado */
.sidebar-collapsed .sidebar {
    width: var(--sidebar-width-collapsed);
}

.sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
}

/* Header da Sidebar */
.sidebar-header {
    flex-shrink: 0;
    padding: 1.5rem 1.25rem 1rem;
    border-bottom: 1px solid var(--sidebar-border);
    min-height: var(--sidebar-header-height);
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.1);
}

.sidebar-header h1 {
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 0.5px;
    margin: 0;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.sidebar-header h1:hover {
    opacity: 0.9;
    transform: translateX(3px);
}

.sidebar-header h1 i {
    font-size: 1.6rem;
    margin-right: 0.75rem;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
    transition: transform var(--transition-fast);
}

.sidebar-header h1:hover i {
    transform: scale(1.1);
}

.sidebar-header hr {
    border-color: var(--sidebar-border);
    margin: 1rem 0 0;
    opacity: 0.3;
}

/* Área principal do menu (rolável) */
.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.25rem 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--sidebar-border) transparent;
}

.sidebar-menu::-webkit-scrollbar {
    width: 4px;
}

.sidebar-menu::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background-color: var(--sidebar-border);
    border-radius: 20px;
}

/* Menu items */
.sidebar-menu .nav {
    gap: 0.5rem;
}

.sidebar-menu .nav-item {
    position: relative;
}

.sidebar-menu .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    color: var(--sidebar-color-muted);
    border-radius: var(--border-radius-md);
    font-weight: 500;
    transition: all var(--transition-fast);
    border: none;
    background: transparent;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.sidebar-menu .nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.sidebar-menu .nav-link .link-text {
    transition: opacity var(--transition-normal);
}

.sidebar-menu .nav-link .badge {
    margin-left: auto;
    font-size: 0.625rem;
    padding: 0.25rem 0.5rem;
    min-width: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Estados do menu */
.sidebar-menu .nav-link:hover {
    background-color: var(--sidebar-hover-bg);
    color: white;
    padding-left: 1.25rem;
}

.sidebar-menu .nav-link:hover i {
    color: white;
    transform: scale(1.1);
}

.sidebar-menu .nav-link.active {
    background-color: var(--sidebar-active-bg);
    color: white;
    font-weight: 600;
    box-shadow: inset 3px 0 0 rgba(255, 255, 255, 0.8);
}

.sidebar-menu .nav-link.active i {
    color: white;
}

/* Efeito de ripple no hover */
.sidebar-menu .nav-link::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.sidebar-menu .nav-link:hover::after {
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

/* Footer da Sidebar */
.sidebar-footer {
    flex-shrink: 0;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--sidebar-border);
    background: rgba(0, 0, 0, 0.15);
    min-height: var(--sidebar-footer-height);
}

.sidebar-footer-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Dropdown do usuário */
.sidebar-footer .dropdown {
    width: 100%;
}

.sidebar-footer .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    width: 100%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    color: white;
    text-align: left;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.sidebar-footer .dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.sidebar-footer .dropdown-toggle::after {
    margin-left: auto;
    border-color: rgba(255, 255, 255, 0.6);
}

.sidebar-footer img.rounded-circle {
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-fast);
}

.sidebar-footer .dropdown-toggle:hover img.rounded-circle {
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.05);
}

.sidebar-footer .text-start {
    flex: 1;
    min-width: 0;
}

.sidebar-footer .text-start .small {
    font-weight: 600;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-footer .text-start .xsmall {
    font-size: 0.75rem;
    color: var(--sidebar-color-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Container do clima */
.weather-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    padding: 1rem;
    color: white;
    backdrop-filter: blur(5px);
    border: 1px solid var(--sidebar-border);
}

.weather-container:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Versão e copyright */
.sidebar-footer .text-center {
    margin-top: 0.5rem;
}

.sidebar-footer .text-center small {
    font-size: 0.75rem;
    color: var(--sidebar-color-muted);
    opacity: 0.8;
}

/* ===== ESTILOS PARA SIDEBAR COLAPSADA ===== */
.sidebar-collapsed .sidebar-header h1 {
    justify-content: center;
    font-size: 0;
}

.sidebar-collapsed .sidebar-header h1 i {
    margin-right: 0;
    font-size: 1.8rem;
}

.sidebar-collapsed .sidebar-menu .nav-link {
    justify-content: center;
    padding: 0.875rem;
}

.sidebar-collapsed .sidebar-menu .link-text,
.sidebar-collapsed .sidebar-menu .badge {
    display: none;
}

.sidebar-collapsed .sidebar-footer .dropdown-toggle {
    justify-content: center;
    padding: 0.5rem;
}

.sidebar-collapsed .sidebar-footer .text-start,
.sidebar-collapsed .sidebar-footer .dropdown-toggle::after {
    display: none;
}

.sidebar-collapsed .sidebar-footer img.rounded-circle {
    margin: 0;
}

.sidebar-collapsed .weather-container,
.sidebar-collapsed .sidebar-footer .text-center {
    display: none;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 992px) {
    :root {
        --sidebar-width: 250px;
        --sidebar-width-collapsed: 70px;
    }
    
    .sidebar-header h1 {
        font-size: 1.25rem;
    }
    
    .sidebar-menu .nav-link {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .layout-wrapper {
        margin-left: 0;
    }
    
    .main-content {
        width: 100%;
    }
    
    /* Overlay para mobile */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1049;
        display: none;
    }
    
    .sidebar-overlay.show {
        display: block;
    }
}

/* ===== TIPOGRAFIA ===== */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-text);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--color-text);
}

small {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* Links */
a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

/* ===== COMPONENTES BASE (mantenha o restante do seu CSS aqui) ===== */

/* Cards */
.card,
.card-glass {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    color: var(--color-text);
    transition: all var(--transition-normal);
    overflow: hidden;
}

/* ... (mantenha o restante do seu CSS existente) ... */

/* ===== ANIMAÇÕES DE TEMA ===== */
.theme-transition * {
    transition: background-color var(--transition-normal),
                color var(--transition-normal),
                border-color var(--transition-normal),
                box-shadow var(--transition-normal);
}

/* ===== BOTÃO TOGGLE SIDEBAR (opcional) ===== */
.sidebar-toggle {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1060;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-md);
}

.sidebar-toggle:hover {
    transform: scale(1.1);
    background: var(--color-primary-hover);
}

@media (min-width: 769px) {
    .sidebar-toggle {
        display: none;
    }
}

/* ===== ESTILOS ESPECÍFICOS DA SIDEBAR ATUALIZADA ===== */

/* Logo */
.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-fast);
    flex: 1;
}

.logo-container:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(3px);
}

.logo-icon {
    font-size: 1.8rem;
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.logo-container:hover .logo-icon {
    transform: rotate(15deg);
    background: rgba(255, 255, 255, 0.25);
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    margin: 0;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

/* Header content */
.sidebar-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem;
}

/* Notificações */
.notifications-container {
    position: relative;
}

.btn-notifications {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all var(--transition-fast);
}

.btn-notifications:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border: 2px solid var(--sidebar-bg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Dropdown de notificações */
.dropdown-notifications {
    min-width: 320px;
    max-width: 400px;
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: var(--border-radius-lg);
    padding: 0;
    margin-top: 0.5rem;
}

.dropdown-notifications .dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
}

.dropdown-notifications .dropdown-header h6 {
    margin: 0;
    color: var(--color-text);
}

.btn-mark-read {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
}

.btn-mark-read:hover {
    color: var(--color-primary);
    background: var(--color-surface);
}

.notifications-list-container {
    max-height: 300px;
    overflow-y: auto;
    padding: 0.5rem;
}

#notifications-list .loading-notifications {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    color: var(--color-text-muted);
}

#notifications-list .spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 0.5rem;
}

.dropdown-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.view-all-link {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all var(--transition-fast);
}

.view-all-link:hover {
    color: var(--color-primary-hover);
    text-decoration: none;
}

/* Loading do menu */
.loading-menu {
    padding: 1.5rem 0;
}

.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.loading-indicator .spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

/* Widget de clima */
.weather-widget {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transition: all var(--transition-fast);
}

.weather-widget:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Perfil do usuário */
.user-profile-container {
    margin-bottom: 1rem;
}

.user-dropdown {
    width: 100%;
}

.user-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    color: white;
    text-align: left;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.user-dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.user-avatar-container {
    position: relative;
}

.user-avatar {
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all var(--transition-fast);
}

.user-dropdown-toggle:hover .user-avatar {
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.05);
}

.user-status-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--sidebar-bg);
    background: #10b981;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    display: block;
    font-weight: 600;
    color: white;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-arrow {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    transition: transform var(--transition-fast);
}

.user-dropdown-toggle[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown menu do usuário */
.user-dropdown-menu {
    min-width: 280px;
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: var(--border-radius-lg);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    box-shadow: var(--shadow-lg);
}

.user-info-header {
    padding: 1rem 1.25rem;
}

.user-info-dropdown {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar-lg {
    border-radius: 50%;
    border: 3px solid var(--color-primary-light);
}

.user-details {
    flex: 1;
}

.user-details strong {
    color: var(--color-text);
    font-size: 0.95rem;
}

.user-details small {
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

/* Itens do dropdown */
.user-dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1.25rem;
    color: var(--color-text);
    text-decoration: none;
    transition: all var(--transition-fast);
    position: relative;
    border-radius: var(--border-radius-sm);
    margin: 0 0.25rem;
}

.user-dropdown-menu .dropdown-item:hover {
    background-color: var(--color-surface);
    color: var(--color-primary);
    padding-left: 1.5rem;
}

.dropdown-icon {
    width: 20px;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 1rem;
}

.user-dropdown-menu .dropdown-item:hover .dropdown-icon {
    color: var(--color-primary);
}

.badge-new {
    background: var(--color-primary);
    color: white;
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    margin-left: auto;
}

/* Preview de temas */
.theme-preview {
    display: flex;
    gap: 0.25rem;
    margin-left: auto;
}

.theme-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-fast);
}

.theme-dot:hover {
    transform: scale(1.2);
}

.theme-dot.active {
    border-color: var(--color-border);
    transform: scale(1.1);
}

.theme-blue { background: #3b82f6; }
.theme-purple { background: #8b5cf6; }
.theme-green { background: #10b981; }
.theme-red { background: #ef4444; }

/* Item de logout */
.logout-item {
    color: #ef4444 !important;
}

.logout-item:hover {
    background-color: rgba(239, 68, 68, 0.1) !important;
    color: #dc2626 !important;
}

/* Informações da versão */
.version-info {
    padding: 0.75rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.version-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
}

.separator {
    opacity: 0.5;
}

.system-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-indicator.online {
    background: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

.status-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.7rem;
}

/* Animações */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsividade */
@media (max-width: 768px) {
    .dropdown-notifications {
        position: fixed !important;
        top: 60px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 90vw !important;
        max-width: 400px !important;
        margin-top: 0 !important;
    }
    
    .user-dropdown-menu {
        position: fixed !important;
        bottom: 80px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 90vw !important;
        max-width: 320px !important;
        margin-top: 0 !important;
    }
}