/* 🔷 BASE GERAL */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #0b3d91;
    color: white;
    padding: 0;
}

/* 🔷 CABEÇALHO */
.header {
    text-align: center;
    margin-bottom: 20px;
}

.header img {
    width: 220px;
}

/* 🔷 FORMULÁRIOS */
.campo,
.item-campo {
    margin-bottom: 10px;
}

.campo label,
.item-campo label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 13px;
}

.campo input,
.campo textarea,
.campo select,
.item-campo input {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: none;
    background: #ffffff;
    color: #000;
}

/* 🔷 BOTÕES */
button {
    background: #1e3a8a;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
}

button:hover {
    background: #1e40af;
}

.btn {
    background: #16a34a;
}

.btn-zap {
    background: #22c55e;
}

.btn-novo {
    background: #06d6a0;
    padding: 12px;
    border-radius: 10px;
    border: none;
    font-weight: bold;
    width: 100%;
}

/* 🔷 CARDS */
.secao,
.linha-item {
    background: #1e3a8a;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 10px;
}

/* 🔷 DESCRIÇÃO */
.campo-full {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

/* 🔷 LINHA VALORES (PC) */
.linha-valores {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* botão excluir padrão sistema */
.btn-remove {
    background: #e63946;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: bold;
    color: white;
    margin-top: 8px;
    cursor: pointer;
}

.btn-remove:hover {
    background: #c1121f;
}

/* 🔷 CAMPOS INTERNOS */
.item-campo {
    display: flex;
    flex-direction: column;
}

/* 🔷 TOTAL */
#total_geral {
    text-align: center;
    margin-top: 20px;
    font-size: 18px;
    font-weight: bold;
}

/* 📱 MOBILE */
@media (max-width: 600px){
    .linha-valores {
        grid-template-columns: 1fr;
    }
}

.btn-logout {
    background: #dc2626;
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s;
}

.btn-logout:hover {
    background: #b91c1c;
}

.btn-acao {
    width: auto;
    padding: 5px 8px;
    border-radius: 6px;
    display: inline-block;
}

table {
    border-collapse: collapse;
}

th, td {
    padding: 8px;
    text-align: center;
}

.tabela-pecas {
    width: 100%;
    background: white;
    border-collapse: collapse;
    color: black;
}

.tabela-pecas th {
    background: #1e3a8a;
    color: white;
    padding: 8px;
}

.tabela-pecas td {
    padding: 8px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.btn-acao {
    width: auto !important;
    padding: 6px 10px;
    border-radius: 6px;
}

td button {
    width: auto;
}

.btn-add {
    background: #06d6a0;
    color: #000;
}

.btn-add-full {
    width: 100%;
    background: #06d6a0;
    color: #000;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    margin-top: 8px;
}

.btn-principal {
    background: #06d6a0 !important;
    color: #000 !important;
}

/* STATUS COLORS */

.status {
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 13px;
}

/* 🔵 EM ANDAMENTO */
.status.andamento {
    background: #3b82f6;
    color: white;
}

/* 🟡 AGUARDANDO PEÇAS */
.status.aguardando {
    background: #facc15;
    color: black;
}

/* 🟠 PENDENTE */
.status.pendente {
    background: #f97316;
    color: white;
}

/* 🟢 FINALIZADA */
.status.finalizada {
    background: #22c55e;
    color: white;
}

/* 🔴 CANCELADA */
.status.cancelada {
    background: #ef4444;
    color: white;
}

.status {
    box-shadow: 0 0 6px rgba(0,0,0,0.2);
}

.sugestoes {
    position: absolute;
    background: white;
    color: black;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 999;
}

.sugestao-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.sugestao-item:hover {
    background: #f2f2f2;
}

/* VIDEOS */
.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.video-item {
    background: #1e293b;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
}

.video-item:hover {
    background: #334155;
}

.thumb {
    font-size: 30px;
    margin-bottom: 5px;
}

.galeria {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.galeria img {
    width: 100%;
    border-radius: 10px;
}

/* Desktop */
@media (min-width: 768px){
    .galeria {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
}

.modal-content {
    position: relative;
    margin: 5% auto;
    width: 90%;
    max-width: 400px;
}

.modal iframe {
    width: 100%;
    aspect-ratio: 9/16;
    border: none;
    border-radius: 10px;
}

.fechar {
    position: absolute;
    top: -30px;
    right: 0;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* ========================= */
/* 📋 LISTAS ADMIN */
/* ========================= */

.card {
    background: #1e293b;
    color: #e5e7eb; /* texto claro */
}

.card strong {
    color: #ffffff; /* título mais forte */
}

/* links normais */
.card a {
    color: #93c5fd; /* azul claro */
    text-decoration: none;
}

.card a:hover {
    color: #60a5fa;
}

/* botão excluir */
.btn-excluir {
    background: #ef4444;
    color: white;
    padding: 5px 10px;
    border-radius: 6px;
    display: inline-block;
}

.btn-excluir:hover {
    color: #dc2626 !important;
}

/* ========================= */
/* 📱 AJUSTES MOBILE */
/* ========================= */
@media (max-width: 768px) {

    body {
        font-size: 16px;
    }

    h1, h2, h3 {
        font-size: 24px;
        text-align: center;
    }

    form {
        width: 100%;
    }

    input,
    select,
    textarea,
    button {
        width: 100%;
        font-size: 16px;
        padding: 12px;
        margin-bottom: 10px;
        box-sizing: border-box;
    }

    .container {
        padding: 15px;
    }

    .card {
        padding: 15px;
        font-size: 16px;
    }

    .btn-menu {
        width: 100%;
        font-size: 18px;
        padding: 15px;
    }

    .tabela-container {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tabela-container table {
        min-width: 700px;
        width: 100%;
    }
    
}

main,
.container {
    padding: 15px;
    box-sizing: border-box;
}