/* 1. Importación de la fuente Inter desde Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* 2. Estilos Generales del Body */
body {
    background-color: #f8fafc;
    background-image: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    /* Pila de fuentes moderna y segura */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 2rem;
    min-height: 100vh;
    color: #1e293b;
}

/* 3. Estilo de la Tarjeta Principal (Efecto Flotante) */
.main-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0,0,0,0.03);
    padding: 2.5rem !important;
}

/* 4. Títulos y Subtítulos */
h5.module-title {
    color: #111827;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

p.module-subtitle {
    color: #6b7280;
    font-size: 0.95rem;
    margin-top: 0;
    margin-bottom: 2rem;
}

/* 5. Estilo de Inputs y Etiquetas */
label.modern-label {
    color: #374151;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

/* Sobreescribir PrimeFaces para inputs más modernos */
body .ui-inputfield {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border-color: #d1d5db;
    transition: all 0.2s;
}

body .ui-inputfield:focus {
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* 6. Botones (Overrides) */
body .ui-button {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
}

/* Ajustes para botones pequeños si usas la clase .ui-button-sm */
body .ui-button.ui-button-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
}

/* 7. Badge para Placa */
.plate-badge {
    background-color: #fbbf24;
    color: #000;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 700;
    font-family: monospace;
    border: 2px solid #000;
    font-size: 0.9rem;
}

/* 8. Tabla Limpia (Overrides) */
body .ui-datatable .ui-datatable-header {
    background: transparent;
    border: none;
    padding: 1rem 0;
}

body .ui-datatable thead th {
    background: #f3f4f6;
    color: #374151;
    font-weight: 600;
    border: none;
    padding: 1rem;
}

body .ui-datatable tbody tr td {
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
}

body .ui-datatable tbody tr.ui-widget-content {
    border: none;
}

/* 9. Ajustes Responsive */
@media screen and (max-width: 768px) {
    body {
        padding: 0.5rem;
    }

    .main-card {
        padding: 1.5rem !important;
    }

    h5.module-title {
        font-size: 1.25rem;
    }
}