.estoque-page-container {
    padding: 20px;
    color: var(--cor-texto);
}

.estoque-page-container h1 {
    text-align: center;
    color: var(--cor-destaque);
    margin-bottom: 30px;
}


/* ========================================= DASHBOARD TOPO DA PÁGINA ========================================= */


/* =========================================
   KPI STRIP - VERSÃO PREMIUM
========================================= */

.kpi-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;

    background: linear-gradient(145deg, #0f0f0f, #1a1a1a);
    padding: 20px;
    border-radius: 16px;

    border: 1px solid #2a2a2a;

    box-shadow: 
        inset 0 0 0 1px rgba(255,255,255,0.03),
        0 10px 30px rgba(0,0,0,0.6);

    margin-bottom: 35px;
}

/* =========================================
   KPI ITEM
========================================= */

.kpi-item {
    display: flex;
    align-items: center;
    gap: 14px;

    padding: 14px 16px;
    border-radius: 12px;

    background: linear-gradient(145deg, #1a1a1a, #121212);
    border: 1px solid #2c2c2c;

    transition: all 0.3s ease;

    position: relative;
    overflow: hidden;
}

/* Glow suave ao passar o mouse */
.kpi-item:hover {
    transform: translateY(-3px) scale(1.02);

    border-color: var(--cor-destaque);

    box-shadow:
        0 0 20px rgba(255, 0, 0, 0.15),
        inset 0 0 0 1px rgba(255,255,255,0.05);
}

/* Linha animada premium */
.kpi-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;

    width: 4px;
    height: 100%;

    background: linear-gradient(180deg, #ff3c3c, #5a0000);

    opacity: 0;
    transition: opacity 0.3s ease;
}

.kpi-item:hover::before {
    opacity: 1;
}

/* =========================================
   ÍCONE
========================================= */

.kpi-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    border-radius: 10px;

    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);

    box-shadow: inset 0 0 10px rgba(0,0,0,0.6);
}

.kpi-icon-container svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

/* =========================================
   TEXTO
========================================= */

.kpi-text-container {
    display: flex;
    flex-direction: column;
}

.kpi-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;

    letter-spacing: 0.5px;
}

.kpi-label {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   CORES POR ESTADO (SEM AZUL)
========================================= */

/* NORMAL (verde mais sóbrio) */
.kpi-item.kpi-normal .kpi-icon-container {
    color: #4CAF50;
}

/* BAIXO (laranja queimado premium) */
.kpi-item.kpi-baixo .kpi-icon-container {
    color: #ff9800;
}

/* CRÍTICO (vermelho principal do sistema) */
.kpi-item.kpi-critico .kpi-icon-container {
    color: var(--cor-destaque);
}

/* =========================================
   ANIMAÇÃO SUTIL (efeito vivo)
========================================= */

.kpi-item.kpi-critico {
    animation: pulse-critical-kpi 2s infinite;
}

@keyframes pulse-critical-kpi {
    0% { box-shadow: 0 0 0 rgba(255, 0, 0, 0); }
    50% { box-shadow: 0 0 20px rgba(255, 0, 0, 0.25); }
    100% { box-shadow: 0 0 0 rgba(255, 0, 0, 0); }
}






/* ========================================= BARRA DE CONTTROLE E FILTRAGEM ========================================= */

/* =========================================
   CONTROLS BAR - PREMIUM UI
========================================= */

.controls-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;

    padding: 18px 20px;
    margin-bottom: 35px;

    background: linear-gradient(145deg, #0f0f0f, #1a1a1a);
    border: 1px solid #2a2a2a;
    border-radius: 14px;

    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.03),
        0 10px 25px rgba(0,0,0,0.5);
}

/* =========================================
   INPUT (BUSCA)
========================================= */

.controls-bar input[type="text"] {
    flex: 1;
    min-width: 260px;

    padding: 12px 14px;
    border-radius: 10px;

    background: #121212;
    border: 1px solid #2f2f2f;

    color: #fff;
    font-size: 0.95rem;

    transition: all 0.25s ease;
}

/* foco premium */
.controls-bar input[type="text"]:focus {
    outline: none;
    border-color: var(--cor-destaque);

    box-shadow:
        0 0 0 2px rgba(255, 0, 0, 0.15),
        0 0 12px rgba(255, 0, 0, 0.2);
}

/* placeholder mais elegante */
.controls-bar input::placeholder {
    color: #666;
}

/* =========================================
   CONTAINER DOS SELECTS
========================================= */

.filters {
    display: flex;
    gap: 12px;
}

/* =========================================
   SELECTS (DROPDOWN)
========================================= */

.controls-bar select {
    padding: 12px 14px;
    border-radius: 10px;

    background: #121212;
    border: 1px solid #2f2f2f;

    color: #ddd;
    font-size: 0.9rem;

    cursor: pointer;

    transition: all 0.25s ease;
}

/* hover elegante */
.controls-bar select:hover {
    border-color: #444;
}

/* foco premium */
.controls-bar select:focus {
    outline: none;
    border-color: var(--cor-destaque);

    box-shadow:
        0 0 0 2px rgba(255, 0, 0, 0.15),
        0 0 10px rgba(255, 0, 0, 0.2);
}

/* =========================================
   BOTÃO PRINCIPAL (CTA)
========================================= */

.add-new-btn {
    padding: 12px 18px;

    border-radius: 10px;
    border: none;

    font-weight: 600;
    font-size: 0.95rem;

    cursor: pointer;

    color: #fff;

    background: linear-gradient(135deg, #ff2a2a, #5a0000);

    transition: all 0.25s ease;

    box-shadow:
        0 4px 15px rgba(255, 0, 0, 0.25);
}

/* hover premium */
.add-new-btn:hover {
    transform: translateY(-2px);

    background: linear-gradient(135deg, #ff3c3c, #7a0000);

    box-shadow:
        0 6px 20px rgba(255, 0, 0, 0.35);
}

/* clique (feedback físico) */
.add-new-btn:active {
    transform: scale(0.97);
}

/* =========================================
   RESPONSIVO
========================================= */

@media (max-width: 768px) {
    /* 1. KPIs */
    .kpi-strip {
        grid-template-columns: 1fr 1fr; /* 2 colunas no celular */
        padding: 12px;
        gap: 12px;
    }

    /* 2. Barra de Controle e Filtros */
    .controls-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .filters {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }
    
    .filters select, #search-material {
        width: 100%;
        box-sizing: border-box;
    }

    .controls-bar > div:last-child {
        display: flex;
        flex-direction: row;
        width: 100%;
        gap: 10px;
    }

    .add-new-btn {
        flex-grow: 1;
        text-align: center;
        justify-content: center;
    }
    
    .print-btn {
        flex-shrink: 0;
    }

    /* 3. Grid de Materiais */
    .material-cards-container {
        grid-template-columns: 1fr;
        padding: 5px;
    }

    .material-card {
        padding: 16px;
        min-width: 0;
        word-break: break-word; /* Evita que nomes longos quebrem o card */
    }

    /* 4. Ações do Card (Os 4 botões de Entrada, Saída, etc) */
    .card-actions {
        display: grid;
        grid-template-columns: 1fr 1fr; /* 2 botões por linha */
        gap: 8px;
        margin-top: 15px;
    }

    .card-actions .action-btn {
        width: 100%;
        padding: 10px;
        font-size: 0.85rem;
    }

    /* 5. Modais responsivos */
    .modal-content {
        width: 95%;
        padding: 15px;
        max-height: 95vh;
        overflow-y: auto;
    }
    
    .form-row, .form-row-wide {
        grid-template-columns: 1fr; /* Força 1 coluna nos formulários do modal */
        gap: 10px;
    }
}








/* ========================================= CARDS CONTAINERS ESTOQUE ========================================= */

/* =========================================
   CONTAINER - GRID INTELIGENTE
========================================= */
.material-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 20px;
    padding: 10px 0;
}

/* =========================================
   CARD BASE
========================================= */
.material-card {
    position: relative;
    background: linear-gradient(145deg, #111, #0a0a0a);
    border-radius: 14px;
    padding: 20px;
    border: 1px solid #222;

    box-shadow:
        0 10px 25px rgba(0,0,0,0.6),
        inset 0 0 0 1px rgba(255,255,255,0.02);

    transition: all 0.3s ease;

    display: flex;
    flex-direction: column;
}

/* Glow lateral sutil */
.material-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    border-radius: 14px 0 0 14px;
    background: linear-gradient(180deg, #333, transparent);
}

/* Hover premium */
.material-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow:
        0 20px 40px rgba(0,0,0,0.8),
        inset 0 0 0 1px rgba(255,255,255,0.03);
}

/* =========================================
   STATUS VISUAL (SEM POLUIÇÃO)
========================================= */

/* NORMAL */
.material-card.normal::before {
    background: linear-gradient(180deg, #444, transparent);
}

/* BAIXO */
.material-card.baixo::before {
    background: linear-gradient(180deg, #ff9800, transparent);
}

/* CRÍTICO */
.material-card.critico::before {
    background: linear-gradient(180deg, #ff2a2a, #5a0000);
}

.material-card.critico {
    box-shadow:
        0 0 20px rgba(255, 0, 0, 0.15),
        0 10px 25px rgba(0,0,0,0.7);
}

/* =========================================
   HEADER
========================================= */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.material-info h2 {
    font-size: 1.2rem;
    margin: 0;
    color: #fff;
    font-weight: 600;
}

.material-code {
    font-size: 0.75rem;
    color: #777;
    letter-spacing: 1px;
}

/* =========================================
   ESTOQUE (DESTAQUE)
========================================= */
.current-stock {
    font-size: 1rem;
    margin-bottom: 12px;
    color: #aaa;
}

.current-stock span {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
}

/* =========================================
   BARRA DE ESTOQUE PREMIUM
========================================= */
.stock-level-bar {
    position: relative;
    height: 10px;
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}

.stock-level-bar .fill {
    height: 100%;
    border-radius: 10px;

    background: linear-gradient(90deg, #ff2a2a, #8b0000);

    box-shadow: 0 0 10px rgba(255, 0, 0, 0.4);

    transition: width 0.5s ease;
}

/* Glow animado sutil */
.stock-level-bar .fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.2),
        transparent
    );
    animation: shine 2.5s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* =========================================
   DETALHES
========================================= */
.stock-details {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 10px;
}

.material-location {
    font-size: 0.8rem;
    color: #666;
}

/* =========================================
   AÇÕES (BOTÕES PREMIUM)
========================================= */
.card-actions {
    display: flex;
    gap: 8px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.action-btn {
    flex: 1;

    padding: 8px;
    border-radius: 8px;

    border: 1px solid #333;
    background: #111;
    color: #ccc;

    font-size: 0.75rem;
    letter-spacing: 0.5px;

    cursor: pointer;
    transition: all 0.25s ease;
}

/* Hover padrão */
.action-btn:hover {
    background: linear-gradient(135deg, #ff2a2a, #8b0000);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
}

/* Botão mais importante */
.action-btn.add-entry {
    border-color: rgba(255, 42, 42, 0.4);
}

/* =========================================
   FAB (BOTÃO FLUTUANTE)
========================================= */
.fab-add-material {
    position: fixed;
    bottom: 30px;
    right: 30px;

    width: 65px;
    height: 65px;

    border-radius: 50%;

    background: linear-gradient(135deg, #ff2a2a, #5a0000);

    color: #fff;
    font-size: 2.5rem;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow:
        0 10px 25px rgba(0,0,0,0.7),
        0 0 20px rgba(255,0,0,0.4);

    transition: all 0.3s ease;
}

.fab-add-material:hover {
    transform: scale(1.1) rotate(90deg);
}










/* ========================================= MODAL HISTÓRICO ========================================= */

/* =========================================
   MODAL BASE (UPGRADE VISUAL)
========================================= */
.modal {
    position: fixed;
    inset: 0;

    display: none; /* 🔥 ESSENCIAL */
    align-items: center;
    justify-content: center;

    background: rgba(0,0,0,0.7);

    z-index: 999;
}

#history-modal .modal-content {
    width: 95%;
    max-width: 1000px;

    max-height: 90vh; /* 🔥 ISSO RESOLVE */
    overflow: hidden; /* impede vazamento */

    display: flex;
    flex-direction: column;
}

/* Título com destaque */
#history-modal h2 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 600;
}

/* =========================================
   KPIs (TOPO)
========================================= */
.history-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;

    margin-bottom: 20px;
}

.history-kpis p {
    background: #111;
    border: 1px solid #222;

    padding: 12px;
    border-radius: 10px;

    font-size: 0.8rem;
    color: #888;

    display: flex;
    flex-direction: column;
}

.history-kpis strong {
    margin-top: 5px;
    font-size: 1.1rem;
    color: #fff;
}

/* Destaque sutil no hover */
.history-kpis p:hover {
    border-color: rgba(255, 0, 0, 0.4);
    box-shadow: 0 0 10px rgba(255,0,0,0.15);
}

/* =========================================
   MINI GRÁFICO
========================================= */
.history-chart-container {
    grid-column: 1 / -1;

    height: 90px;
    padding: 10px;

    border-radius: 12px;

    background: linear-gradient(145deg, #0f0f0f, #1a1a1a);
    border: 1px solid #222;

    box-shadow: inset 0 0 10px rgba(0,0,0,0.6);
}

/* =========================================
   SCROLL CUSTOM (UX PREMIUM)
========================================= */
.modal-scroll-content {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
}

/* Scrollbar estilizada */
.modal-scroll-content::-webkit-scrollbar {
    width: 6px;
}

.modal-scroll-content::-webkit-scrollbar-track {
    background: #111;
}

.modal-scroll-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff2a2a, #5a0000);
    border-radius: 10px;
}

/* =========================================
   TABELA (ESTILO SISTEMA FINANCEIRO)
========================================= */
.history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

/* Cabeçalho */
.history-table th {
    background: #0f0f0f;
    color: #888;

    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;

    padding: 12px;
    border-bottom: 1px solid #222;
}

/* Linhas */
.history-table td {
    padding: 12px;
    font-size: 0.85rem;
    border-bottom: 1px solid #1a1a1a;
    color: #ccc;
}

/* Zebra elegante */
.history-table tbody tr:nth-child(even) {
    background: rgba(255,255,255,0.01);
}

/* Hover profissional */
.history-table tbody tr:hover {
    background: rgba(255, 0, 0, 0.08);
    transition: background 0.2s ease;
}

/* =========================================
   TIPOS DE MOVIMENTO (SEM AZUL)
========================================= */
.history-table .movement-type-entrada {
    color: #00c853;
    font-weight: 600;
}

.history-table .movement-type-saida {
    color: #ff2a2a;
    font-weight: 600;
}

.history-table .movement-type-contagem {
    color: #aaa; /* neutro elegante */
    font-weight: 500;
}

/* Ícones */
.movement-icon {
    margin-right: 6px;
}

/* Resultado final */
.stock-result {
    font-weight: 700;
    color: #fff;
}

/* =========================================
   CLOSE BUTTON
========================================= */
.close-button {
    font-size: 22px;
    color: #888;
    transition: 0.2s;
}

.close-button:hover {
    color: #ff2a2a;
    transform: scale(1.2);
}

/* =========================================
   RESPONSIVO (MOBILE PREMIUM)
========================================= */
@media (max-width: 768px) {
    .history-table thead {
        display: none;
    }

    .history-table,
    .history-table tbody,
    .history-table tr,
    .history-table td {
        display: block;
        width: 100%;
    }

    .history-table tr {
        margin-bottom: 12px;
        padding: 12px;

        border-radius: 10px;
        background: #111;
        border: 1px solid #222;
    }

    .history-table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
    }

    .history-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;

        font-weight: 600;
        color: #888;
        text-align: left;
    }
}




/* ========================================= MODAL DETALHAMETNO DE MATERIAL ========================================= */


/* =========================================
   MODAL DETALHES DO MATERIAL (ALTO PADRÃO)
========================================= */

#material-details-modal {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#material-details-modal .modal-content {
    width: 100%;
    max-width: 800px;

    max-height: calc(100vh - 40px); /* 🔥 NUNCA passa da tela */
    
    display: flex;
    flex-direction: column;

    border-radius: 16px;
    overflow: hidden;
}

/* HEADER */
#material-details-modal {
    position: fixed;
    inset: 0;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);

    overflow-y: auto; /* 🔥 permite scroll da TELA, não do conteúdo */
    z-index: 9999;
}

/* SCROLL INTERNO */
#material-details-modal .modal-body {
    overflow-y: auto;
    flex: 1; /* 🔥 ocupa o espaço restante sem estourar */
}

/* GRID DE INFORMAÇÕES */
#material-details-modal .modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
}

/* ITEM */
#material-details-modal .modal-body p {
    background: #141414;
    border: 1px solid #2a2a2a;
    border-radius: 10px;

    padding: 12px 14px;
    margin: 0;

    display: flex;
    flex-direction: column;

    transition: all 0.2s ease;
}

#material-details-modal .modal-body p:hover {
    border-color: rgba(255, 42, 42, 0.4);
    box-shadow: 0 0 10px rgba(255, 42, 42, 0.1);
}

/* LABEL */
#material-details-modal .modal-body strong {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    margin-bottom: 4px;
}

/* VALOR */
#material-details-modal .modal-body span {
    font-size: 1rem;
    color: #fff;
    font-weight: 500;
}

/* DESTACAR ESTOQUE */
#modal-material-stock {
    color: #ff2a2a;
    font-weight: bold;
}

/* BOTÃO EXCLUIR */
.delete-btn {
    grid-column: 1 / -1;

    margin-top: 10px;
    padding: 14px;

    border-radius: 10px;
    border: none;

    background: linear-gradient(135deg, #ff2a2a, #5a0000);
    color: #fff;

    font-weight: 600;
    letter-spacing: 0.5px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    cursor: pointer;
    transition: all 0.25s ease;
}

.delete-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 42, 42, 0.4);
}

/* ÍCONE */
.delete-btn svg {
    width: 18px;
    height: 18px;
}

/* SCROLLBAR PREMIUM */
#material-details-modal .modal-body::-webkit-scrollbar {
    width: 6px;
}

#material-details-modal .modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff2a2a, #5a0000);
    border-radius: 10px;
}

/* RESPONSIVO */
@media (max-width: 768px) {
    #material-details-modal .modal-content {
        max-height: 95vh;
    }

    #material-details-modal .modal-body {
        grid-template-columns: 1fr;
    }
}






/* ================= MODAL BASE (caso ainda não tenha global padronizado) ================= */
/* ================= MODAL BASE ================= */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;

    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);

    justify-content: center;
    align-items: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-row-wide {
    grid-template-columns: 1.5fr 1fr;
}

/* ================= CONTAINER ================= */
.action-modal .modal-content {
    width: 100%;
    max-width: 520px;
    max-height: 90vh;

    display: flex;
    flex-direction: column;

    background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
    border-radius: 16px;

    border: 1px solid rgba(255, 0, 0, 0.15);

    box-shadow:
        0 25px 60px rgba(0,0,0,0.8),
        inset 0 0 25px rgba(255,0,0,0.05);

    overflow: hidden;
    animation: modalFade 0.25s ease;
}

/* ================= HEADER ================= */
.action-modal h2 {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 20px 24px;
    margin: 0;

    display: flex;
    justify-content: space-between;
    align-items: center;

    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.action-modal h2 span {
    color: var(--cor-destaque);
}

/* CLOSE */
.action-modal .close-button {
    position: absolute;
    top: 15px;
    right: 18px;

    font-size: 1.4rem;
    color: #777;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-modal .close-button:hover {
    color: var(--cor-destaque);
    transform: scale(1.1);
}

/* ================= FORM ================= */
.action-modal .modal-form {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;

    overflow-y: auto;
}

/* SCROLL INTERNO (caso tenha muito conteúdo) */
.action-modal .modal-scroll-content {
    max-height: 45vh;
    overflow-y: auto;
    padding-right: 6px;
}

/* ================= INPUTS ================= */
.action-modal .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.action-modal label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 0.6px;
}

.action-modal input,
.action-modal select {
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;

    padding: 12px;
    font-size: 0.95rem;
    color: #fff;

    transition: all 0.2s ease;
}

.action-modal input::placeholder {
    color: #666;
}

.action-modal input:focus,
.action-modal select:focus {
    outline: none;
    border-color: var(--cor-destaque);
    box-shadow: 0 0 0 2px rgba(255,0,0,0.15);
}

/* ================= BLOCO ESTÁTICO (CONTAGEM) ================= */
.form-group-static p {
    margin: 0;
    padding: 12px;

    background: #111;
    border-radius: 8px;
    border: 1px solid #333;

    color: #ccc;
    font-size: 0.9rem;
}

.form-group-static strong {
    color: #fff;
    font-size: 1.1rem;
}

/* ================= BOTÃO ================= */
.action-modal .confirm-btn {
    margin-top: 10px;
    padding: 14px;

    border-radius: 10px;
    border: none;

    font-weight: 600;
    letter-spacing: 0.5px;

    background: linear-gradient(135deg, #ff2a2a, #5a0000);
    color: #fff;

    cursor: pointer;
    transition: all 0.25s ease;
}

.action-modal .confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255,0,0,0.3);
}

.action-modal .confirm-btn:active {
    transform: scale(0.97);
}

/* ================= VARIAÇÕES POR TIPO ================= */

/* SAÍDA (mais agressivo) */
#saida-modal .modal-content {
    border: 1px solid rgba(255, 0, 0, 0.3);
    box-shadow:
        0 30px 70px rgba(0,0,0,0.9),
        inset 0 0 35px rgba(255,0,0,0.08);
}

#saida-modal .confirm-btn {
    background: linear-gradient(135deg, #ff0000, #111);
}

/* CONTAGEM (neutro técnico) */
#contagem-modal .confirm-btn {
    background: linear-gradient(135deg, #ffffff, #111);
}

/* CADASTRO (leve destaque) */
#add-material-modal .modal-content {
    max-width: 600px;
}

#add-material-modal .confirm-btn {
    background: linear-gradient(135deg, #ffffff, #111);
}

#entrada-modal .confirm-btn {
    background: linear-gradient(135deg, #ffffff, #111);
}



/* ================= MODAL DE DETALHES DO MATERIAL ================= */

#material-details-modal .confirm-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 12px 18px;
    margin-top: 10px;

    border: none;
    border-radius: 10px;

    background: linear-gradient(135deg, #5a0000, #111);
    color: #fff;

    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .5px;

    cursor: pointer;
    transition: all .25s ease;
}

#material-details-modal .confirm-btn svg {
    flex-shrink: 0;
}

#material-details-modal .confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255,255,255,.15);
}

#material-details-modal .confirm-btn:active {
    transform: scale(.97);
}

#material-details-modal .action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 12px 18px;
    margin-top: 10px;

    border: none;
    border-radius: 10px;

    background: linear-gradient(135deg, #666, #333);
    color: #fff;

    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .5px;

    cursor: pointer;
    transition: all .25s ease;
}

#material-details-modal .action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0,0,0,.25);
}

#material-details-modal .action-btn:active {
    transform: scale(.97);
}

#material-details-modal .action-btn svg {
    flex-shrink: 0;
}

/* ================= ANIMAÇÃO ================= */
@keyframes modalFade {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ================= RESPONSIVO ================= */
@media (max-width: 600px) {
    .action-modal .modal-content {
        width: 95%;
        max-height: 92vh;
    }
}