/* Variables CSS para la paleta de colores - GRÚAS CRANES S.A.S - INDUSTRIAL */
:root {
    --primary-color: #27AE60;      /* Verde esmeralda - color principal */
    --primary-light: #2ECC71;      /* Verde esmeralda claro */
    --primary-dark: #229954;       /* Verde esmeralda oscuro */
    --secondary-color: #F1C40F;    /* Amarillo maquinaria - construcción pesada */
    --secondary-light: #F4D03F;    /* Amarillo maquinaria claro */
    --secondary-dark: #D4AC0D;     /* Amarillo maquinaria oscuro */
    --accent-color: #7F8C8D;       /* Gris acero - metálico */
    --accent-light: #95A5A6;       /* Gris acero claro */
    --accent-dark: #6C7B7D;        /* Gris acero oscuro */
    --warning-color: #F1C40F;      /* Amarillo maquinaria para advertencias */
    --danger-color: #E74C3C;       /* Rojo para errores */
    --dark-color: #111111;         /* Negro profundo */
    --light-color: #FFFFFF;        /* Blanco puro */
    --text-color: #111111;         /* Negro para texto principal */
    --text-light: #7F8C8D;         /* Gris acero para texto secundario */
    --border-color: #BDC3C7;       /* Gris claro para bordes */
    --bg-color: #F8F9FA;           /* Fondo gris muy claro */
    
    /* Sombras industriales */
    --shadow-sm: 0 1px 2px 0 rgba(17, 17, 17, 0.05);
    --shadow: 0 1px 3px 0 rgba(17, 17, 17, 0.1), 0 1px 2px 0 rgba(17, 17, 17, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(17, 17, 17, 0.1), 0 2px 4px -1px rgba(17, 17, 17, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(17, 17, 17, 0.1), 0 4px 6px -2px rgba(17, 17, 17, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(17, 17, 17, 0.1), 0 10px 10px -5px rgba(17, 17, 17, 0.04);
    --shadow-industrial: 0 8px 25px rgba(39, 174, 96, 0.15);
    
    /* Gradientes industriales */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    --gradient-hero: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    --gradient-card: linear-gradient(135deg, var(--light-color) 0%, #F8F9FA 100%);
    --gradient-bg: linear-gradient(135deg, var(--bg-color) 0%, #F1F2F6 100%);
    --gradient-industrial: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gradient-bg);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navbar limpia y profesional */
.navbar {
    padding-left: 0;
    padding-right: 0;
}

.navbar .container-fluid {
    max-width: 100%;
    padding-left: 2rem;
    padding-right: 2rem;
}

.navbar-nav {
    gap: 0.25rem;
}

.navbar-nav .nav-item {
    margin: 0;
}

.navbar-brand img {
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-industrial);
}

.navbar-brand .fw-bold {
    font-size: 1.25rem;
    letter-spacing: 0.025em;
    font-weight: 700;
    color: var(--primary-color);
}

.navbar-brand .text-light {
    color: var(--primary-color) !important;
    font-weight: 500;
    font-size: 0.875rem;
    opacity: 0.9;
}

.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background: white !important;
    border-bottom: 3px solid var(--primary-color);
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    width: 100%;
}

.navbar .nav-link {
    color: var(--primary-color) !important;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.6rem 1rem !important;
    margin: 0 0.15rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.navbar .nav-link:hover {
    color: var(--secondary-color) !important;
    background-color: rgba(46, 125, 50, 0.1);
    transform: translateY(-1px);
}

.navbar .nav-link.active {
    background-color: rgba(46, 125, 50, 0.15);
    color: var(--secondary-color) !important;
}

/* Dropdown styles */
.navbar .dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    background: var(--light-color);
    min-width: 160px;
}

.navbar .dropdown-item {
    padding: 0.6rem 1.25rem;
    color: var(--text-color);
    transition: all 0.3s ease;
    border-radius: 4px;
    margin: 0.125rem 0.5rem;
    font-size: 0.85rem;
}

.navbar .dropdown-item:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateX(3px);
}

/* Contenido principal */
.main-content {
    margin-top: 50px; /* Altura del navbar fijo + padding adicional */
    min-height: calc(100vh - 50px);
    position: relative;
    z-index: 1;
}

/* ===== LOGIN LIMPIO Y ELEGANTE ===== */
.login-container {
    min-height: calc(100vh - 50px);
    display: flex;
    align-items: center;
    background: var(--gradient-bg);
    position: relative;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.login-card {
    background: var(--light-color);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    position: relative;
    transition: all 0.3s ease;
}

.login-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    height: 80px;
    width: auto;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    background-color: white;
    padding: 10px;
}

.login-logo:hover {
    transform: scale(1.05);

}

/* Logo en la barra de navegación */
.navbar-brand img {
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.login-title {
    color: var(--text-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.875rem;
    letter-spacing: -0.025em;
}

.login-subtitle {
    color: var(--text-light);
    margin-bottom: 0;
    font-size: 1rem;
}

.login-form .form-label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.login-form .form-control {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: var(--light-color);
}

.login-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
    outline: none;
}

.password-input-group {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: var(--text-color);
    z-index: 10;
}

.login-btn {
    background: var(--gradient-primary);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    color: var(--light-color);
    box-shadow: var(--shadow-sm);
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-industrial);
    background: var(--primary-dark);
}

.welcome-badge {
    display: inline-block;
    background: var(--gradient-industrial);
    color: var(--dark-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-top: 1rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--secondary-color);
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* ===== DASHBOARD STYLES ===== */

/* Tarjetas compactas de empleados */
.empleado-card-compact {
    background: var(--light-color);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: 100%;
}

.empleado-card-compact:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.empleado-card-compact.empleado-trabajando {
    border-left: 4px solid var(--warning-color);
}

.empleado-card-compact.empleado-libre {
    border-left: 4px solid var(--success-color);
}

.empleado-header-compact {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.empleado-avatar {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    color: var(--light-color);
    font-size: 1.2rem;
}

.empleado-info-compact {
    flex: 1;
}

.empleado-nombre-compact {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.2;
}

.empleado-status-compact {
    margin-top: 0.25rem;
}

.empleado-actions {
    text-align: center;
}

/* Modales de empleados */
.empleado-avatar-large {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: var(--light-color);
}

.empleado-details-modal {
    padding: 0.5rem 0;
}

.detail-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.detail-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.detail-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.detail-item {
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-size: 0.9rem;
}

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

/* ===== TARJETAS COMPACTAS DE EQUIPOS ===== */
.equipo-card-compact {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.equipo-card-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.equipo-card-compact.equipo-trabajando {
    border-left: 4px solid #ffc107;
    background: linear-gradient(135deg, #fff8e1, #ffffff);
}

.equipo-card-compact.equipo-quieto {
    border-left: 4px solid #28a745;
    background: linear-gradient(135deg, #e8f5e8, #ffffff);
}

.equipo-header-compact {
    display: flex;
    /*align-items: flex-start;*/
    margin-bottom: 1rem;
}

.equipo-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), #2e7d32);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.equipo-avatar i,
.equipo-avatar .material-symbols-outlined {
    color: white;
    font-size: 1.2rem;
}

.equipo-avatar .material-symbols-outlined {
    font-variation-settings:
        'FILL' 1,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24;
}

.equipo-info-compact {
    flex: 1;
    min-width: 0;
}

.equipo-placa-compact {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.2;
}

.equipo-tipo-compact {
    margin: 0 0 0.5rem 0;
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.3;
}

.equipo-status-compact {
    margin-bottom: 0.5rem;
}

.equipo-actions {
    margin-top: auto;
    padding-top: 0.5rem;
}

.equipo-actions .btn {
    width: 100%;
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.equipo-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ===== REGISTROS UNIFICADOS ===== */
.registros-unificados-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* Scroll personalizado para registros */
.registros-unificados-list::-webkit-scrollbar {
    width: 6px;
}

.registros-unificados-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.registros-unificados-list::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.registros-unificados-list::-webkit-scrollbar-thumb:hover {
    background: #2e7d32;
}

.registro-unificado-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.registro-unificado-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.registro-unificado-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
}

.registro-empleado-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.registro-avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), #2e7d32);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.registro-avatar i {
    color: white;
    font-size: 1.1rem;
}

.registro-info-principal {
    flex: 1;
    min-width: 0;
}

.registro-empleado-nombre {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.2;
}

.registro-equipo {
    margin: 0;
    font-size: 0.9rem;
    color: #6c757d;
    display: flex;
    align-items: center;
}

.registro-equipo .material-symbols-outlined {
    font-size: 1rem;
    font-variation-settings:
        'FILL' 1,
        'wght' 400,
        'GRAD' 0,
        'opsz' 20;
}

.registro-fecha-hora {
    text-align: right;
    flex-shrink: 0;
}

.registro-fecha {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.registro-hora {
    display: block;
    font-size: 0.85rem;
    color: #6c757d;
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.registro-unificado-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.registro-tipo-badge {
    flex-shrink: 0;
}

.registro-details-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.registro-detail-item {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: #495057;
    padding: 0.25rem 0;
}

.registro-detail-item i {
    color: var(--primary-color);
    width: 16px;
    text-align: center;
}

.registro-detail-item.observacion {
    grid-column: 1 / -1;
    font-style: italic;
    background: #f8f9fa;
    padding: 0.5rem;
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
}

/* Responsive para registros unificados */
@media (max-width: 768px) {
    .registros-unificados-list {
        max-height: 400px;
    }
    
    .registro-unificado-header {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .registro-fecha-hora {
        text-align: left;
        align-self: flex-start;
    }
    
    .registro-unificado-content {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .registro-details-grid {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
    
    .registro-detail-item {
        font-size: 0.8rem;
    }
}

/* ===== MODAL PERSONALIZADO (SIN BOOTSTRAP) ===== */
.custom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1060;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-modal.show {
    opacity: 1;
}

.custom-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    cursor: pointer;
    z-index: 1061;
}

.custom-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    width: 95%;
    max-height: 85vh;
    overflow: hidden;
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1062;
    margin-top: 20px;
}

.custom-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, var(--primary-color), #2e7d32);
    color: white;
}

.custom-modal-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.custom-modal-title .material-symbols-outlined {
    font-size: 1.5rem;
    font-variation-settings:
        'FILL' 1,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24;
}

.custom-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.custom-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.custom-modal-body {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-empleado-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2.5rem;
    align-items: start;
}

.modal-empleado-avatar {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    border: 2px solid var(--border-color);
}

.modal-empleado-avatar h4 {
    margin: 1rem 0 0.5rem 0;
    color: var(--primary-color);
    font-weight: 600;
}

.modal-empleado-avatar p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.modal-empleado-details {
    flex: 1;
}

/* Estilos para modal de equipos */
.modal-equipo-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2.5rem;
    align-items: start;
}

.modal-equipo-avatar {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    border: 2px solid var(--border-color);
}

.modal-equipo-avatar h4 {
    margin: 1rem 0 0.5rem 0;
    color: var(--primary-color);
    font-weight: 600;
}

.modal-equipo-avatar p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.modal-equipo-details {
    flex: 1;
}

.equipo-avatar-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #2e7d32);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.equipo-avatar-large i,
.equipo-avatar-large .material-symbols-outlined {
    color: white;
}

.equipo-avatar-large .material-symbols-outlined {
    font-size: 3rem;
    font-variation-settings:
        'FILL' 1,
        'wght' 400,
        'GRAD' 0,
        'opsz' 48;
}

.custom-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    background: #f8f9fa;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .custom-modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-empleado-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .modal-empleado-avatar {
        padding: 1rem;
    }
    
    .modal-equipo-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .modal-equipo-avatar {
        padding: 1rem;
    }
    
    .custom-modal-header,
    .custom-modal-body,
    .custom-modal-footer {
        padding: 1rem;
    }
    
    .custom-modal-title {
        font-size: 1.25rem;
    }
    
    /* Navbar para móviles - Solo logo y hamburguesa */
    .navbar .container-fluid {
        padding: 0.5rem 1rem;
    }
    
    .navbar-brand {
        display: flex !important;
        align-items: center;
        margin: 0;
    }
    
    .navbar-brand img {
        height: 50px;
        margin-right: 0.75rem;
    }
    
    /* Ocultar texto del navbar-brand en móviles */
    .navbar-brand .d-flex {
        display: none !important;
    }
    
    .navbar-toggler {
        margin-left: auto;
        border: 1px solid var(--primary-color);
        color: var(--primary-color);
        padding: 0.4rem 0.8rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.25);
    }
    
    .navbar-collapse {
        margin-top: 0.5rem;
    }
    
    .navbar-collapse .navbar-nav {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }
    
    .navbar-collapse .nav-link {
        width: 100%;
        margin: 0.2rem 0;
        padding: 0.6rem 1rem !important;
        border-radius: 8px;
        background: rgba(46, 125, 50, 0.1);
    }
    
    .navbar-collapse .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin-top: 0.5rem;
        background: white;
        border: 1px solid var(--border-color);
        box-shadow: none;
    }
    
    /* Tarjetas de equipos en móviles */
    .equipo-card-compact {
        padding: 0.75rem;
    }
    
    .equipo-header-compact {
        margin-bottom: 0.75rem;
    }
    
    .equipo-avatar {
        width: 40px;
        height: 40px;
        margin-right: 0.75rem;
    }
    
    .equipo-avatar i,
    .equipo-avatar .material-symbols-outlined {
        font-size: 1rem;
    }
    
    .equipo-avatar .material-symbols-outlined {
        font-variation-settings:
            'FILL' 1,
            'wght' 400,
            'GRAD' 0,
            'opsz' 20;
    }
    
    .equipo-placa-compact {
        font-size: 1rem;
    }
    
    .equipo-tipo-compact {
        font-size: 0.8rem;
    }
    
    .equipo-actions .btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
}

/* Para móviles muy pequeños */
@media (max-width: 480px) {
    .navbar .container-fluid {
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-brand img {
        height: 45px;
        margin-right: 0.5rem;
    }
    
    .navbar-toggler {
        font-size: 0.9rem;
        padding: 0.3rem 0.6rem;
    }
    
    .navbar-collapse .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 0.8rem !important;
    }
    
    /* Tarjetas de equipos en móviles muy pequeños */
    .equipo-card-compact {
        padding: 0.5rem;
    }
    
    .equipo-avatar {
        width: 35px;
        height: 35px;
        margin-right: 0.5rem;
    }
    
    .equipo-avatar i,
    .equipo-avatar .material-symbols-outlined {
        font-size: 0.9rem;
    }
    
    .equipo-avatar .material-symbols-outlined {
        font-variation-settings:
            'FILL' 1,
            'wght' 400,
            'GRAD' 0,
            'opsz' 18;
    }
    
    .equipo-placa-compact {
        font-size: 0.9rem;
    }
    
    .equipo-tipo-compact {
        font-size: 0.75rem;
    }
    
    .equipo-actions .btn {
        font-size: 0.75rem;
        padding: 0.3rem 0.5rem;
    }
    
    /* Mejoras adicionales para dashboard en móviles muy pequeños */
    .main-content {
        padding: 0.75rem 0.5rem;
        margin-top: 60px;
    }
    
    /* Espaciado específico para dashboard en móviles muy pequeños */
    .dashboard-container .main-content {
        margin-top: 55px;
        padding-top: 0.25rem;
    }
    
    .dashboard-container .page-title {
        font-size: 1.6rem;
        margin-bottom: 0.5rem;
        margin-top: 0;
    }
    
    .stat-card {
        min-height: 120px;
        padding: 1rem 0.75rem;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    /* Mejorar las tarjetas de empleados y equipos */
    .empleado-card-compact,
    .equipo-card-compact {
        padding: 0.75rem;
    }
    
    .empleado-avatar,
    .equipo-avatar {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .empleado-nombre-compact,
    .equipo-placa-compact {
        font-size: 0.95rem;
    }
    
    .empleado-actions .btn,
    .equipo-actions .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
        min-height: 48px;
    }
    
    /* Mejorar los registros */
    .registro-unificado-item {
        padding: 0.75rem;
    }
    
    .registro-detail-item {
        font-size: 0.85rem;
    }
    
    /* Mejorar los modales */
    .custom-modal-content {
        width: 98%;
        margin: 0.5rem;
        max-height: 95vh;
    }
    
    /* Mejorar los botones */
    .btn {
        min-height: 48px;
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .btn-sm {
        min-height: 44px;
        padding: 0.4rem 0.8rem;
    }
    
    /* Mejorar las tarjetas */
    .card {
        margin-bottom: 1rem;
    }
    
    .card-header,
    .card-body {
        padding: 0.75rem;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    /* Mejoras adicionales para los botones del dashboard en pantallas muy pequeñas - FORZAR MISMO TAMAÑO */
    .stat-card,
    .stat-card-operando,
    .stat-card-disponible {
        min-height: 100px !important;
        height: 100px !important;
        width: 100% !important;
        padding: 0.75rem 0.5rem !important;
        margin-bottom: 0.75rem !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }
    
    /* Resetear estilos específicos para pantallas pequeñas */
    .stat-card-operando {
        background: linear-gradient(135deg, #E8F5E8 0%, #F0F8F0 100%) !important;
        border: 2px solid var(--primary-color) !important;
    }
    
    .stat-card-disponible {
        background: linear-gradient(135deg, #F8F9FA 0%, #E9ECEF 100%) !important;
        border: 2px solid var(--accent-color) !important;
    }
    
    .stat-card:not(.stat-card-operando):not(.stat-card-disponible) {
        background: var(--light-color) !important;
        border: 2px solid var(--border-color) !important;
    }
    
    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }
    
    .stat-number {
        font-size: 1.6rem;
        margin-bottom: 0.2rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
        letter-spacing: 0.3px;
    }
    
    /* Organizar en una sola columna en pantallas muy pequeñas */
    .dashboard-container .col-sm-6 {
        flex: 0 0 100%;
        max-width: 100%;
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
    
    /* Mejorar el espaciado general */
    .dashboard-container .row {
        margin-left: -0.25rem;
        margin-right: -0.25rem;
    }
    
    .dashboard-container .row.mb-4 {
        margin-bottom: 1rem !important;
    }
}

/* ===== DASHBOARD STYLES ===== */
.dashboard-container {
    min-height: calc(100vh - 50px);
}

.main-content {
    padding: 2rem 4rem;
    background: var(--light-color);
    min-height: calc(100vh - 50px);
}

.content-header {
    margin-bottom: 2rem;
}

.page-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 0;
}

/* Stat Cards */
.stat-card {
    background: var(--light-color);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    min-height: 140px;
    height: 100%;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-industrial);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-industrial);
    border-color: var(--primary-color);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--light-color);
    margin-right: 1.5rem;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-industrial);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.stat-icon .material-symbols-outlined {
    font-size: 2.5rem;
    color: var(--light-color);
    font-variation-settings:
        'FILL' 1,
        'wght' 400,
        'GRAD' 0,
        'opsz' 48;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
    box-shadow: var(--shadow-industrial);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    line-height: 1;
}

.stat-label {
    color: var(--text-light);
    margin-bottom: 0;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Estilos para tarjetas de estado de equipos */
.stat-card-operando {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #E8F5E8 0%, #F0F8F0 100%);
    min-height: 140px;
    height: 100%;
}

.stat-card-operando .stat-icon {
    background: var(--gradient-primary);
    color: var(--light-color);
}

.stat-card-operando .stat-number {
    color: var(--primary-color);
}

.stat-card-disponible {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, #F8F9FA 0%, #E9ECEF 100%);
    min-height: 140px;
    height: 100%;
}

.stat-card-disponible .stat-icon {
    background: var(--accent-color);
    color: var(--light-color);
}

.stat-card-disponible .stat-number {
    color: var(--accent-color);
}

/* Estilos para operadores múltiples */
.operador-item {
    border-left: 3px solid var(--primary-color);
    padding-left: 10px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 5px;
    padding: 15px;
    transition: all 0.3s ease;
}

.operador-item:hover {
    background: #e9ecef;
    transform: translateX(2px);
}

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

.operador-item .badge {
    font-size: 0.75rem;
    padding: 0.4em 0.8em;
    border-radius: 12px;
}

.operador-item .badge i {
    font-size: 0.7rem;
}

/* Estilos para tarjetas clickeables */
.stat-card-clickable {
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.stat-card-clickable:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2) !important;
}

.stat-card-clickable:active {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
}

.stat-card-clickable::after {
    content: '👆';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card-clickable:hover::after {
    opacity: 1;
}

/* Tarjetas de equipos operando */
.equipo-operando-card {
    background: var(--light-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
    height: 100%;
}

.equipo-operando-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-dark);
}

.equipo-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.equipo-info h6 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.equipo-tipo {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.equipo-status .badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
}

.equipo-details {
    font-size: 0.9rem;
}

.operador-info,
.entrada-info {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.operador-info i,
.entrada-info i {
    color: var(--primary-color);
    width: 16px;
    text-align: center;
}

.equipo-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.equipo-actions .btn {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.equipo-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Cards */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.card-header {
    background: var(--gradient-primary);
    color: var(--light-color);
    border-radius: 16px 16px 0 0 !important;
    border: none;
    padding: 1.25rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-industrial);
    opacity: 0.1;
    pointer-events: none;
}

.card-title {
    margin-bottom: 0;
    font-weight: 700;
    font-size: 1.2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.action-btn {
    border-radius: 16px;
    padding: 1rem 1.5rem;
    font-weight: 700;
    transition: all 0.4s ease;
    border-width: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(191, 197, 201, 0.2), transparent);
    transition: left 0.5s ease;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-industrial);
}

/* Activity List */
.activity-list {
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    font-size: 1.25rem;
    margin-right: 1rem;
    width: 24px;
    text-align: center;
}

.activity-text {
    margin-bottom: 0.25rem;
    font-weight: 500;
    color: var(--text-color);
}

.activity-time {
    color: var(--text-color);
    opacity: 0.6;
    font-size: 0.875rem;
}

/* Asegurar que las tarjetas tengan la misma altura */


/* Responsive Design */
@media (max-width: 768px) {
    .login-card {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .main-content {
        padding: 1rem 1rem;
        margin-top: 70px; /* Ajuste reducido para móviles */
    }
    
    /* Reducir espacio específicamente en el dashboard */
    .dashboard-container .main-content {
        margin-top: 60px;
        padding-top: 0.5rem;
    }
    
    /* Reducir margen inferior del título en dashboard móvil */
    .dashboard-container .page-title {
        margin-bottom: 0.75rem;
    }
    
    /* Mejoras específicas para dashboard en móvil */
    .dashboard-container .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }
    
    .dashboard-container .col-sm-6,
    .dashboard-container .col-lg-3 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .stat-card,
    .stat-card-operando,
    .stat-card-disponible {
        flex-direction: column !important;
        text-align: center !important;
        min-height: 140px !important;
        height: 140px !important;
        width: 100% !important;
        padding: 1.5rem 1rem !important;
        margin-bottom: 0 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        box-sizing: border-box !important;
        /* Mejorar la experiencia táctil */
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Resetear estilos específicos para móvil */
    .stat-card-operando {
        background: linear-gradient(135deg, #E8F5E8 0%, #F0F8F0 100%) !important;
        border: 2px solid var(--primary-color) !important;
    }
    
    .stat-card-disponible {
        background: linear-gradient(135deg, #F8F9FA 0%, #E9ECEF 100%) !important;
        border: 2px solid var(--accent-color) !important;
    }
    
    .stat-card:not(.stat-card-operando):not(.stat-card-disponible) {
        background: var(--light-color) !important;
        border: 2px solid var(--border-color) !important;
    }
    
    .stat-icon {
        margin-right: 0;
        margin-bottom: 1rem;
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
        /* Hacer el icono más grande y fácil de ver */
    }
    
    .stat-number {
        font-size: 2.2rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
        /* Números más grandes y legibles */
    }
    
    .stat-label {
        font-size: 0.9rem;
        font-weight: 600;
        margin-bottom: 0;
        /* Texto más legible */
    }
    
    /* Mejorar las tarjetas de empleados y equipos en móvil */
    .empleado-card-compact,
    .equipo-card-compact {
        margin-bottom: 1rem;
        padding: 1rem;
        /* Más espacio para tocar */
    }
    
    .empleado-header-compact,
    .equipo-header-compact {
        flex-direction: column;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .empleado-avatar,
    .equipo-avatar {
        width: 50px;
        height: 50px;
        margin: 0 auto 0.5rem auto;
        font-size: 1.5rem;
    }
    
    .empleado-nombre-compact,
    .equipo-placa-compact {
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 0.25rem;
    }
    
    .empleado-status-compact,
    .equipo-status-compact {
        margin-bottom: 1rem;
    }
    
    .empleado-actions,
    .equipo-actions {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .empleado-actions .btn,
    .equipo-actions .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        min-height: 44px; /* Altura mínima recomendada para tocar */
    }
    
    /* Mejorar las tarjetas de registros en móvil */
    .registro-unificado-item {
        margin-bottom: 1rem;
        padding: 1rem;
        border-radius: 12px;
    }
    
    .registro-unificado-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 1rem;
    }
    
    .registro-empleado-info {
        margin-bottom: 0.5rem;
    }
    
    .registro-fecha-hora {
        align-self: flex-end;
        text-align: right;
    }
    
    .registro-details-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .registro-detail-item {
        font-size: 0.9rem;
        padding: 0.25rem 0;
    }
    
    /* Mejorar los modales en móvil */
    .custom-modal-content {
        width: 95%;
        margin: 1rem;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-empleado-grid,
    .modal-equipo-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .modal-empleado-avatar,
    .modal-equipo-avatar {
        text-align: center;
        padding-bottom: 1rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    /* Ajustes para navbar en móviles */
    .navbar .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .navbar-nav {
        gap: 0.15rem;
    }
    
    .navbar-nav .nav-item {
        margin: 0.15rem 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.6rem 0.8rem !important;
        text-align: center;
        margin: 0.1rem;
        font-size: 0.85rem;
        min-height: 44px; /* Altura mínima para tocar */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Mejorar el título del dashboard en móvil */
    .page-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    /* Mejorar las tarjetas de contenido en móvil */
    .card {
        margin-bottom: 1.5rem;
        border-radius: 12px;
    }
    
    .card-header {
        padding: 1rem;
        border-radius: 12px 12px 0 0;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    /* Mejorar los botones en móvil */
    .btn {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        border-radius: 8px;
    }
    
    .btn-sm {
        min-height: 40px;
        padding: 0.5rem 1rem;
    }
    
    /* Mejorar los badges en móvil */
    .badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        border-radius: 6px;
    }
    
    /* Mejorar el scroll en móvil */
    .dashboard-container {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Ocultar el emoji de click en móvil */
    .stat-card-clickable::after {
        display: none;
    }
    
    /* Mejoras específicas para los botones del dashboard en móvil */
    .dashboard-container .row.mb-4 {
        margin-bottom: 1.5rem !important;
    }
    
    /* Organizar los botones en una cuadrícula más compacta */
    .dashboard-container .col-sm-6 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        margin-bottom: 1rem;
    }
    
    /* Hacer los botones más compactos pero legibles - FORZAR MISMO TAMAÑO */
    .stat-card,
    .stat-card-operando,
    .stat-card-disponible {
        min-height: 120px !important;
        height: 120px !important;
        width: 100% !important;
        padding: 1rem 0.75rem !important;
        border-radius: 12px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
        transition: all 0.2s ease !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    
    /* Resetear cualquier estilo que pueda interferir */
    .stat-card-operando {
        background: linear-gradient(135deg, #E8F5E8 0%, #F0F8F0 100%) !important;
        border: 2px solid var(--primary-color) !important;
    }
    
    .stat-card-disponible {
        background: linear-gradient(135deg, #F8F9FA 0%, #E9ECEF 100%) !important;
        border: 2px solid var(--accent-color) !important;
    }
    
    .stat-card:not(.stat-card-operando):not(.stat-card-disponible) {
        background: var(--light-color) !important;
        border: 2px solid var(--border-color) !important;
    }
    
    .stat-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
        margin-bottom: 0.75rem;
        border-radius: 8px;
    }
    
    .stat-number {
        font-size: 1.8rem;
        font-weight: 700;
        margin-bottom: 0.25rem;
        line-height: 1.1;
    }
    
    .stat-label {
        font-size: 0.8rem;
        font-weight: 600;
        margin-bottom: 0;
        line-height: 1.2;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    /* Mejorar el espaciado entre filas */
    .dashboard-container .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }
    
    /* Ajustar el título del dashboard */
    .dashboard-container .page-title {
        font-size: 1.8rem;
        margin-bottom: 0.75rem;
        text-align: center;
        margin-top: 0;
    }
}

/* Animaciones suaves y elegantes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.login-card {
    animation: fadeInUp 0.6s ease-out;
}

.stat-card {
    animation: fadeInUp 0.4s ease-out;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

.card {
    animation: slideInLeft 0.4s ease-out;
}


/* Scrollbar personalizado */
::-webkit-scrollbar {
    width: 8px;
}

/* ===== SOBRESCRITURA FORZADA PARA TARJETAS MÓVILES ===== */
/* Reglas específicas para forzar el mismo tamaño en móvil */
@media (max-width: 768px) {
    .dashboard-container .row .col-sm-6 .stat-card,
    .dashboard-container .row .col-sm-6 .stat-card-operando,
    .dashboard-container .row .col-sm-6 .stat-card-disponible {
        height: 140px !important;
        min-height: 140px !important;
        max-height: 140px !important;
        width: 100% !important;
        padding: 1rem !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        box-sizing: border-box !important;
        border-radius: 12px !important;
    }
    
    .dashboard-container .row .col-sm-6 {
        display: flex !important;
        flex-direction: column !important;
        padding: 0.25rem !important;
    }
    
    .dashboard-container .row .col-sm-6 .stat-card .stat-icon,
    .dashboard-container .row .col-sm-6 .stat-card-operando .stat-icon,
    .dashboard-container .row .col-sm-6 .stat-card-disponible .stat-icon {
        width: 50px !important;
        height: 50px !important;
        margin: 0 0 0.5rem 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .dashboard-container .row .col-sm-6 .stat-card .stat-content,
    .dashboard-container .row .col-sm-6 .stat-card-operando .stat-content,
    .dashboard-container .row .col-sm-6 .stat-card-disponible .stat-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        width: 100% !important;
    }
    
    .dashboard-container .row .col-sm-6 .stat-card .stat-number,
    .dashboard-container .row .col-sm-6 .stat-card-operando .stat-number,
    .dashboard-container .row .col-sm-6 .stat-card-disponible .stat-number {
        font-size: 1.8rem !important;
        font-weight: 700 !important;
        margin: 0 0 0.25rem 0 !important;
        line-height: 1 !important;
    }
    
    .dashboard-container .row .col-sm-6 .stat-card .stat-label,
    .dashboard-container .row .col-sm-6 .stat-card-operando .stat-label,
    .dashboard-container .row .col-sm-6 .stat-card-disponible .stat-label {
        font-size: 0.8rem !important;
        font-weight: 600 !important;
        margin: 0 !important;
        line-height: 1.2 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
    }
}

@media (max-width: 480px) {
    .dashboard-container .row .col-sm-6 .stat-card,
    .dashboard-container .row .col-sm-6 .stat-card-operando,
    .dashboard-container .row .col-sm-6 .stat-card-disponible {
        height: 100px !important;
        min-height: 100px !important;
        max-height: 100px !important;
        padding: 0.75rem !important;
    }
    
    .dashboard-container .row .col-sm-6 .stat-card .stat-icon,
    .dashboard-container .row .col-sm-6 .stat-card-operando .stat-icon,
    .dashboard-container .row .col-sm-6 .stat-card-disponible .stat-icon {
        width: 45px !important;
        height: 45px !important;
        margin: 0 0 0.25rem 0 !important;
    }
    
    .dashboard-container .row .col-sm-6 .stat-card .stat-number,
    .dashboard-container .row .col-sm-6 .stat-card-operando .stat-number,
    .dashboard-container .row .col-sm-6 .stat-card-disponible .stat-number {
        font-size: 1.6rem !important;
    }
    
    .dashboard-container .row .col-sm-6 .stat-card .stat-label,
    .dashboard-container .row .col-sm-6 .stat-card-operando .stat-label,
    .dashboard-container .row .col-sm-6 .stat-card-disponible .stat-label {
        font-size: 0.75rem !important;
    }
}

/* ===== DISEÑO COMPLETAMENTE NUEVO PARA ESTADO DE EQUIPOS EN MÓVIL Y TABLET ===== */

/* Reglas base para tablets (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    /* Ajuste de espaciado para dashboard en tablets */
    .dashboard-container .main-content {
        margin-top: 65px;
        padding-top: 0.75rem;
    }
    
    .dashboard-container .page-title {
        margin-bottom: 1rem;
        margin-top: 0;
    }
    
    .equipo-card-compact {
        padding: 1.25rem !important;
        margin-bottom: 1.5rem !important;
        border-radius: 16px !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
        transition: all 0.3s ease !important;
    }
    
    .equipo-card-compact:hover {
        transform: translateY(-3px) !important;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
    }
    
    .equipo-header-compact {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        margin-bottom: 1rem !important;
    }
    
    .equipo-info {
        flex: 1 !important;
    }
    
    .equipo-placa {
        font-size: 1.1rem !important;
        font-weight: 700 !important;
        color: var(--primary-color) !important;
        margin-bottom: 0.25rem !important;
    }
    
    .equipo-tipo {
        font-size: 0.9rem !important;
        color: #6c757d !important;
        margin-bottom: 0 !important;
    }
    
    .equipo-status {
        margin: 1rem 0 !important;
        text-align: center !important;
    }
    
    .equipo-status .badge {
        font-size: 0.85rem !important;
        padding: 0.6rem 1.2rem !important;
        border-radius: 25px !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
        display: inline-block !important;
    }
    
    .equipo-card-compact .btn {
        width: 100% !important;
        margin-top: 0.5rem !important;
        padding: 0.75rem !important;
        font-size: 0.9rem !important;
    }
}

/* Reglas para móviles grandes (481px - 768px) */
@media (max-width: 768px) {
    .equipo-card-compact {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
        border-radius: 14px !important;
        box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06) !important;
        display: flex !important;
        flex-direction: column !important;
        min-height: 140px !important;
    }
    
    .equipo-header-compact {
        display: flex !important;
        
        /*align-items: flex-start !important;*/     
        justify-content: space-between !important;
        margin-bottom: 0.75rem !important;
    }
    
    .equipo-info {
        flex: 1 !important;
        margin-right: 0.75rem !important;
    }
    
    .equipo-placa {
        font-size: 1rem !important;
        font-weight: 700 !important;
        color: var(--primary-color) !important;
        margin-bottom: 0.25rem !important;
        line-height: 1.2 !important;
    }
    
    .equipo-tipo {
        font-size: 0.85rem !important;
        color: #6c757d !important;
        margin-bottom: 0 !important;
        line-height: 1.3 !important;
    }
    
    .equipo-status {
        margin: 0.75rem 0 !important;
        text-align: center !important;
        flex-shrink: 0 !important;
    }
    
    .equipo-status .badge {
        font-size: 0.8rem !important;
        padding: 0.5rem 1rem !important;
        border-radius: 20px !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
        display: inline-block !important;
        max-width: 100% !important;
        text-overflow: ellipsis !important;
        overflow: hidden !important;
    }
    
    .equipo-card-compact .btn {
        width: 100% !important;
        margin-top: auto !important;
        padding: 0.7rem !important;
        font-size: 0.85rem !important;
        border-radius: 8px !important;
    }
}

/* Reglas para móviles medianos (401px - 600px) */
@media (max-width: 600px) {
    .equipo-card-compact {
        padding: 0.9rem !important;
        margin-bottom: 0.9rem !important;
        min-height: 130px !important;
    }
    
    .equipo-header-compact {
        margin-bottom: 0.6rem !important;
    }
    
    .equipo-placa {
        font-size: 0.95rem !important;
    }
    
    .equipo-tipo {
        font-size: 0.8rem !important;
    }
    
    .equipo-status {
        margin: 0.6rem 0 !important;
    }
    
    .equipo-status .badge {
        font-size: 0.75rem !important;
        padding: 0.45rem 0.9rem !important;
        border-radius: 18px !important;
    }
    
    .equipo-card-compact .btn {
        padding: 0.6rem !important;
        font-size: 0.8rem !important;
    }
}

/* Reglas para móviles pequeños (hasta 480px) */
@media (max-width: 480px) {
    .equipo-card-compact {
        padding: 0.8rem !important;
        margin-bottom: 0.8rem !important;
        min-height: 120px !important;
        border-radius: 12px !important;
    }
    
    .equipo-header-compact {
        margin-bottom: 0.5rem !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    .equipo-info {
        margin-right: 0 !important;
        margin-bottom: 0.5rem !important;
    }
    
    .equipo-placa {
        font-size: 0.9rem !important;
        margin-bottom: 0.2rem !important;
    }
    
    .equipo-tipo {
        font-size: 0.75rem !important;
    }
    
    .equipo-status {
        margin: 0.5rem 0 !important;
    }
    
    .equipo-status .badge {
        font-size: 0.7rem !important;
        padding: 0.4rem 0.8rem !important;
        border-radius: 16px !important;
        white-space: normal !important;
        line-height: 1.3 !important;
        min-height: 2rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .equipo-card-compact .btn {
        padding: 0.55rem !important;
        font-size: 0.75rem !important;
        border-radius: 6px !important;
    }
}

/* Reglas especiales para texto largo en badges */
@media (max-width: 600px) {
    .equipo-status .badge[data-status*="empleados"],
    .equipo-status .badge[data-status*="Trabajando"] {
        font-size: 0.7rem !important;
        padding: 0.4rem 0.7rem !important;
        white-space: normal !important;
        line-height: 1.2 !important;
        min-height: 2.2rem !important;
    }
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Employee Status Cards */
.empleado-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    height: 100%;
}

.empleado-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.empleado-trabajando {
    border-left-color: var(--warning-color);
    background: linear-gradient(135deg, #FFF8E1 0%, #FFFBF0 100%);
}

.empleado-libre {
    border-left-color: var(--success-color);
    background: linear-gradient(135deg, #E8F5E8 0%, #F0F8F0 100%);
}

.empleado-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.empleado-info {
    flex: 1;
}

.empleado-nombre {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.empleado-nombre i {
    color: var(--primary-color);
}

.empleado-documento {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.empleado-status {
    flex-shrink: 0;
}

.empleado-details {
    font-size: 0.9rem;
}

.empleado-details > div {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.empleado-details > div:last-child {
    margin-bottom: 0;
}

.empleado-details i {
    color: var(--primary-color);
    width: 16px;
    text-align: center;
}

.empleado-details strong {
    color: var(--dark-color);
    margin-right: 0.5rem;
}

.equipo-info {
    color: #666;
}

.entrada-info {
    color: #666;
}

.cargo-info {
    color: #666;
}

.libre-info {
    color: var(--success-color);
    font-weight: 500;
    text-align: center;
    padding: 1rem;
    background: rgba(39, 174, 96, 0.1);
    border-radius: 8px;
}

.libre-info i {
    color: var(--success-color);
    font-size: 1.2rem;
}

/* Equipment Status Cards */
.equipo-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    height: 100%;
}

.equipo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.equipo-trabajando {
    border-left-color: var(--warning-color);
    background: linear-gradient(135deg, #FFF8E1 0%, #FFFBF0 100%);
}

.equipo-quieto {
    border-left-color: var(--success-color);
    background: linear-gradient(135deg, #E8F5E8 0%, #F0F8F0 100%);
}

.equipo-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.equipo-info {
    flex: 1;
}

.equipo-placa {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.equipo-placa i {
    color: var(--info-color);
}

.equipo-tipo {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.equipo-status {
    flex-shrink: 0;
}

.equipo-details {
    font-size: 0.9rem;
}

.equipo-details > div {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.equipo-details > div:last-child {
    margin-bottom: 0;
}

.equipo-details i {
    color: var(--primary-color);
    width: 16px;
    text-align: center;
}

.equipo-details strong {
    color: var(--dark-color);
    margin-right: 0.5rem;
}

.operador-info {
    color: #666;
}

.cargo-info {
    color: #666;
}

.entrada-info {
    color: #666;
}

.quieto-info {
    color: var(--success-color);
    font-weight: 500;
    text-align: center;
    padding: 1rem;
    background: rgba(39, 174, 96, 0.1);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.quieto-info i {
    color: var(--success-color);
    font-size: 1.2rem;
}

.equipo-actions {
    margin-top: 1rem;
    text-align: center;
}

.equipo-actions .btn {
    min-width: 120px;
}

/* Registros History Styles */
.registros-list {
    max-height: 600px;
    overflow-y: auto;
}

.registro-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    border-left: 4px solid transparent;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.registro-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.registro-entrada {
    border-left-color: var(--success-color);
    background: linear-gradient(135deg, #E8F5E8 0%, #F0F8F0 100%);
}

.registro-salida {
    border-left-color: var(--warning-color);
    background: linear-gradient(135deg, #FFF8E1 0%, #FFFBF0 100%);
}

.registro-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.registro-icon i {
    font-size: 1.2rem;
}

.registro-content {
    flex: 1;
}

.registro-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.registro-tipo {
    font-weight: 600;
    margin: 0;
    font-size: 1.1rem;
}

.registro-entrada .registro-tipo {
    color: var(--success-color);
}

.registro-salida .registro-tipo {
    color: var(--warning-color);
}

.registro-fecha {
    font-size: 0.85rem;
    color: #666;
    background: rgba(255, 255, 255, 0.8);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.registro-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.registro-info {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
}

.registro-info i {
    color: var(--primary-color);
    width: 16px;
    text-align: center;
    margin-right: 0.5rem;
}

.registro-info strong {
    color: var(--dark-color);
    margin-right: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .registro-details {
        grid-template-columns: 1fr;
    }
    
    .registro-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .registro-item {
        padding: 0.75rem;
    }
}

/* Movimientos para Empleados */
.movimientos-list {
    max-height: 500px;
    overflow-y: auto;
}

.movimiento-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    border-left: 4px solid transparent;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.movimiento-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.movimiento-entrada {
    border-left-color: var(--success-color);
    background: linear-gradient(135deg, #E8F5E8 0%, #F0F8F0 100%);
}

.movimiento-salida {
    border-left-color: var(--warning-color);
    background: linear-gradient(135deg, #FFF8E1 0%, #FFFBF0 100%);
}

.movimiento-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.movimiento-icon i {
    font-size: 1.2rem;
}

.movimiento-content {
    flex: 1;
}

.movimiento-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.movimiento-tipo {
    font-weight: 600;
    margin: 0;
    font-size: 1.1rem;
}

.movimiento-entrada .movimiento-tipo {
    color: var(--success-color);
}

.movimiento-salida .movimiento-tipo {
    color: var(--warning-color);
}

.movimiento-fecha {
    font-size: 0.85rem;
    color: #666;
    background: rgba(255, 255, 255, 0.8);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.movimiento-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.movimiento-info {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
}

.movimiento-info i {
    color: var(--primary-color);
    width: 16px;
    text-align: center;
    margin-right: 0.5rem;
}

.movimiento-info strong {
    color: var(--dark-color);
    margin-right: 0.5rem;
}

/* Responsive adjustments para movimientos */
@media (max-width: 768px) {
    .movimiento-details {
        grid-template-columns: 1fr;
    }
    
    .movimiento-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .movimiento-item {
        padding: 0.75rem;
    }
}

/* Dashboard del Empleado - Solo Logo Didáctico */
.employee-dashboard {
    min-height: calc(100vh - 50px); /* Altura total menos navbar */
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #dee2e6 100%);
    padding: 4rem 2rem 2rem 2rem;
}

.logo-showcase {
    text-align: center;
    animation: fadeInUp 1s ease-out;
    margin-top: 8vh; /* Posiciona el logo más abajo */
}

.logo-container {
    padding: 6rem 4rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 30px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.8);
    margin: 0 auto;
    max-width: 600px;
    position: relative;
    overflow: hidden;
}

.logo-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #28a745, #20c997, #17a2b8, #6f42c1);
}

.company-logo {
    max-width: 400px;
    max-height: 300px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s ease;
}

.company-logo:hover {
    transform: scale(1.05);
}

/* Animación de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive para el logo del empleado */
@media (max-width: 768px) {
    .employee-dashboard {
        padding: 2rem 1rem 1rem 1rem;
    }
    
    .logo-showcase {
        margin-top: 6vh; /* Menos margen en tablet */
    }
    
    .logo-container {
        padding: 4rem 2rem;
        max-width: 90%;
    }
    
    .company-logo {
        max-width: 300px;
        max-height: 200px;
    }
}

@media (max-width: 480px) {
    .employee-dashboard {
        padding: 1.5rem 0.5rem 1rem 0.5rem;
    }
    
    .logo-showcase {
        margin-top: 4vh; /* Menos margen en móvil */
    }
    
    .logo-container {
        padding: 3rem 1.5rem;
    }
    
    .company-logo {
        max-width: 250px;
        max-height: 150px;
    }
}

/* Estilos para campos de solo lectura */
.form-control-plaintext.bg-light {
    background-color: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    font-weight: 500;
    color: #6c757d;
    cursor: not-allowed;
}

.form-control-plaintext.bg-light:focus {
    background-color: #f8f9fa !important;
    border-color: #dee2e6 !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Indicador visual de campo no editable */
.form-control-plaintext.bg-light::after {
    content: "🔒";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Estilos para compresión de imágenes */
.image-compression-progress {
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
    border: 1px solid #2196f3;
    border-radius: 8px;
    padding: 0.75rem;
    margin-top: 0.5rem;
}

.image-compression-result {
    background: linear-gradient(135deg, #e8f5e8, #f0f8f0);
    border: 1px solid #4caf50;
    border-radius: 8px;
    padding: 0.75rem;
    margin-top: 0.5rem;
}

.image-compression-error {
    background: linear-gradient(135deg, #ffebee, #fce4ec);
    border: 1px solid #f44336;
    border-radius: 8px;
    padding: 0.75rem;
    margin-top: 0.5rem;
}

.image-size-error {
    background: linear-gradient(135deg, #fff3e0, #fce4ec);
    border: 1px solid #ff9800;
    border-radius: 6px;
    padding: 0.5rem;
    margin-top: 0.25rem;
}

.image-size-info {
    background: linear-gradient(135deg, #e8f5e8, #f1f8e9);
    border: 1px solid #8bc34a;
    border-radius: 6px;
    padding: 0.5rem;
    margin-top: 0.25rem;
}

/* Animaciones para los mensajes de compresión */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.image-compression-progress,
.image-compression-result,
.image-compression-error,
.image-size-error,
.image-size-info {
    animation: fadeInUp 0.3s ease-out;
}

/* Mejoras para campos de archivo */
input[type="file"] {
    transition: all 0.3s ease;
}

input[type="file"]:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

input[type="file"].is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Spinner personalizado para compresión */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Badges para estadísticas de compresión */
.badge {
    font-size: 0.75rem;
    padding: 0.25em 0.5em;
    border-radius: 0.375rem;
}

.badge.bg-success {
    background-color: var(--primary-color) !important;
}

/* Responsive para mensajes de compresión */
@media (max-width: 768px) {
    .image-compression-progress,
    .image-compression-result,
    .image-compression-error,
    .image-size-error,
    .image-size-info {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
    
    .badge {
        font-size: 0.7rem;
        padding: 0.2em 0.4em;
    }
}
