/* ARCHIVO: /css/lc-stylos.css
   DESCRIPCIÓN: Estilos unificados y responsivos para el Dashboard y Vehículos.
========================================================================== */

/* 1. ESTRUCTURA PRINCIPAL
========================================================================== */
.lc-dashboard-wrapper {
    display: flex;
    flex-direction: row;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.lc-dashboard-sidebar {
    width: 260px;
    flex-shrink: 0;
}

.lc-dashboard-content {
    flex: 1;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    min-height: 400px;
}

/* 2. NAVEGACIÓN Y COMPONENTES DASHBOARD
========================================================================== */
.lc-user-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.lc-avatar {
    width: 45px;
    height: 45px;
    background-color: #2271b1;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
}

.lc-user-info strong { display: block; color: #333; font-size: 15px; }
.lc-user-info span { font-size: 12px; color: #888; }

.lc-dashboard-nav ul { 
    list-style: none !important; 
    padding: 0 !important; 
    margin: 0 !important; 
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lc-nav-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    text-decoration: none !important;
    color: #555 !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.lc-nav-link:hover { background-color: #f5f7fa; color: #2271b1 !important; }
.lc-nav-link.is-active { background-color: #2271b1; color: #ffffff !important; }

/* 3. UI GLOBAL (FORMULARIOS, BOTONES, TABLAS)
========================================================================== */
.lc-field { margin-bottom: 20px; display: flex; flex-direction: column; }
.lc-field label { font-weight: 600; margin-bottom: 8px; color: #444; font-size: 14px; }

.lc-field input[type="text"], .lc-field input[type="email"], .lc-field input[type="tel"],
.lc-field input[type="number"], .lc-field input[type="password"], .lc-field select, .lc-select {
    width: 100% !important;
    padding: 10px 12px !important;
    border: 1px solid #ccc !important;
    border-radius: 6px !important;
    background-color: #fff !important;
    font-size: 15px !important;
    box-sizing: border-box !important;
}

.lc-btn, .lc-btn-confirm {
    background-color: #2271b1 !important;
    color: white !important;
    padding: 12px 24px !important;
    border: none !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
    text-decoration: none;
    text-align: center;
}

.lc-btn-confirm { background-color: #28a745 !important; }
.lc-btn-confirm:hover { background-color: #218838 !important; transform: translateY(-1px); }

/* Tablas */
.lc-table-wrapper { background:#fff; border-radius:12px; border:1px solid #eee; overflow:hidden; }
.lc-table-wrapper table { width:100%; border-collapse: collapse; line-height: 1.4; }
.lc-table-wrapper tr:hover { background-color: #f9f9f9; }

/* 4. COMPONENTES ESPECÍFICOS (CHECKOUT Y MIS VEHÍCULOS)
========================================================================== */
.lc-checkout-wrapper { display: flex; gap: 30px; margin-top: 25px; align-items: flex-start; }
.lc-main-col { flex: 1; }
.lc-side-col { width: 320px; position: sticky; top: 20px; }

.lc-commitment-box {
    background: #f0f6fb; 
    border-left: 4px solid #2271b1; 
    padding: 20px; 
    margin-bottom: 25px;
    border-radius: 0 8px 8px 0;
}

/* 5. RESPONSIVE (CAMBIO A MENÚ SUPERIOR)
========================================================================== */
@media (max-width: 850px) {
    /* El wrapper se vuelve vertical */
    .lc-dashboard-wrapper { flex-direction: column; gap: 10px; }
    
    /* El sidebar ahora es una barra superior */
    .lc-dashboard-sidebar { width: 100%; }
    
    /* El menú se vuelve horizontal con scroll si es necesario */
    .lc-dashboard-nav ul {
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px !important;
        -webkit-overflow-scrolling: touch;
    }

    .lc-nav-link {
        flex-direction: column;
        font-size: 12px;
        padding: 8px 12px;
        text-align: center;
    }

    .lc-nav-link span.dashicons { margin-right: 0 !important; margin-bottom: 4px; }

    .lc-user-badge { display: none; } /* Ocultamos badge en móvil para ganar espacio */

    .lc-dashboard-content { padding: 15px; border-radius: 0; border: none; border-top: 1px solid #eee; }

    /* Ajustes Checkout y Grid */
    .lc-checkout-wrapper, .lc-vehicle-flex { flex-direction: column; }
    .lc-side-col, .lc-col-gallery, .lc-col-info { width: 100% !important; position: static; }

    /* Hacer la tabla de vehículos escroleable para que no se rompa */
    .lc-table-wrapper {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* 6. OTROS ESTILOS (ADMIN Y SINGLE)
========================================================================== */
.lc-technical-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 15px; }
.lc-specs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; border-top: 1px solid #eee; padding-top: 20px; }
.lc-notice { padding: 15px; margin-bottom: 25px; border-radius: 8px; border-left: 4px solid; }
.lc-notice-success { background: #e7f9ed; border-color: #27ae60; color: #1e7e44; }
.lc-notice-error { background: #fff2f2; border-color: #d63638; color: #a00; }