/* ==========================================================================
   STYLE.CSS - PREMIUM "CLOUD BLUE" UI/UX OVERHAUL
   UTN San Francisco - Gestión de Flota Vehicular
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* --- Cloud Blue Light Design Tokens --- */
    --bg-base: #f0f5fb;            /* Celeste grisáceo muy suave */
    --bg-surface: #e8f0fa;         /* Fondo secundario o de apoyo */
    --bg-elevated: #ffffff;        /* Tarjetas, modales y campos */
    --utn-navy: #003c71;           /* Azul marino institucional UTN */
    --utn-cyan: #00a8ff;           /* Celeste eléctrico activo */
    --utn-gold: #f59e0b;           /* Dorado de acento secundario */
    
    /* --- State Colors --- */
    --success: #16a34a;            /* Verde éxito premium */
    --danger: #dc2626;             /* Rojo peligro premium */
    --warning: #d97706;            /* Amarillo advertencia */
    --info: #0077cc;               /* Azul información */

    /* --- Text Colors --- */
    --text-primary: #0f2040;       /* Azul oscuro de alto contraste */
    --text-secondary: #374f6b;     /* Azul grisáceo intermedio */
    --text-muted: #7a93ad;         /* Celeste grisáceo atenuado */
    
    /* --- Shadows --- */
    --shadow-sm: 0 2px 8px rgba(0, 60, 113, 0.04);
    --shadow-md: 0 10px 30px -5px rgba(0, 60, 113, 0.06);
    --shadow-lg: 0 20px 40px -10px rgba(0, 60, 113, 0.1);
    --shadow-glow: 0 0 0 3px rgba(0, 168, 255, 0.12);
    
    /* --- Transitions --- */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;

    /* ======================================================================
       COMPATIBILITY MAPPINGS (Keeps older classes functioning flawlessly)
       ====================================================================== */
    --utn-blue-dark: var(--utn-navy);
    --utn-blue-light: var(--utn-cyan);
    --bg-color: var(--bg-base);
    --text-main: var(--text-primary);
    --white: var(--bg-elevated);
    --border-color: rgba(0, 60, 113, 0.08);
}

/* ==========================================================================
   GLOBAL RESET & TYPOGRAPHY
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.01em;
}

body {
    background: 
        radial-gradient(circle at 10% 20%, rgba(0, 168, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 60, 113, 0.04) 0%, transparent 50%),
        var(--bg-base);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Spider UTN watermark - Elegant bottom right integration */
body::after {
    content: "";
    position: fixed;
    bottom: -3%;
    right: -3%;
    width: 60vh;
    height: 60vh;
    background-image: url('logo-utn.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.035;
    pointer-events: none;
    z-index: -1;
    transform: rotate(-10deg);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: var(--utn-navy);
    font-weight: 700;
    line-height: 1.25;
}

/* ==========================================================================
   LIQUID GLASS HEADER & NAVIGATION
   ========================================================================== */
header {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(190%);
    -webkit-backdrop-filter: blur(20px) saturate(190%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--utn-navy);
    padding: 0.75rem 1.5rem;
    box-shadow: 0 4px 30px rgba(0, 60, 113, 0.03);
    position: sticky;
    top: 0;
    z-index: 50;
    min-height: 75px;
    display: flex;
    align-items: center;
}

.header-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1250px;
    margin: 0 auto;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-left h1 {
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--utn-navy);
}

.header-left h1 img {
    height: 42px;
    width: auto;
    object-fit: contain;
}

.header-left h1 span {
    border-left: 2px solid rgba(0, 60, 113, 0.15);
    padding-left: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1.15rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.user-greeting {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
    background: rgba(0, 60, 113, 0.05);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.user-greeting::before {
    content: "●";
    color: var(--utn-cyan);
    animation: status-pulse 2s infinite;
}

/* ==========================================================================
   NOTIFICATIONS BELL & DROPDOWN
   ========================================================================== */
.notif-container {
    position: relative;
    display: inline-block;
}

.notif-btn {
    background: none;
    border: none;
    color: var(--utn-navy);
    font-size: 1.4rem;
    cursor: pointer;
    position: relative;
    padding: 0.5rem;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.notif-btn:hover {
    transform: scale(1.08);
    color: var(--utn-cyan);
}

.notif-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--danger);
    color: var(--bg-elevated);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-elevated);
    font-weight: 700;
}

.notif-dropdown {
    position: absolute;
    right: 0;
    top: 45px;
    width: 320px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 16px;
    box-shadow: var(--shadow-lg), 0 10px 30px rgba(0, 60, 113, 0.08);
    z-index: 1000;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: var(--transition-smooth);
}

.notif-dropdown h4 {
    margin: 0 0 0.75rem 0;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 700;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.notif-item {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid rgba(0, 60, 113, 0.04);
    font-size: 0.82rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

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

.notif-item:hover {
    background: rgba(0, 168, 255, 0.04);
    border-radius: 8px;
}

/* ==========================================================================
   SIDEBAR MENU
   ========================================================================== */
.sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 15px 0 40px rgba(0, 60, 113, 0.08);
    z-index: 1000;
    transition: var(--transition-smooth);
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    border-right: 1px solid rgba(255, 255, 255, 0.5);
}

.sidebar.active {
    left: 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 32, 64, 0.25);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999;
    display: none;
    animation: fadeIn 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
}

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

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    border-radius: 10px;
    transition: var(--transition-smooth);
}

.sidebar-nav a:hover, 
.sidebar-nav a.active {
    background: rgba(0, 168, 255, 0.08);
    color: var(--utn-navy);
    transform: translateX(4px);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.menu-toggle {
    background: none;
    border: none;
    color: var(--utn-navy);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0.5rem;
    margin-right: 0.5rem;
    transition: var(--transition-fast);
}

.menu-toggle:hover {
    transform: scale(1.1);
    color: var(--utn-cyan);
}

/* ==========================================================================
   CONTAINERS & CARDS (GLASSMORPHISM & PREMIUM DEPTH)
   ========================================================================== */
.container {
    max-width: 1250px;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
}

.container-small {
    max-width: 800px;
}

.card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 
        var(--shadow-lg), 
        inset 0 0 0 1px rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
}

.card h2 {
    color: var(--utn-navy);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.75rem;
}

/* ==========================================================================
   FORMS & INPUT CONTROLS
   ========================================================================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-control {
    width: 100%;
    height: 48px;
    padding: 0 1.25rem;
    border: 2px solid rgba(0, 60, 113, 0.08);
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.6);
    box-shadow: inset 0 2px 4px rgba(0, 60, 113, 0.01);
    transition: var(--transition-smooth);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23374f6b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    background-size: 1.25em;
    padding-right: 3rem;
}

textarea.form-control {
    height: auto;
    padding: 1rem 1.25rem;
    resize: vertical;
    min-height: 110px;
}

.form-control:hover {
    border-color: rgba(0, 168, 255, 0.3);
}

.form-control:focus {
    outline: none;
    border-color: var(--utn-cyan);
    background: var(--bg-elevated);
    box-shadow: var(--shadow-glow);
}

.form-control[readonly] {
    background: var(--bg-surface);
    color: var(--text-secondary);
    border-color: rgba(0, 60, 113, 0.04);
    cursor: not-allowed;
}

/* Info Hints inside Forms */
.info-hint {
    background: rgba(0, 168, 255, 0.05);
    border-left: 4px solid var(--utn-cyan);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.info-hint i {
    font-size: 1.25rem;
    color: var(--utn-navy);
}

.info-hint p {
    margin: 0;
}

/* ==========================================================================
   PREMIUM OCEAN BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 42px; /* Reducido ligeramente de 48px para máxima elegancia */
    padding: 0 1.5rem;
    border: 1px solid transparent;
    border-radius: 10px; /* Bordes redondeados más sutiles y modernos */
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    min-width: 120px;
    white-space: nowrap;
}

/* Button ripple container styles */
.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Colors & Variations - Outline Translucent Style */
.btn-primary {
    background: rgba(0, 60, 113, 0.08) !important;
    border: 1px solid rgba(0, 60, 113, 0.25) !important;
    color: var(--utn-navy) !important;
    box-shadow: none !important;
}

.btn-primary:hover {
    background: rgba(0, 60, 113, 0.16) !important;
    border-color: rgba(0, 60, 113, 0.45) !important;
    color: var(--utn-navy) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 60, 113, 0.08) !important;
}

.btn-success {
    background: rgba(22, 163, 74, 0.08) !important;
    border: 1px solid rgba(22, 163, 74, 0.25) !important;
    color: var(--success) !important;
    box-shadow: none !important;
}

.btn-success:hover {
    background: rgba(22, 163, 74, 0.16) !important;
    border-color: rgba(22, 163, 74, 0.45) !important;
    color: var(--success) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.08) !important;
}

.btn-danger {
    background: rgba(220, 38, 38, 0.08) !important;
    border: 1px solid rgba(220, 38, 38, 0.25) !important;
    color: var(--danger) !important;
    box-shadow: none !important;
}

.btn-danger:hover {
    background: rgba(220, 38, 38, 0.16) !important;
    border-color: rgba(220, 38, 38, 0.45) !important;
    color: var(--danger) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.08) !important;
}

.btn-warning {
    background: rgba(217, 119, 6, 0.08) !important;
    border: 1px solid rgba(217, 119, 6, 0.25) !important;
    color: var(--warning) !important;
    box-shadow: none !important;
}

.btn-warning:hover {
    background: rgba(217, 119, 6, 0.16) !important;
    border-color: rgba(217, 119, 6, 0.45) !important;
    color: var(--warning) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.08) !important;
}

.btn-info {
    background: rgba(0, 119, 204, 0.08) !important;
    border: 1px solid rgba(0, 119, 204, 0.25) !important;
    color: var(--info) !important;
    box-shadow: none !important;
}

.btn-info:hover {
    background: rgba(0, 119, 204, 0.16) !important;
    border-color: rgba(0, 119, 204, 0.45) !important;
    color: var(--info) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 204, 0.08) !important;
}

/* Header buttons (SaaS glass styling) */
.header-btn {
    text-decoration: none;
    font-weight: 700;
    padding: 0 1.25rem;
    height: 38px;
    min-width: 0;
    border-radius: 10px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
    backdrop-filter: blur(5px);
    background: rgba(0, 60, 113, 0.06);
    color: var(--utn-navy);
    white-space: nowrap;
}

.header-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    background-color: rgba(0, 60, 113, 0.1);
}

.btn-glass-yellow {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #b45309 !important;
    border-color: rgba(245, 158, 11, 0.25) !important;
}
.btn-glass-yellow:hover {
    background: rgba(245, 158, 11, 0.25) !important;
}

.btn-glass-blue {
    background: rgba(0, 168, 255, 0.12) !important;
    color: var(--utn-navy) !important;
    border-color: rgba(0, 168, 255, 0.22) !important;
}
.btn-glass-blue:hover {
    background: rgba(0, 168, 255, 0.22) !important;
}

.btn-glass-red {
    background: rgba(220, 38, 38, 0.12) !important;
    color: var(--danger) !important;
    border-color: rgba(220, 38, 38, 0.22) !important;
}
.btn-glass-red:hover {
    background: rgba(220, 38, 38, 0.22) !important;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* ==========================================================================
   TABLES (CLEAN PREMIUM LAYOUT)
   ========================================================================== */
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px var(--border-color);
    background: var(--bg-elevated);
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 0;
}

table th,
table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

table th {
    background: rgba(0, 60, 113, 0.03);
    color: var(--utn-navy);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

table tbody tr {
    transition: var(--transition-fast);
}

table tbody tr:hover {
    background: rgba(0, 168, 255, 0.035);
}

table tbody tr:last-child td {
    border-bottom: none;
}

/* ==========================================================================
   BADGES & ALERTS
   ========================================================================== */
.badge {
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-transform: capitalize;
}

.badge::before {
    content: "●";
    font-size: 0.7rem;
}

.badge-pendiente {
    background-color: #fef3c7;
    color: #d97706;
}

.badge-aprobado {
    background-color: #d1fae5;
    color: #15803d;
}

.badge-rechazado {
    background-color: #fee2e2;
    color: #b91c1c;
}

.badge-disponible {
    background-color: #e0f2fe;
    color: #0369a1;
}

.badge-no_disponible {
    background-color: #f1f5f9;
    color: #475569;
}

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-width: 1px;
    border-style: solid;
}

.alert-success {
    background-color: #d1fae5;
    color: #15803d;
    border-color: rgba(22, 163, 74, 0.2);
}

.alert-error {
    background-color: #fee2e2;
    color: #b91c1c;
    border-color: rgba(220, 38, 38, 0.2);
}

/* ==========================================================================
   VEHICLES GRID & SHINE EFFECTS
   ========================================================================== */
.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 1rem;
}

.vehicle-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    padding: 1.25rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 
        var(--shadow-md),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
    backface-visibility: hidden;
    will-change: transform, box-shadow;
}

.vehicle-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 
        var(--shadow-lg),
        0 15px 35px rgba(0, 60, 113, 0.15);
    border-color: rgba(0, 168, 255, 0.4);
}

.vehicle-card h3 {
    margin: 0;
    font-size: 1.35rem;
    color: var(--utn-navy);
    font-weight: 800;
    letter-spacing: -0.02em;
    z-index: 2;
}

/* Pulsing Status Dot */
.vehicle-card .status-dot {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2.5px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    z-index: 3;
}

.vehicle-card .status-dot::after {
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 1px solid inherit;
    opacity: 0.5;
    animation: status-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes status-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Shimmer reflection sweep animation */
.shimmer-active {
    position: relative;
    overflow: hidden;
}

.shimmer-active::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 30%,
        rgba(255, 255, 255, 0.5) 60%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* ==========================================================================
   LICENSE PLATE WRAPPER (ARGENTINA)
   ========================================================================== */
.arg-patente {
    border-radius: 8px;
    padding: 0;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    width: 180px;
    margin: 0.5rem 0 0 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
    transition: var(--transition-smooth);
    container-type: inline-size;
}

.arg-patente.patente-nueva {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #222;
}

.arg-patente.patente-vieja {
    background: #d1d5db;
    border: 2px solid #9ca3af;
    padding: 6px;
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.12),
        inset 0 1px 3px rgba(255,255,255,0.7);
    position: relative;
}

.arg-patente.patente-vieja::before {
    content: "";
    position: absolute;
    top: 36px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    background: #111;
    border-radius: 6px;
    z-index: 1;
}

.vehicle-card:hover .arg-patente {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.arg-patente-header {
    width: 100%;
    text-align: center;
    padding: 6px 8px;
    letter-spacing: 0.5px;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.75rem;
}

.patente-nueva .arg-patente-header {
    background: var(--utn-navy);
    color: var(--bg-elevated);
}

.patente-vieja .arg-patente-header {
    background: transparent;
    color: var(--utn-cyan);
    padding: 4px 8px 0 8px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.patente-vieja .arg-patente-header::before {
    content: "🇦🇷";
    font-size: 0.9rem;
}

.arg-patente-number {
    position: relative;
    z-index: 2;
    font-family: 'Courier New', Courier, monospace;
    font-size: 2.1rem;
    font-weight: 900;
    padding: 6px 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    line-height: 1;
}

.patente-nueva .arg-patente-number {
    color: #222;
}

.patente-vieja .arg-patente-number {
    color: var(--bg-elevated);
    padding-top: 14px;
}

/* ==========================================================================
   MODAL DIALOGS
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 32, 64, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: flex-start;
    z-index: 2000;
    padding: 2.5rem 1rem;
    overflow-y: auto;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--bg-elevated);
    padding: 2.5rem;
    border-radius: 20px;
    width: 100%;
    max-width: 780px;
    margin: auto;
    position: relative;
    box-shadow: var(--shadow-lg), 0 30px 70px rgba(0, 0, 0, 0.2);
    animation: modalAppear 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--danger);
    transform: scale(1.1);
}

.no-scroll {
    overflow: hidden;
}

/* ==========================================================================
   MULTI-STEP FORM CONTROLS & STEPPERS
   ========================================================================== */
.tabs {
    margin-bottom: 2.5rem;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    flex-wrap: nowrap;
    gap: 0.85rem;
    padding-bottom: 0;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Oculta barra en Firefox */
    -ms-overflow-style: none; /* Oculta barra en IE y Edge */
}

/* Oculta barra de desplazamiento en Chrome, Safari y Opera */
.tabs::-webkit-scrollbar {
    display: none;
}

.tabs a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    padding: 0.85rem 0.5rem;
    margin-bottom: -2px;
    border-bottom: 3px solid transparent;
    transition: var(--transition-smooth);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.tabs a:first-child {
    padding-left: 0;
}

.tabs a.active {
    color: var(--utn-navy);
    font-weight: 700;
    border-bottom-color: var(--utn-navy);
}

.tabs a:hover:not(.active) {
    color: var(--utn-navy);
    border-bottom-color: rgba(0, 60, 113, 0.15);
}

.action-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    padding: 1.75rem;
    border-radius: 16px;
    margin-top: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.form-step {
    display: none;
    animation: fadeInStep 0.4s ease-out;
}

.form-step.active {
    display: block;
}

@keyframes fadeInStep {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Horizontal Stepper Fix */
.stepper-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 3.5rem;
    position: relative;
    width: 100%;
}

.step-indicator {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    position: relative;
}

.step-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    margin-bottom: 0.5rem;
    box-shadow: var(--shadow-sm);
}

/* Horizontal line joining steps */
.stepper-wrapper::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--border-color);
    z-index: 1;
}

.step-indicator.active .step-dot {
    border-color: var(--utn-cyan);
    background: var(--bg-elevated);
    color: var(--utn-navy);
    box-shadow: 0 0 0 5px rgba(0, 168, 255, 0.15);
    transform: scale(1.1);
}

.step-indicator.completed .step-dot {
    background: var(--utn-navy);
    border-color: var(--utn-navy);
    color: var(--bg-elevated);
}

.step-text {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.step-indicator.active .step-text {
    color: var(--utn-navy);
}

.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.form-header h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--utn-navy);
    margin: 0;
}

.form-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 0.4rem;
}

/* Summary Grid Premium */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.summary-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.summary-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.summary-content {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--utn-navy);
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* Nav Controls */
.nav-controls {
    display: flex;
    justify-content: space-between;
    margin-top: 3.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.btn-minimal {
    padding: 0 2.25rem;
    height: 48px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-minimal-primary {
    background: var(--utn-navy);
    color: var(--bg-elevated);
    box-shadow: 0 4px 12px rgba(0, 60, 113, 0.15);
}

.btn-minimal-primary:hover {
    background: var(--utn-cyan);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 168, 255, 0.25);
    color: var(--bg-elevated);
}

.btn-minimal-secondary {
    background: rgba(0, 60, 113, 0.05);
    color: var(--text-secondary);
}

.btn-minimal-secondary:hover {
    background: rgba(0, 60, 113, 0.1);
    color: var(--utn-navy);
    transform: translateY(-2px);
}

/* ==========================================================================
   FULLCALENDAR GRAPHICAL TWEAKS
   ========================================================================== */
#calendar {
    width: 100%;
    max-width: 100%;
    background: var(--bg-elevated);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.fc .fc-daygrid-day-frame {
    min-height: 90px;
    height: auto;
}

.fc .fc-daygrid-event .fc-event-main {
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 3px 6px;
    font-size: 0.82rem;
    font-weight: 600;
}

.fc .fc-daygrid-day-number {
    font-weight: 700;
    color: var(--utn-navy) !important;
    padding: 4px 8px !important;
    text-decoration: none !important;
}

.fc .fc-col-header-cell {
    background: rgba(0, 60, 113, 0.03);
    padding: 8px 4px;
    font-weight: 700;
    color: var(--utn-navy);
}

.fc .fc-button-primary {
    background: var(--utn-navy) !important;
    border-color: var(--utn-navy) !important;
}

.fc .fc-button-primary:hover {
    background: var(--utn-cyan) !important;
    border-color: var(--utn-cyan) !important;
}

.fc .fc-button-active {
    background: var(--utn-cyan) !important;
    border-color: var(--utn-cyan) !important;
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.btn-pagination {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-elevated);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    font-size: 0.88rem;
    box-shadow: var(--shadow-sm);
}

.btn-pagination:hover:not(.disabled) {
    background: var(--utn-navy);
    color: var(--bg-elevated);
    border-color: var(--utn-navy);
    transform: translateY(-1px);
}

.btn-pagination.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(0, 60, 113, 0.02);
}

.pagination-info {
    font-size: 0.88rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.pagination-info span {
    color: var(--utn-navy);
    font-weight: 700;
}

/* ==========================================================================
   CUSTOM AUTOCOMPLETE DROP-DOWN
   ========================================================================== */
.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.custom-options {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 60, 113, 0.1);
    border-radius: 12px;
    box-shadow: var(--shadow-lg), 0 10px 30px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
    display: none;
    padding: 0.5rem;
}

.custom-options.show {
    display: block;
}

.custom-option {
    padding: 0.65rem 1rem;
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition-fast);
    background: transparent;
    margin-bottom: 2px;
}

.custom-option:last-child {
    margin-bottom: 0;
}

.custom-option:hover, 
.custom-option.selected {
    background: rgba(0, 168, 255, 0.08);
    color: var(--utn-navy);
}

.custom-option strong {
    color: var(--utn-navy);
}

/* ==========================================================================
   TOAST FLOATING POPUPS
   ========================================================================== */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast-notification {
    background: var(--bg-elevated);
    box-shadow: var(--shadow-lg), 0 12px 30px rgba(0, 60, 113, 0.1);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 320px;
    max-width: 420px;
    border-left: 5px solid var(--utn-cyan);
    pointer-events: auto;
    animation: toastBounceIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition: var(--transition-smooth);
}

@keyframes toastBounceIn {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.toast-success { border-left-color: var(--success); }
.toast-error { border-left-color: var(--danger); }
.toast-warning { border-left-color: var(--warning); }
.toast-info { border-left-color: var(--info); }

/* ==========================================================================
   INITIAL LOADING SCREEN OVERLAY (DYNAMIC INJECTION TARGET)
   ========================================================================== */
.initial-loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.loader-content {
    text-align: center;
    max-width: 380px;
    width: 90%;
}

.pulse-logo {
    height: 90px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1.5rem;
    animation: logoPulse 1.8s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(0, 60, 113, 0));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 4px 15px rgba(0, 60, 113, 0.12));
    }
}

.loader-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--utn-navy);
    margin-bottom: 0.25rem;
}

.loader-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
}

.loader-progress-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-base);
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.loader-progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--utn-cyan), var(--utn-navy));
    border-radius: 100px;
    transition: width 0.15s ease-out;
}

.loader-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ==========================================================================
   SESSION TIMEOUT INACTIVITY WARNING DIALOG
   ========================================================================== */
.session-timeout-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 32, 64, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.3s ease;
    padding: 1.5rem;
}

.session-timeout-card {
    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-lg), 0 30px 60px rgba(15, 32, 64, 0.15);
    animation: modalAppear 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.session-timeout-icon-container {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    position: relative;
}

.session-timeout-icon-container::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid var(--utn-gold);
    animation: pulseWarn 1.5s ease-in-out infinite;
    opacity: 0.7;
}

@keyframes pulseWarn {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0px rgba(245, 158, 11, 0.4);
        opacity: 0.8;
    }
    70% {
        transform: scale(1.35);
        box-shadow: 0 0 0 15px rgba(245, 158, 11, 0);
        opacity: 0;
    }
    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

.warning-pulse-icon {
    font-size: 2rem;
    color: var(--utn-gold);
}

.session-timeout-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--utn-navy);
    margin-bottom: 0.75rem;
}

.session-timeout-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.75rem;
}

.session-timeout-timer {
    font-family: 'Courier New', Courier, monospace;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--utn-gold);
    line-height: 1;
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}

.session-timeout-timer.imminent-danger {
    color: var(--danger);
    animation: heartbeat 1s ease infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

.session-timeout-unit {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.session-timeout-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.session-timeout-actions .btn {
    flex: 1;
    min-width: 0;
    height: 48px;
    font-size: 0.9rem;
    padding: 0 1rem;
}

/* ==========================================================================
   MOBILE & RESPONSIVENESS OVERRIDES
   ========================================================================== */
@media (max-width: 992px) {
    /* Responsive Stacked Table Grid ONLY for .table-stack */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table-stack {
        overflow-x: hidden !important;
        padding: 0 !important;
        border: none !important;
        margin: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .table-stack, 
    .table-stack tbody, 
    .table-stack tr, 
    .table-stack td {
        display: block;
        width: 100%;
        box-sizing: border-box !important;
    }
    
    .table-stack thead {
        display: none;
    }
    
    .table-stack tr {
        margin-bottom: 1.5rem;
        background: var(--bg-elevated);
        border-radius: 16px;
        box-shadow: var(--shadow-sm);
        border: 1px solid var(--border-color);
        overflow: hidden;
        padding: 0;
    }
    
    .table-stack td {
        padding: 1rem 1.25rem;
        text-align: left;
        border-bottom: 1px solid var(--border-color);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
        word-break: break-word;
    }
    
    .table-stack td:last-child {
        border-bottom: none;
        background: rgba(0, 60, 113, 0.02);
        align-items: stretch;
        padding: 1.25rem;
    }
    
    .table-stack td::before {
        content: attr(data-label);
        font-weight: 800;
        color: var(--text-muted);
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        text-align: left;
    }
    
    .table-stack td .btn {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 0 0.5rem 0 !important;
        padding: 0.8rem 0.5rem !important;
        text-align: center !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        line-height: 1.2 !important;
    }
    
    .table-stack td .btn:last-child {
        margin-bottom: 0 !important;
    }

    .table-stack tr.expandable-row {
        margin-top: -1.5rem;
        border-top: none;
        border-radius: 0 0 16px 16px;
        background: rgba(255, 255, 255, 0.5);
        padding: 0.5rem;
        box-shadow: var(--shadow-sm);
    }

    .table-stack tr.expandable-row td {
        display: block;
        text-align: left;
        padding: 0.5rem 1.25rem;
        border: none;
    }

    .table-stack tr.expandable-row td::before {
        display: none;
    }

    /* Responsive forms inside accordion */
    .action-form-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
    }

    .action-form-row .form-group, 
    .action-form-row button,
    .action-form-row select {
        width: 100% !important;
        flex: none !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .action-form-row button {
        padding: 0.8rem 0.5rem !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        white-space: normal !important;
        line-height: 1.2 !important;
    }

    .action-form-row select {
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        overflow: hidden !important;
    }

    .mobile-inner-padding {
        padding: 1rem 0.75rem !important;
    }
}

@media (max-width: 768px) {
    html, body {
        width: 100%;
        overflow-x: hidden;
        position: relative;
    }

    header {
        padding: 1rem;
        height: auto;
        position: relative;
        width: 100%;
    }

    .header-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        width: 100%;
    }

    .header-left {
        width: 100%;
        justify-content: center;
    }

    .header-left h1 {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        font-size: 1.15rem;
        white-space: normal !important;
        text-align: center;
    }

    .header-left h1 img {
        height: 36px;
    }

    .header-left h1 span {
        font-size: 0.9rem;
        border-left: none;
        padding-left: 0;
        margin-left: 0;
        line-height: 1.2;
    }

    .header-right {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .header-btn {
        width: 100% !important;
        justify-content: center;
        padding: 0.8rem;
        font-size: 0.9rem;
        margin: 0 !important;
        height: 42px;
    }

    .user-greeting {
        width: 100%;
        justify-content: center;
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }

    .notif-container {
        position: static !important;
        display: flex !important;
        justify-content: center !important;
        margin: 0.25rem 0 0.5rem 0 !important;
    }

    .notif-dropdown {
        position: absolute !important;
        left: 0.75rem !important;
        right: 0.75rem !important;
        width: auto !important;
        max-width: none !important;
        top: 100% !important;
        box-shadow: var(--shadow-lg), 0 15px 35px rgba(0, 60, 113, 0.15) !important;
        border-radius: 14px !important;
        z-index: 1001 !important;
    }

    .container {
        padding: 0 0.75rem;
        margin-top: 1rem;
    }

    .card {
        padding: 1.5rem 1.25rem;
        border-radius: 16px;
        box-shadow: var(--shadow-sm);
    }

    /* Vertical tab buttons stacking */
    .tabs {
        display: flex;
        flex-direction: column;
        gap: 8px;
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 1.5rem;
    }

    .tabs a {
        width: 100%;
        margin: 0;
        text-align: center;
        background: rgba(255, 255, 255, 0.8);
        border: 1px solid var(--border-color) !important;
        border-radius: 10px;
        padding: 0.75rem;
        justify-content: center;
        font-weight: 600;
        color: var(--text-secondary);
        font-size: 0.95rem;
    }

    .tabs a:first-child {
        padding-left: 0.75rem;
    }

    .tabs a.active {
        background: var(--utn-navy) !important;
        color: var(--bg-elevated) !important;
        border-color: var(--utn-navy) !important;
        box-shadow: var(--shadow-sm);
    }

    .tabs a:hover:not(.active) {
        background: rgba(255, 255, 255, 0.95) !important;
        color: var(--utn-navy) !important;
    }

    /* Single-column stacking for grids, tables, and layouts */
    .vehicles-grid,
    #report-form,
    .action-card form,
    .report-actions,
    form [style*="display:flex"],
    form [style*="display:grid"] {
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 1.25rem !important;
    }

    .report-actions button {
        width: 100% !important;
        margin: 0 !important;
    }

    .form-group {
        width: 100% !important;
    }

    /* Auto-zoom prevention on iOS and mobile focus */
    input,
    select,
    textarea,
    .form-control {
        width: 100% !important;
        font-size: 16px !important;
        padding: 0.75rem 1rem !important;
        height: 46px !important;
    }
    
    textarea.form-control {
        height: auto !important;
    }

    /* Stepper Wrapper Mobile Refinements */
    .stepper-wrapper {
        margin-bottom: 2.5rem;
        gap: 0;
    }
    
    .stepper-wrapper::before {
        top: 14px;
        left: 5%;
        right: 5%;
    }

    .step-dot {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
    }

    .step-text {
        font-size: 0.65rem;
        letter-spacing: 0;
    }

    .vehicle-card {
        aspect-ratio: auto;
        padding: 1.75rem 1.25rem;
    }

    /* Elegant rescaled patent plate for mobile cards */
    .arg-patente {
        width: 130px;
        margin-top: 0.75rem;
    }
    
    .arg-patente-header {
        font-size: 0.55rem;
        padding: 4px 6px;
    }
    
    .arg-patente-number {
        font-size: 1.45rem;
        padding: 4px 8px;
        letter-spacing: 2px;
    }
    
    .patente-vieja .arg-patente-number {
        padding-top: 10px;
    }
    
    .patente-vieja .arg-patente-header {
        padding: 2px 6px 0 6px;
        font-size: 0.65rem;
        gap: 4px;
    }

    .pagination-info {
        display: none;
    }

    .session-timeout-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
    
    .session-timeout-timer {
        font-size: 2.75rem;
    }
    
    .session-timeout-actions {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    
    .session-timeout-actions .btn {
        width: 100%;
    }

    /* Stack any multi-column layout grids inside cards and containers on mobile devices */
    .card div[style*="display: grid"],
    .card div[style*="display:grid"],
    .modal-edit-content div[style*="display: grid"],
    .modal-edit-content div[style*="display:grid"],
    .container > div[style*="display: grid"],
    .container > div[style*="display:grid"] {
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 1.25rem !important;
    }
}

footer {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.8rem;
    opacity: 0.6;
}

/* ==========================================================================
   PREMIUM UTN CLOUD BLUE SWEETALERT2 OVERRIDES
   ========================================================================== */
.swal2-container {
    z-index: 999999 !important;
}

.swal2-popup.swal2-modal {
    background: var(--bg-elevated) !important;
    border-radius: 20px !important;
    box-shadow: var(--shadow-lg), 0 20px 40px rgba(0, 60, 113, 0.12) !important;
    padding: 2.5rem 2rem !important;
    border: 1px solid rgba(0, 60, 113, 0.05) !important;
    font-family: 'Inter', sans-serif !important;
}

.swal2-title {
    color: var(--utn-navy) !important;
    font-size: 1.45rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 0.75rem !important;
    font-family: 'Inter', sans-serif !important;
    line-height: 1.3 !important;
}

.swal2-html-container {
    color: var(--text-secondary) !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    margin: 0.5rem auto 1.5rem auto !important;
    font-family: 'Inter', sans-serif !important;
}

/* Style select dropdown, inputs, and textareas inside SweetAlert2 to match .form-control */
.swal2-select, .swal2-input, .swal2-textarea {
    width: 100% !important;
    height: 48px !important;
    padding: 0 1.25rem !important;
    border: 2px solid rgba(0, 60, 113, 0.08) !important;
    border-radius: 12px !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    color: var(--text-primary) !important;
    background: rgba(255, 255, 255, 0.6) !important;
    box-shadow: inset 0 2px 4px rgba(0, 60, 113, 0.01) !important;
    transition: var(--transition-smooth) !important;
    margin: 1rem auto 1.5rem auto !important;
    font-family: 'Inter', sans-serif !important;
}

.swal2-select:focus, .swal2-input:focus, .swal2-textarea:focus {
    outline: none !important;
    border-color: var(--utn-cyan) !important;
    background: var(--bg-elevated) !important;
    box-shadow: var(--shadow-glow) !important;
}

/* Custom styled select arrow for swal select */
.swal2-select {
    appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23374f6b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 1.25rem center !important;
    background-size: 1.25em !important;
    padding-right: 3rem !important;
}

/* Actions and Buttons styling */
.swal2-actions {
    margin-top: 1.5rem !important;
    gap: 0.75rem !important;
}

.swal2-styled.swal2-confirm {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    height: 48px !important;
    padding: 0 2rem !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: var(--transition-smooth) !important;
    text-align: center !important;
    min-width: 140px !important;
    color: var(--bg-elevated) !important;
    margin: 0 !important;
    box-shadow: 0 4px 14px rgba(0, 60, 113, 0.15) !important;
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(0, 0, 0, 0.05) 100%) !important;
}

.swal2-styled.swal2-confirm:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 60, 113, 0.22) !important;
    filter: brightness(1.05) !important;
}

.swal2-styled.swal2-cancel {
    display: inline-flex;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    height: 48px !important;
    padding: 0 2rem !important;
    border: 1px solid rgba(0, 60, 113, 0.08) !important;
    border-radius: 12px !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: var(--transition-smooth) !important;
    text-align: center !important;
    min-width: 140px !important;
    background-color: rgba(0, 60, 113, 0.05) !important;
    background-image: none !important;
    color: var(--text-secondary) !important;
    box-shadow: none !important;
    margin: 0 !important;
}

.swal2-styled.swal2-cancel:hover {
    background-color: rgba(0, 60, 113, 0.1) !important;
    color: var(--utn-navy) !important;
    transform: translateY(-2px) !important;
}

.swal2-validation-message {
    background: rgba(220, 38, 38, 0.05) !important;
    color: var(--danger) !important;
    border-radius: 10px !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    margin-top: 1rem !important;
    border-left: 4px solid var(--danger) !important;
    border-top: none !important;
    border-right: none !important;
    border-bottom: none !important;
    font-family: 'Inter', sans-serif !important;
    justify-content: flex-start !important;
    text-align: left !important;
}

/* ==========================================================================
   TERMS & CONDITIONS CHECKBOX CARD (DECLARACIÓN JURADA)
   ========================================================================== */
.terms-card {
    background: rgba(0, 168, 255, 0.02);
    border: 2px dashed rgba(0, 60, 113, 0.08);
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.terms-card:hover {
    border-color: rgba(0, 168, 255, 0.3);
    background: rgba(0, 168, 255, 0.04);
}

.terms-card input[type="checkbox"] {
    width: 24px;
    height: 24px;
    margin-top: 0.15rem;
    accent-color: var(--utn-cyan);
    cursor: pointer;
    flex-shrink: 0;
    border-radius: 6px;
    border: 2px solid var(--text-muted);
    transition: var(--transition-smooth);
}

.terms-card input[type="checkbox"]:focus {
    box-shadow: var(--shadow-glow);
}

.terms-card label {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
    line-height: 1.5;
}

.terms-card label strong {
    color: var(--utn-navy);
}

/* Checked state with green color scheme matching success */
.terms-card.checked {
    background: rgba(22, 163, 74, 0.03);
    border-color: var(--success);
    border-style: solid;
}

.btn-action {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    width: 34px !important;
    height: 34px !important;
    border: 1px solid transparent !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: var(--transition-smooth) !important;
    margin: 0 0.15rem !important;
    box-shadow: none !important;
    position: relative !important;
    vertical-align: middle !important;
}

.btn-action i {
    font-family: "Font Awesome 5 Free", "Font Awesome 6 Free", sans-serif !important;
    font-weight: 900 !important;
    color: inherit !important;
    font-size: 0.95rem !important;
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.btn-action-primary {
    background: rgba(0, 60, 113, 0.08) !important;
    border: 1px solid rgba(0, 60, 113, 0.25) !important;
    color: var(--utn-navy) !important;
}

.btn-action-primary:hover {
    background: rgba(0, 60, 113, 0.16) !important;
    border-color: rgba(0, 60, 113, 0.45) !important;
    color: var(--utn-navy) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 60, 113, 0.08) !important;
}

.btn-action-danger {
    background: rgba(220, 38, 38, 0.08) !important;
    border: 1px solid rgba(220, 38, 38, 0.25) !important;
    color: var(--danger) !important;
}

.btn-action-danger:hover {
    background: rgba(220, 38, 38, 0.16) !important;
    border-color: rgba(220, 38, 38, 0.45) !important;
    color: var(--danger) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.08) !important;
}