:root {
    --bs-font-sans-serif: 'Inter', sans-serif;
    --brt-yellow: #f7ca18;
    --brt-yellow-hover: #e0b615;
    --brt-dark: #1a1a1a;
}

body {
    background-color: #f4f4f9;
    font-family: var(--bs-font-sans-serif);
}

.brt-yellow-bg {
    background-color: var(--brt-yellow) !important;
    color: #000 !important;
}

.btn-primary, .btn-brt {
    background-color: var(--brt-yellow) !important;
    border-color: var(--brt-yellow) !important;
    color: #000 !important;
    font-weight: 700;
}

.btn-primary:hover, .btn-brt:hover {
    background-color: var(--brt-yellow-hover) !important;
    border-color: var(--brt-yellow-hover) !important;
}

.btn-outline-brt {
    color: #000 !important;
    border-color: var(--brt-yellow) !important;
    font-weight: 600;
}
.btn-outline-brt:hover, .btn-outline-brt.active {
    background-color: var(--brt-yellow) !important;
    color: #000 !important;
}

.brt-border-top {
    border-top: 4px solid var(--brt-dark) !important;
}

.logo {
    max-width: 200px;
    mix-blend-mode: multiply;
}

.drag-zone {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    color: #aaa;
    cursor: pointer;
    transition: all 0.2s ease;
}

.drag-zone.drag-over {
    border-color: var(--brt-yellow);
    background: rgba(247, 202, 24, 0.08);
    color: #333;
}

.media-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #fff;
    border: 1px dashed #ccc;
    border-radius: 8px;
    margin-bottom: 10px;
}
.media-item.has-preview {
    border-color: var(--brt-yellow);
    background: #fffdf0;
}
.photo-preview-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #ddd;
    flex-shrink: 0;
}
.video-info-badge {
    font-size: 0.8rem;
    color: #444;
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

/* Checklist Checkboxes Base */
.checklist-table td input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--brt-yellow);
}

/* ====== OTIMIZAÇÃO EXTREMA PARA CELULAR (Tabelas -> Cards) ====== */
@media (max-width: 768px) {
    /* 1. Modal de Checklist */
    .checklist-table thead {
        display: none;
    }
    .checklist-table tbody tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        padding: 10px;
        background: #fff;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }
    .checklist-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border: none !important;
        padding: 10px 5px !important;
        border-bottom: 1px solid #f8f9fa !important;
    }
    .checklist-table td:first-child {
        display: block;
        font-weight: bold;
        font-size: 1.05rem;
        text-align: center;
        background-color: #f4f4f9;
        margin-bottom: 10px;
        padding: 10px !important;
        border-radius: 6px;
    }
    /* Rótulos automáticos via CSS para os Checkboxes */
    .checklist-table td:nth-child(2):before { content: "REVISAR"; font-weight: 600; font-size: 0.85rem; color: #555; }
    .checklist-table td:nth-child(3):before { content: "TROCAR"; font-weight: 600; font-size: 0.85rem; color: #555; }
    .checklist-table td:nth-child(4):before { content: "REGULAR"; font-weight: 600; font-size: 0.85rem; color: #555; }
    .checklist-table td:nth-child(5):before { content: "INSPECIONAR"; font-weight: 600; font-size: 0.85rem; color: #555; }
    
    .checklist-table td input[type="checkbox"] {
        transform: scale(1.5);
    }

    /* 2. Tabela de Inspeções (Painel Admin) */
    #inspecoesTable thead {
        display: none;
    }
    #inspecoesTable tbody tr {
        display: flex;
        flex-direction: column;
        margin-bottom: 15px;
        border: 1px solid #dee2e6;
        border-radius: 12px;
        padding: 15px;
        background: #fff;
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    }
    #inspecoesTable td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border: none;
        padding: 8px 0;
        border-bottom: 1px dashed #eee;
    }
    #inspecoesTable td:last-child {
        border-bottom: none;
        justify-content: center;
        gap: 10px;
        margin-top: 10px;
    }
    /* Rótulos automáticos para o Admin */
    #inspecoesTable td:nth-child(1):before { content: "Data/Hora:"; font-weight: 600; font-size: 0.85rem; color: #888; }
    #inspecoesTable td:nth-child(2):before { content: "Equipamento:"; font-weight: 600; font-size: 0.85rem; color: #888; }
    #inspecoesTable td:nth-child(3):before { content: "Máquina:"; font-weight: 600; font-size: 0.85rem; color: #888; }
    #inspecoesTable td:nth-child(4):before { content: "Operação:"; font-weight: 600; font-size: 0.85rem; color: #888; }
    #inspecoesTable td:nth-child(5):before { content: "Destino/Origem:"; font-weight: 600; font-size: 0.85rem; color: #888; }
}
