/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Login */
.login-container {
    max-width: 400px; 
    margin: 100px auto;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.login-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s;
}

button:hover {
    transform: translateY(-2px);
}

/* Header */
.header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header h1 {
    margin-bottom: 10px;
    font-size: 24px;
}

.header a {
    color: #ecf0f1;
    text-decoration: none;
    padding: 8px 15px;
    background: #e74c3c;
    border-radius: 5px;
    transition: background 0.3s;
}

.header a:hover {
    background: #c0392b;
}

/* Sidebar */
.sidebar {
    background: #34495e;
    width: 250px;
    height: 100vh;
    float: left;
    padding: 20px 0;
}

.menu-item {
    padding: 15px 20px;
    color: #ecf0f1;
    cursor: pointer;
    transition: background 0.3s;
    border-left: 4px solid transparent;
}

.menu-item:hover {
    background: #2c3e50;
    border-left: 4px solid #3498db;
}

/* Content */
.content {
    margin-left: 250px;
    padding: 30px;
    background: #ecf0f1;
    min-height: 100vh;
}

/* Cards */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card h3 {
    color: #7f8c8d;
    margin-bottom: 10px;
    font-size: 14px;
    text-transform: uppercase;
}

.stat-card p {
    font-size: 32px;
    font-weight: bold;
    color: #2c3e50;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
}

th {
    background: #34495e;
    color: white;
    font-weight: bold;
}

tr:hover {
    background: #f8f9fa;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 5px;
}

.btn-success {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 5px;
}

.btn-warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 5px;
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 5px;
}

/* Forms */
.section {
    background: white;
    padding: 30px;
    margin: 20px 0;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

/* Muestras */
.muestra {
    border: 2px solid #ecf0f1;
    padding: 20px;
    margin: 15px 0;
    border-radius: 10px;
    background: #f8f9fa;
}

.muestra h4 {
    color: #2c3e50;
    margin-bottom: 15px;
}

/* Map */
#map {
    height: 400px;
    width: 100%;
    margin: 20px 0;
    border-radius: 10px;
    border: 2px solid #bdc3c7;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        float: none;
    }
    
    .content {
        margin-left: 0;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
}

/* Estilos para paginación */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.pagination-info {
    font-size: 14px;
    color: #6c757d;
    font-weight: bold;
}

.pagination-links {
    display: flex;
    gap: 5px;
    align-items: center;
}

.pagination-link {
    padding: 8px 12px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    text-decoration: none;
    color: #007bff;
    font-size: 14px;
    transition: all 0.3s;
}

.pagination-link:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination-current {
    padding: 8px 12px;
    background: #007bff;
    color: white;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
}

/* Para pantallas pequeñas */
@media (max-width: 768px) {
    .pagination {
        flex-direction: column;
        text-align: center;
    }
    
    .pagination-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ============================================
   ESTILOS ESPECÍFICOS PARA DASHBOARD MOTOCICLISTA
   ============================================ */

/* Reset y base mobile-first */
body.motociclista-dashboard {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    background: #f5f5f5;
    padding: 0;
    margin: 0;
}

body.motociclista-dashboard * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Header */
body.motociclista-dashboard .header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

body.motociclista-dashboard .header h1 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    font-weight: 600;
}

body.motociclista-dashboard .header-info {
    font-size: 0.85rem;
    opacity: 0.9;
}

body.motociclista-dashboard .header a {
    color: white;
    text-decoration: none;
    background: rgba(255,255,255,0.2);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    margin: 0 4px;
    display: inline-block;
}

/* Navegación móvil mejorada */
body.motociclista-dashboard .nav-mobile {
    display: flex;
    overflow-x: auto;
    background: white;
    padding: 10px 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 70px;
    z-index: 999;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

body.motociclista-dashboard .nav-mobile::-webkit-scrollbar {
    display: none;
}

body.motociclista-dashboard .nav-item {
    flex: 0 0 auto;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 25px;
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

body.motociclista-dashboard .nav-item.active {
    background: #007bff;
    color: white;
    border-color: #0056b3;
}

body.motociclista-dashboard .content {
    padding: 15px;
    max-width: 100%;
}

body.motociclista-dashboard .section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-left: 4px solid #007bff;
    transition: all 0.3s ease;
}

/* Estados de urgencia */
body.motociclista-dashboard .urgente {
    border-left: 4px solid #e74c3c !important;
    background: linear-gradient(135deg, #ffcccc, #ff9999) !important;
    animation: pulse-urgent 1.5s infinite;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
    position: relative;
}

body.motociclista-dashboard .urgente::before {
    content: "🚨 URGENTE";
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e74c3c;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
}

body.motociclista-dashboard .hora-referencia.hora-pasada {
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
    color: white !important;
    font-weight: bold;
    border-left: 4px solid #c0392b !important;
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.5);
}

@keyframes pulse-urgent {
    0% { 
        background: linear-gradient(135deg, #ffcccc, #ff9999);
        box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
    }
    50% { 
        background: linear-gradient(135deg, #ff9999, #ff6666);
        box-shadow: 0 4px 16px rgba(231, 76, 60, 0.6);
    }
    100% { 
        background: linear-gradient(135deg, #ffcccc, #ff9999);
        box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
    }
}

body.motociclista-dashboard .section h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: #2c3e50;
}

/* Estados de ruta responsivos */
body.motociclista-dashboard .estado-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin: 5px 0;
}

body.motociclista-dashboard .estado-asignada { background: #f39c12; color: white; }
body.motociclista-dashboard .estado-proceso { background: #3498db; color: white; }
body.motociclista-dashboard .estado-completada { background: #27ae60; color: white; }
body.motociclista-dashboard .estado-cancelada { background: #95a5a6; color: white; }

/* Barra de progreso responsiva */
body.motociclista-dashboard .progreso-container {
    margin: 15px 0;
}

body.motociclista-dashboard .progreso-bar {
    background: #ecf0f1;
    border-radius: 10px;
    height: 16px;
    margin: 8px 0;
    position: relative;
    overflow: hidden;
}

body.motociclista-dashboard .progreso-fill {
    background: linear-gradient(90deg, #27ae60, #2ecc71);
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

body.motociclista-dashboard .progreso-pasos {
    font-size: 0.75rem;
    color: #7f8c8d;
    line-height: 1.3;
}

/* Botones de acción responsivos */
body.motociclista-dashboard .acciones-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 15px;
}

body.motociclista-dashboard .btn-action {
    padding: 16px 12px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 0.9rem;
    text-align: center;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

body.motociclista-dashboard .btn-action:active {
    transform: scale(0.98);
}

/* Colores de botones */
body.motociclista-dashboard .btn-action.inicio { background: linear-gradient(135deg, #28a745, #20c997); }
body.motociclista-dashboard .btn-action.en-ruta { background: linear-gradient(135deg, #007bff, #0056b3); }
body.motociclista-dashboard .btn-action.en-cliente { background: linear-gradient(135deg, #ff6b00, #e55a00); }
body.motociclista-dashboard .btn-action.siguiente { background: linear-gradient(135deg, #00bcd4, #0097a7); }
body.motociclista-dashboard .btn-action.saliendo { background: linear-gradient(135deg, #6f42c1, #5a2d9c); }
body.motociclista-dashboard .btn-action.regresando { background: linear-gradient(135deg, #00b894, #00a085); }
body.motociclista-dashboard .btn-action.finalizando { background: linear-gradient(135deg, #0984e3, #0767b3); }
body.motociclista-dashboard .btn-action.cancelar { background: linear-gradient(135deg, #ff6b6b, #ee5a52); }

/* Tabla responsiva para historial */
body.motociclista-dashboard .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 15px 0;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

body.motociclista-dashboard table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

body.motociclista-dashboard th,
body.motociclista-dashboard td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.85rem;
}

body.motociclista-dashboard th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

/* Paginación responsiva */
body.motociclista-dashboard .pagination {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    align-items: center;
}

body.motociclista-dashboard .pagination-info {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 600;
    text-align: center;
}

body.motociclista-dashboard .pagination-links {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}

body.motociclista-dashboard .pagination-link {
    padding: 10px 14px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    text-decoration: none;
    color: #007bff;
    font-size: 0.9rem;
    transition: all 0.3s;
    min-width: 44px;
    text-align: center;
}

body.motociclista-dashboard .pagination-link:hover,
body.motociclista-dashboard .pagination-link:active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

body.motociclista-dashboard .pagination-current {
    padding: 10px 14px;
    background: #007bff;
    color: white;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: bold;
    min-width: 44px;
    text-align: center;
}

body.motociclista-dashboard .pagination-link.disabled {
    background: #f8f9fa;
    color: #6c757d;
    border-color: #dee2e6;
    opacity: 0.6;
    cursor: not-allowed;
}

/* Opciones de paginación */
body.motociclista-dashboard .pagination-options {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

body.motociclista-dashboard .pagination-options select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
}

/* Formularios responsivos */
body.motociclista-dashboard .form-group {
    margin-bottom: 15px;
}

body.motociclista-dashboard .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
}

body.motociclista-dashboard .form-group input,
body.motociclista-dashboard .form-group textarea,
body.motociclista-dashboard .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background: #fafafa;
}

body.motociclista-dashboard .form-group input:focus,
body.motociclista-dashboard .form-group textarea:focus,
body.motociclista-dashboard .form-group select:focus {
    outline: none;
    border-color: #007bff;
    background: white;
}

/* Mapa responsivo */
body.motociclista-dashboard .map-container {
    height: 300px;
    background: #ecf0f1;
    border-radius: 10px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

/* Mensajes informativos */
body.motociclista-dashboard .info-box {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    border-left: 4px solid #2196f3;
}

body.motociclista-dashboard .warning-box {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
}

/* Estadísticas */
body.motociclista-dashboard .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin: 15px 0;
}

body.motociclista-dashboard .stat-card {
    background: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-top: 4px solid #007bff;
}

body.motociclista-dashboard .stat-card h4 {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 5px;
}

body.motociclista-dashboard .stat-card p {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
}

/* Formulario de búsqueda */
body.motociclista-dashboard .form-busqueda {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

body.motociclista-dashboard .form-busqueda .form-group input,
body.motociclista-dashboard .form-busqueda .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
}

body.motociclista-dashboard .form-busqueda .form-group input:focus,
body.motociclista-dashboard .form-busqueda .form-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

/* Indicadores de búsqueda activa */
body.motociclista-dashboard .filtros-activos {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    border-left: 4px solid #2196f3;
}

body.motociclista-dashboard .filtro-tag {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    margin: 2px 5px;
}

body.motociclista-dashboard .btn-limpiar-filtro {
    background: #6c757d;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    cursor: pointer;
    margin-left: 5px;
}

/* Estilo para hora de referencia */
body.motociclista-dashboard .hora-referencia {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    padding: 8px 12px;
    border-radius: 10px;
    border-left: 4px solid #2196f3;
    font-weight: 600;
    color: #1976d2;
    display: inline-block;
    margin: 5px 0;
    box-shadow: 0 2px 4px rgba(33, 150, 243, 0.2);
}

/* Notificaciones flotantes */
body.motociclista-dashboard .notificacion-flotante {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #27ae60, #219a52);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10000;
    animation: slideInRight 0.3s ease;
    max-width: 300px;
    word-wrap: break-word;
}

@keyframes slideInRight {
    from { 
        transform: translateX(100%); 
        opacity: 0; 
    }
    to { 
        transform: translateX(0); 
        opacity: 1; 
    }
}

/* Estados de carga */
body.motociclista-dashboard .loading {
    position: relative;
    pointer-events: none;
}

body.motociclista-dashboard .loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    z-index: 100;
}

body.motociclista-dashboard .loading::before {
    content: '🔄 Actualizando...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #007bff;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    z-index: 101;
    font-weight: bold;
}

/* Clases de utilidad */
body.motociclista-dashboard .hidden {
    display: none !important;
}

body.motociclista-dashboard .text-right {
    text-align: right;
}

body.motociclista-dashboard .mb-3 {
    margin-bottom: 1rem;
}

body.motociclista-dashboard .btn-block {
    width: 100%;
}

body.motociclista-dashboard .btn-small {
    padding: 6px 12px !important;
    font-size: 0.8rem !important;
}

body.motociclista-dashboard .subtle-text {
    font-size: 0.8rem;
    color: #7f8c8d;
}

/* Ruta cancelada */
body.motociclista-dashboard .ruta-cancelada {
    background: #f8f9fa;
    padding: 15px;
    border-left: 4px solid #95a5a6;
    margin: 10px 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Acciones masivas */
body.motociclista-dashboard .acciones-masivas-section {
    margin-bottom: 20px;
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
}

body.motociclista-dashboard .acciones-masivas-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
}

body.motociclista-dashboard .acciones-botones {
    margin-top: 8px;
}

body.motociclista-dashboard .btn-masivo {
    background: linear-gradient(135deg, #00bcd4, #0097a7);
    padding: 10px;
    margin-top: 5px;
    width: 100%;
}

/* Layout grid para formularios */
body.motociclista-dashboard .form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

body.motociclista-dashboard .form-dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

body.motociclista-dashboard .form-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

/* Sidebar para desktop */
body.motociclista-dashboard .sidebar {
    display: none;
}

/* Mejoras para tablets */
@media (min-width: 768px) {
    body.motociclista-dashboard .header h1 {
        font-size: 1.6rem;
    }
    
    body.motociclista-dashboard .header-info {
        font-size: 1rem;
    }
    
    body.motociclista-dashboard .content {
        padding: 20px;
        max-width: 1200px;
        margin: 0 auto;
    }
    
    body.motociclista-dashboard .nav-mobile {
        padding: 15px 20px;
        gap: 15px;
    }
    
    body.motociclista-dashboard .nav-item {
        padding: 14px 20px;
        font-size: 1rem;
    }
    
    body.motociclista-dashboard .section {
        padding: 25px;
        margin-bottom: 20px;
    }
    
    body.motociclista-dashboard .acciones-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 12px;
    }
    
    body.motociclista-dashboard .btn-action {
        padding: 18px 15px;
        font-size: 1rem;
    }
    
    body.motociclista-dashboard .pagination {
        flex-direction: row;
        justify-content: space-between;
    }
    
    body.motociclista-dashboard .map-container {
        height: 400px;
    }

    body.motociclista-dashboard .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    body.motociclista-dashboard .form-grid {
        grid-template-columns: 1fr;
    }
    
    body.motociclista-dashboard .acciones-masivas-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

/* Mejoras para desktop */
@media (min-width: 1024px) {
    body.motociclista-dashboard .main-container {
        display: grid;
        grid-template-columns: 250px 1fr;
        min-height: 100vh;
    }
    
    body.motociclista-dashboard .nav-mobile {
        display: none;
    }
    
    body.motociclista-dashboard .sidebar {
        display: block;
        background: #2c3e50;
        color: white;
        padding: 20px 0;
    }
    
    body.motociclista-dashboard .menu-item {
        padding: 15px 20px;
        cursor: pointer;
        transition: background 0.3s;
        border-left: 4px solid transparent;
        color: white;
        text-decoration: none;
        display: block;
    }
    
    body.motociclista-dashboard .menu-item:hover,
    body.motociclista-dashboard .menu-item.active {
        background: #34495e;
        border-left-color: #3498db;
    }
    
    body.motociclista-dashboard .content {
        padding: 25px;
    }
    
    body.motociclista-dashboard .form-grid {
        grid-template-columns: 1fr;
    }
}

/* Alto contraste para mejor accesibilidad */
@media (prefers-contrast: high) {
    body.motociclista-dashboard .progreso-fill {
        background: #000;
    }
    body.motociclista-dashboard .estado-badge {
        border: 2px solid;
    }
    body.motociclista-dashboard .section {
        border: 2px solid #007bff;
    }
}
.mensaje-flash {
    padding: 15px 20px;
    margin: 20px;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    animation: slideDown 0.3s ease;
    position: relative;
    z-index: 1000;
}

.mensaje-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.mensaje-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.mensaje-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Auto-hide después de 5 segundos (opcional) */
.mensaje-flash {
    cursor: pointer;
    transition: opacity 0.3s;
}

.mensaje-flash:hover {
    opacity: 0.9;
}
