* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

:root {
    /* Tema Claro (Padrão) - Ajustado para combinar com a imagem */
    --bg-body: #0B0E14;
    --bg-card: rgba(30, 41, 59, 0.7);
    --bg-sidebar: rgba(15, 23, 42, 0.8);
    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    --text-sidebar: #FFFFFF;
    --text-sidebar-muted: #CBD5E1;
    --border-color: rgba(255, 255, 255, 0.1);

    /* Cores extraídas da imagem (Azul Neon e Dourado/Âmbar) */
    --primary: #3B82F6;
    --accent: #F59E0B;
    --gradient-primary: linear-gradient(135deg, #3B82F6 0%, #F59E0B 100%);

    /* Cores Funcionais */
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
}

body.dark-mode {
    /* No novo tema, o dark mode é o padrão imersivo */
    --bg-body: #05070A;
    --bg-card: rgba(15, 23, 42, 0.8);
    --border-color: rgba(255, 255, 255, 0.05);
}

body {
    background: url('../img/bg-theme.png') no-repeat center center fixed;
    background-size: cover;
    color: var(--text-primary);
    display: flex;
    min-height: 100vh;
    transition: background-color 0.3s, color 0.3s;
    position: relative;
}

/* Camada de escurecimento para garantir legibilidade */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 14, 20, 0.6);
    z-index: -1;
}

.app {
    display: flex;
    width: 100%;
}

.hidden {
    display: none !important;
}

/* Cores Utilitárias */
.green {
    color: var(--success);
}

.blue {
    color: var(--primary);
}

.red {
    color: var(--danger);
}

.orange {
    color: var(--warning);
}

/* Botões */
.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.btn-primary:hover {
    filter: brightness(0.9);
}

.btn-square {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-edit {
    background: #213fa1;
}

/* Manter azul escuro específico ou usar var */
.btn-delete {
    background: var(--danger);
}

/* Utilitários de Privacidade e FAB */
.blur-content {
    filter: blur(5px);
    user-select: none;
    transition: filter 0.3s;
}

.fab-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    border: none;
    font-size: 24px;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.3s;
    z-index: 1000;
}

.fab-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-primary);
    transition: color 0.3s;
}

.icon-btn:hover {
    color: var(--primary);
}

/* Notificações */
.notification-container {
    position: relative;
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.notifications-panel {
    position: absolute;
    top: 40px;
    right: 0;
    width: 300px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 10px;
    z-index: 1000;
    display: none;
}

.notifications-panel.show {
    display: block;
}

.notification-item {
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-primary);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item.warning {
    border-left: 3px solid var(--warning);
}

.notification-item.danger {
    border-left: 3px solid var(--danger);
}