    /* static/css/admin.css */

    :root {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #0e1117;
    --border-color: #30363d;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --accent: #58a6ff;
    --accent-hover: #79a9ff;
    }

    * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    }

    body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
    }

    /* Sidebar */
    .sidebar {
    width: 260px;
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    position: fixed;
    height: 100vh;
    padding: 1.5rem 1rem;
    transition: transform 0.3s ease;
    z-index: 1000;
    }

    .sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    }

    .sidebar-header i {
    font-size: 1.6rem;
    color: var(--accent);
    }

    .sidebar-header h2 {
    font-size: 1.35rem;
    font-weight: 600;
    }

    .menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.85rem 1.2rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.96rem;
    margin-bottom: 0.35rem;
    transition: all 0.18s ease;
    }

    .menu-item i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
    }

    .menu-item:hover,
    .menu-item.active {
    background-color: rgba(88, 166, 255, 0.12);
    color: var(--accent);
    }

    /* Main content */
    .main-content {
    margin-left: 260px;
    flex: 1;
    padding: 2rem 2.5rem;
    min-height: 100vh;
    }

    .topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    }

    .hamburger {
    display: none;
    font-size: 1.6rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    }

    h1 {
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--text-primary);
    }

    /* KPI Cards */
    .kpi-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    }

    .kpi-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.6rem 1.4rem;
    text-align: center;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    }

    .kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    border-color: var(--accent);
    }

    .kpi-title {
    color: var(--text-secondary);
    font-size: 0.98rem;
    margin-bottom: 0.8rem;
    font-weight: 500;
    }

    .kpi-value {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    }

    /* Graph section */
    .graph-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.8rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    }

    .graph-section h2 {
    color: var(--text-secondary);
    font-size: 1.25rem;
    margin-bottom: 1.4rem;
    font-weight: 500;
    }

    /* Responsividade */
    @media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .kpi-container {
        grid-template-columns: 1fr;
    }
    }

    /* Extra - para melhorar visual */
    canvas {
    max-width: 100%;
    }
    /* Estilos específicos para a página de Setores - consistentes com o tema dark */

    .content-wrapper {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    margin-top: 1rem;
    }

    .setores-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.8rem;
    }

    .setores-table th,
    .setores-table td {
    padding: 1.1rem 1.3rem;
    text-align: left;
    background: #0e1117;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    }

    .setores-table th {
    background: #1a2332;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-bottom: none;
    }

    .setores-table input[type="text"] {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.96rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    }

    .setores-table input[type="text"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.18);
    }

    .btn-add,
    .btn-save,
    .btn-remove {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.22s ease;
    }

    .btn-add {
    background: rgba(88, 166, 255, 0.14);
    color: var(--accent);
    border: 1px solid rgba(88, 166, 255, 0.35);
    }

    .btn-add:hover {
    background: rgba(88, 166, 255, 0.28);
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(88, 166, 255, 0.22);
    }

    .btn-save {
    background: var(--accent);
    color: #0d1117;
    }

    .btn-save:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(88, 166, 255, 0.4);
    }

    .btn-remove {
    background: rgba(255, 99, 71, 0.16);
    color: #ff6347;
    border: 1px solid rgba(255, 99, 71, 0.35);
    padding: 0.65rem 1.1rem;
    font-size: 0.92rem;
    }

    .btn-remove:hover {
    background: rgba(255, 99, 71, 0.28);
    color: #ff4500;
    transform: translateY(-1px);
    }

    /* Mensagens de feedback */
    .alert {
    margin-top: 1.8rem;
    padding: 1.1rem 1.6rem;
    border-radius: 8px;
    font-weight: 500;
    border-left: 4px solid;
    }

    .alert.success {
    background: rgba(46, 204, 113, 0.12);
    color: #2ecc71;
    border-left-color: #2ecc71;
    }

    .alert.error {
    background: rgba(231, 76, 60, 0.12);
    color: #e74c3c;
    border-left-color: #e74c3c;
    }

    /* Responsividade para telas menores */
    @media (max-width: 768px) {
    .setores-table th,
    .setores-table td {
        padding: 0.9rem;
    }
    
    .btn-add,
    .btn-save,
    .btn-remove {
        width: 100%;
        margin-bottom: 0.8rem;
    }
    }

    body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    }

    .main-content {
    flex: 1;
    }
