/* OMNIDASH - OPERATIONAL INTELLIGENCE SYSTEM */

:root {
    --bg-main: #050608;          /* Fundo absoluto (DataJud Style) */
    --bg-card: #0d1117;          /* Fundo dos cards (levemente cinza para profundidade) */
    --bg-sidebar: #0a0c0f;       /* Fundo da lateral */
    --accent-cyan: #00f2ff;      /* Ciano Neon principal */
    --accent-dim: rgba(0, 242, 255, 0.1);
    --border-color: #1e293b;     /* Bordas sutis */
    --text-primary: #ffffff;     /* Branco puro para leitura rápida */
    --text-silver: #cbd5e1;      /* Cinza platina para labels (não some no fundo) */
    --text-dim: #64748b;         /* Cinza para detalhes menores */
    --success: #00ff88;          /* Verde neon para status Pago/Ativo */
    --warning: #ffb300;          /* Laranja/Ouro para pendências */
}

/* Reset Geral */
* {
    box-sizing: border-box;
}

body, html {
    background-color: var(--bg-main) !important;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    letter-spacing: -0.01em;
}

/* Sidebar Estilo Terminal */
.sidebar-tech {
    width: 250px;
    height: 100vh;
    position: fixed;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 3px;
    margin-bottom: 50px;
}

.logo-dot {
    width: 10px;
    height: 10px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent-cyan);
}

.menu-items a {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-silver);
    text-decoration: none;
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.menu-items a:hover, .menu-items a.active {
    background: var(--accent-dim);
    color: var(--accent-cyan);
}

/* Content Wrapper */
.content-wrapper {
    margin-left: 250px;
    padding: 50px 70px;
}

.header-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

h1, h2, h3, h4 {
    color: var(--text-primary);
    margin: 0;
}

h1 span, h2 span {
    color: var(--accent-cyan);
    text-shadow: 0 0 8px rgba(0, 242, 255, 0.3);
}

/* Tech Cards Main */
.tech-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 24px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.tech-card:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-4px);
}

.border-pago { border-top: 4px solid var(--success); }
.border-pendente { border-top: 4px solid var(--warning); }

/* Detalhes dentro do Card */
.client-name {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.label-tech {
    color: var(--text-silver);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.value-tech {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.status-tag {
    font-size: 10px;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 1px;
}

.tag-pago { color: var(--success); border: 1px solid var(--success); background: rgba(0, 255, 136, 0.05); }
.tag-pendente { color: var(--warning); border: 1px solid var(--warning); background: rgba(255, 179, 0, 0.05); }

/* Botões Modernos */
.btn-tech-primary {
    background: var(--accent-cyan);
    color: #000;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-tech-primary:hover {
    box-shadow: 0 0 20px var(--accent-cyan);
    opacity: 0.9;
}

.btn-manage-event {
    background: transparent;
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan) !important;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    margin-top: 20px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-manage-event:hover {
    background: var(--accent-cyan);
    color: #000 !important;
}

/* Form e Inputs */
.tech-input {
    background: #000;
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    outline: none;
}

.tech-input:focus {
    border-color: var(--accent-cyan);
}

/* Mini Cards de Detalhe */
.tech-card-mini {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-bottom: 3px solid var(--accent-cyan);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

/* Sidebar Footer Filter */
.sidebar-footer {
    margin-top: auto;
    padding-top: 30px;
}

/* Músicos Chips */
.tag-musico {
    display: inline-block;
    color: var(--text-primary);
    background: #1e293b;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-right: 8px;
    margin-top: 8px;
    border: 1px solid #334155;
}

.tag-musico small {
    color: var(--accent-cyan);
    font-weight: 700;
}

/* Tabela de Recursos */
.tech-table-container {
    background: var(--bg-card);
    border-radius: 14px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.tech-table {
    width: 100%;
    border-collapse: collapse;
}

.tech-table th {
    background: #141b24;
    padding: 18px;
    font-size: 0.75rem;
    color: var(--text-silver);
    text-align: left;
}

.tech-table td {
    padding: 18px;
    border-top: 1px solid var(--border-color);
    color: var(--text-silver);
}

/* Utilitários */
.btn-back { background: transparent; border: none; color: var(--accent-cyan); font-weight: 800; }
.btn-remove { background: transparent; border: none; color: #ff4757; }
/* AJUSTES MOBILE CENTRALIZADOS */
@media (max-width: 768px) {
    /* Sidebar vira menu inferior */
    .sidebar-tech {
        width: 100%;
        height: 70px;
        bottom: 0;
        top: auto;
        flex-direction: row;
        padding: 0 10px;
        justify-content: space-around;
        border-right: none;
        border-top: 1px solid var(--border-color);
    }

    .brand, .sidebar-footer, .menu-items label {
        display: none !important; /* Esconde logo e filtros no mobile para ganhar espaço */
    }

    .menu-items {
        display: flex;
        flex-direction: row;
        width: 100%;
        justify-content: space-around;
        margin: 0;
    }

    .menu-items a {
        flex-direction: column;
        gap: 5px;
        font-size: 0.6rem;
        padding: 10px;
        margin: 0;
    }

    .menu-items a i {
        font-size: 1.2rem;
    }

    /* Ajuste do conteúdo principal */
    .content-wrapper {
        margin-left: 0 !important;
        padding: 20px 15px 100px 15px !important; /* Padding embaixo para não cobrir pelo menu */
    }

    .header-action {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    /* Centralização dos Cards */
    .tech-card {
        text-align: center;
    }

    .card-top {
        justify-content: center !important;
        gap: 10px;
        margin-bottom: 15px;
    }

    .client-name {
        font-size: 1.3rem;
    }

    .info-row {
        align-items: center;
        margin-bottom: 15px;
    }

    /* Inputs Mobile */
    .tech-input {
        text-align: center;
    }
}
