/* ==========================================================================
   1. Variáveis e Reset
   ========================================================================== */
:root {
    --bg-app: #0b1120;
    --bg-sidebar: #1e293b;
    --bg-card: #161d30;
    --accent: #3b82f6;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: #334155;
    --danger: #991b1b;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', sans-serif; }
body { background-color: var(--bg-app); color: var(--text-main); height: 100vh; overflow: hidden; }

/* ==========================================================================
   2. Layout da Aplicação
   ========================================================================== */
.app-layout { display: flex; height: 100vh; }

.sidebar { 
    width: 280px; 
    background-color: var(--bg-sidebar); 
    padding: 24px; 
    border-right: 1px solid var(--border); 
    display: flex; 
    flex-direction: column; 
    height: 100%;
}

.sidebar-header { margin-bottom: 30px; font-size: 1.2rem; }
.sidebar-footer { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.main-content { flex: 1; padding: 30px; overflow-y: auto; }

/* ==========================================================================
   3. Menu e Botões
   ========================================================================== */
.menu-item { 
    background: #2d3748; border: none; color: var(--text-muted); 
    padding: 12px 16px; border-radius: 6px; cursor: pointer; 
    text-align: left; transition: 0.3s; width: 100%; margin-bottom: 8px; 
}
.menu-item:hover { background: #4a5568; color: white; }
.menu-item.active { background-color: var(--accent); color: white; }

.add-tag-btn { 
    background: #374151; color: white; border: none; 
    padding: 12px; border-radius: 6px; cursor: pointer; width: 100%; 
}
.btn-sair { background: var(--danger) !important; color: white !important; }

/* ==========================================================================
   4. Kanban Board
   ========================================================================== */
.kanban-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 20px; }
.kanban-column { background: var(--bg-card); border-radius: 8px; padding: 15px; min-height: 70vh; }
.column-header { font-weight: bold; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }

/* Cartões */
.kanban-card { background: #1e293b; padding: 12px; margin-bottom: 12px; border-radius: 4px; cursor: grab; border-left: 4px solid var(--accent); }

/* Cores de Status */
.status-concluído { border-left-color: #166534 !important; background-color: #064e3b !important; }
.status-impedido { border-left-color: #991b1b !important; background-color: #7f1d1d !important; }
.status-em-execução { border-left-color: #1e40af !important; background-color: #1e3a8a !important; }

/* ==========================================================================
   5. Modais e Dashboard
   ========================================================================== */
.modal-overlay { 
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.7); z-index: 9999; justify-content: center; align-items: center; 
}
.modal-card { background: var(--bg-sidebar); padding: 20px; border-radius: 12px; width: 400px; border: 1px solid var(--border); max-height: 80vh; overflow-y: auto; }
.modal-header { display: flex; justify-content: space-between; margin-bottom: 20px; }
.close-modal-btn { background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; }

.dash-card { background: var(--bg-card); padding: 20px; border-radius: 8px; text-align: center; width: 200px; border: 1px solid var(--border); }

.btn-float { 
    position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; 
    background-color: var(--accent); color: white; border: none; border-radius: 50%; 
    font-size: 30px; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.3); z-index: 1000; 
}

.item-pessoa { display: flex; justify-content: space-between; padding: 10px; background: var(--bg-card); margin-bottom: 8px; border-radius: 4px; align-items: center; }