/**
 * Estilos do Frontend
 * Plugin: Oficina Automóvel
 * Usado no shortcode [oficina_agendamentos_hoje]
 */

/* ============================================
   CONTAINER PRINCIPAL
   ============================================ */

.oficina-agendamentos-hoje {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ============================================
   HEADER
   ============================================ */

.oficina-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid #0073aa;
}

.oficina-titulo {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px;
}

.oficina-data {
    font-size: 18px;
    color: #666;
    font-weight: 500;
}

/* ============================================
   GRID
   ============================================ */

.oficina-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .oficina-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   SECÇÕES
   ============================================ */

.oficina-secao {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.oficina-secao-header {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
}

.oficina-secao-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.oficina-icone {
    font-size: 28px;
    margin-right: 12px;
}

/* ============================================
   LISTA DE AGENDAMENTOS
   ============================================ */

.oficina-lista {
    padding: 20px;
}

.oficina-sem-dados {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 40px 20px;
}

.oficina-item {
    display: flex;
    align-items: stretch;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.oficina-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.oficina-item:last-child {
    margin-bottom: 0;
}

/* ============================================
   HORA
   ============================================ */

.oficina-item-hora {
    background: #0073aa;
    color: white;
    padding: 15px;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    text-align: center;
}

/* ============================================
   CONTEÚDO DO ITEM
   ============================================ */

.oficina-item-conteudo {
    flex: 1;
    padding: 15px;
}

.oficina-item-matricula {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.oficina-item-veiculo {
    font-size: 16px;
    color: #555;
    margin-bottom: 8px;
}

.oficina-cor {
    font-size: 14px;
    color: #777;
    font-style: italic;
}

.oficina-item-cliente {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.oficina-item-cliente strong {
    color: #333;
}

.oficina-item-cliente a {
    color: #0073aa;
    text-decoration: none;
}

.oficina-item-cliente a:hover {
    text-decoration: underline;
}

/* ============================================
   ESTADOS
   ============================================ */

.oficina-item-estado {
    margin-top: 10px;
}

.oficina-estado-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Estados específicos */
.oficina-estado-agendada-entrada .oficina-estado-badge {
    background: #fff3cd;
    color: #856404;
}

.oficina-estado-em-reparacao .oficina-estado-badge {
    background: #d1ecf1;
    color: #0c5460;
}

.oficina-estado-pronta-saida .oficina-estado-badge {
    background: #d4edda;
    color: #155724;
}

.oficina-estado-entregue .oficina-estado-badge {
    background: #d6d8d9;
    color: #383d41;
}

.oficina-estado-sem-estado .oficina-estado-badge {
    background: #e2e3e5;
    color: #6c757d;
}

/* ============================================
   CORES ALTERNATIVAS PARA SECÇÕES
   ============================================ */

.oficina-entradas .oficina-secao-header {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.oficina-entradas .oficina-item-hora {
    background: #28a745;
}

.oficina-saidas .oficina-secao-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.oficina-saidas .oficina-item-hora {
    background: #007bff;
}

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

@media (max-width: 768px) {
    .oficina-titulo {
        font-size: 24px;
    }
    
    .oficina-data {
        font-size: 16px;
    }
    
    .oficina-item {
        flex-direction: column;
    }
    
    .oficina-item-hora {
        width: 100%;
        padding: 10px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .oficina-agendamentos-hoje {
        padding: 10px;
    }
    
    .oficina-secao-header {
        padding: 15px;
    }
    
    .oficina-secao-header h3 {
        font-size: 16px;
    }
    
    .oficina-lista {
        padding: 15px;
    }
    
    .oficina-item-matricula {
        font-size: 18px;
    }
    
    .oficina-item-veiculo {
        font-size: 14px;
    }
}

/* ============================================
   IMPRESSÃO
   ============================================ */

@media print {
    .oficina-agendamentos-hoje {
        max-width: 100%;
    }
    
    .oficina-item {
        page-break-inside: avoid;
    }
    
    .oficina-item:hover {
        transform: none;
        box-shadow: none;
    }
}
