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

:root {
    --body-color: #0b1437;
    --sidebar-color: #111c44;
    --primary-color: #7551FF;
    --primary-color-light: #111c44;
    --toggle-color: #fff;
    --text-color: #ffffff;
    --text-muted: #a3aed0;
    --glass-bg: rgba(17, 28, 68, 0.7);
    --glass-border: rgba(255, 255, 255, 0.05);
    --shadow: 0px 18px 40px rgba(0, 0, 0, 0.25);
    --table-header-bg: #154530;
    --table-header-text: #ffffff;
    --input-bg: #0b1437;
    --input-border: #111c44;

    /* Mapped variables from gestion_disponibilidad */
    --primary: var(--primary-color);
    --primary-d: var(--primary-color-light);
    --accent: #e85d26;
    --accent-d: #c94e1e;
    --green: #01B574;
    --green-d: #166037;
    --blue: var(--primary-color);
    --blue-d: #0d47a1;
    --purple: #6a1e99;
    --surface: var(--sidebar-color);
    --card: var(--sidebar-color);
    --border: var(--input-border);
    --text: var(--text-color);
    --muted: var(--text-muted);
    --radius: 14px;
    --font-head: 'Syne', 'Inter', sans-serif;
    --font-body: 'DM Sans', 'Inter', sans-serif;
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.3);

    --danger-color: #EE5D50;
    --success-color: #01B574;
    --tran-03: all 0.3s ease;
    --tran-04: all 0.4s ease;
    --tran-05: all 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    min-height: 100vh;
    background-color: var(--body-color);
    transition: var(--tran-05);
    color: var(--text-color);
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 10px;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 24px;
    transition: var(--tran-03);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--tran-03);
    box-shadow: 0px 4px 12px rgba(67, 24, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0px 6px 16px rgba(67, 24, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--text-muted);
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--tran-03);
}

.btn-secondary:hover {
    background: var(--primary-color-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 250px;
    padding: 10px 14px;
    background: var(--sidebar-color);
    transition: var(--tran-05);
    z-index: 100;
    box-shadow: var(--shadow);
}

.sidebar.close {
    width: 88px;
}

.sidebar header {
    position: relative;
}

.sidebar header .image-text {
    display: flex;
    align-items: center;
}

.sidebar header .logo-text {
    display: flex;
    flex-direction: column;
}

header .image-text .name {
    margin-top: 2px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
}

header .image-text .profession {
    font-size: 14px;
    margin-top: -2px;
    color: var(--text-muted);
    display: block;
}

.sidebar header .image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar header .logo-icon {
    font-size: 40px;
    color: var(--primary-color);
    min-width: 60px;
    border-radius: 6px;
}

.sidebar header .toggle {
    position: absolute;
    top: 50%;
    right: -25px;
    transform: translateY(-50%) rotate(180deg);
    height: 25px;
    width: 25px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    transition: var(--tran-05);
}

body.dark .sidebar header .toggle {
    color: var(--text-color);
}

.sidebar.close .toggle {
    transform: translateY(-50%) rotate(0deg);
}

.sidebar .menu {
    margin-top: 40px;
}

.sidebar li {
    height: 50px;
    list-style: none;
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.sidebar li .icon {
    min-width: 60px;
    border-radius: 6px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.sidebar li .icon,
.sidebar li .text {
    color: var(--text-muted);
    transition: var(--tran-03);
}

.sidebar li a {
    list-style: none;
    height: 100%;
    background-color: transparent;
    display: flex;
    align-items: center;
    height: 100%;
    width: 100%;
    border-radius: 12px;
    text-decoration: none;
    transition: var(--tran-03);
}

.sidebar li a:hover,
.sidebar li a.active {
    background-color: var(--primary-color);
}

.sidebar li a:hover .icon,
.sidebar li a:hover .text,
.sidebar li a.active .icon,
.sidebar li a.active .text {
    color: white;
}

body.dark .sidebar li a:hover .icon,
body.dark .sidebar li a:hover .text,
body.dark .sidebar li a.active .icon,
body.dark .sidebar li a.active .text {
    color: var(--text-color);
}

.sidebar .menu-bar {
    height: calc(100% - 55px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: scroll;
}

.menu-bar::-webkit-scrollbar {
    display: none;
}

.sidebar .menu-bar .mode {
    border-radius: 12px;
    background-color: var(--primary-color-light);
    position: relative;
    transition: var(--tran-05);
}

.menu-bar .mode .sun-moon {
    height: 50px;
    width: 60px;
}

.mode .sun-moon i {
    position: absolute;
}

.mode .sun-moon i.sun {
    opacity: 0;
}

body.dark .mode .sun-moon i.sun {
    opacity: 1;
}

body.dark .mode .sun-moon i.moon {
    opacity: 0;
}

.menu-bar .bottom-content .toggle-switch {
    position: absolute;
    right: 0;
    height: 100%;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    cursor: pointer;
}

.toggle-switch .switch {
    position: relative;
    height: 22px;
    width: 40px;
    border-radius: 25px;
    background-color: var(--toggle-color);
    transition: var(--tran-05);
}

.switch::before {
    content: '';
    position: absolute;
    height: 15px;
    width: 15px;
    border-radius: 50%;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    background-color: var(--sidebar-color);
    transition: var(--tran-04);
}

body.dark .switch::before {
    left: 20px;
}

.sidebar.close .text {
    opacity: 0;
}

.home {
    position: absolute;
    top: 0;
    top: 0;
    left: 250px;
    height: 100vh;
    width: calc(100% - 250px);
    background-color: transparent;
    transition: var(--tran-05);
    padding: 20px 40px;
    overflow-y: auto;
}

.sidebar.close~.home {
    left: 88px;
    width: calc(100% - 88px);
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.top-bar .hamburger {
    font-size: 28px;
    cursor: pointer;
    color: var(--text-color);
    display: none;
}

.user-info {
    font-weight: 500;
    color: var(--text-muted);
}

.module {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.module.active-module {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-section {
    margin-bottom: 30px;
}

.header-section h1 {
    font-size: 34px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
}

.header-section p {
    color: var(--text-muted);
    font-size: 16px;
}

.filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 150px;
}

.filter-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.filter-group select,
.filter-group input {
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--input-border);
    background-color: var(--input-bg);
    color: var(--text-color);
    font-size: 14px;
    outline: none;
    transition: var(--tran-03);
}

.filter-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23A3AED0%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 12px auto;
}

.filter-group select:focus,
.filter-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 24, 255, 0.1);
}

.filter-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.stat-info h3 {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-info p {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    margin-top: 4px;
}

.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.chart-container {
    height: 350px;
    display: flex;
    flex-direction: column;
}

.chart-container h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
}

.chart-container canvas {
    flex: 1;
    max-height: 100%;
}

.full-width {
    grid-column: 1 / -1;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 8px;
}

.input-group input,
.input-group select {
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--input-border);
    background-color: var(--input-bg);
    color: var(--text-color);
    font-size: 14px;
    outline: none;
    transition: var(--tran-03);
}

.input-group input:focus,
.input-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 24, 255, 0.1);
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    font-size: 20px;
}

.input-with-icon input {
    width: 100%;
    padding-left: 45px;
}

.table-container {
    margin-top: 30px;
    padding: 0;
    overflow: hidden;
}

.table-header {
    padding: 24px;
    border-bottom: 1px solid var(--glass-border);
}

.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.data-table th {
    background-color: var(--table-header-bg);
    color: var(--table-header-text);
    text-align: left;
    padding: 16px 24px;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.data-table th i {
    margin: 0 4px;
    font-size: 16px;
    vertical-align: middle;
    opacity: 0.8;
}

.data-table td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--glass-border);
    font-size: 14px;
    color: var(--text-color);
    white-space: nowrap;
}

.data-table tbody tr {
    transition: var(--tran-03);
}

.data-table tbody tr:hover {
    background-color: var(--primary-color-light);
}

.login-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--body-color);
    display: none;
    /* Oculto por defecto para evitar parpadeos */
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: var(--tran-05);
}

.login-box {
    width: 100%;
    max-width: 450px;
    padding: 40px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header .logo-icon-large {
    font-size: 60px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.login-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
}

.login-header p {
    color: var(--text-muted);
}

.login-btn {
    width: 100%;
    margin-top: 30px;
    padding: 14px;
    font-size: 16px;
}

.error-msg {
    color: var(--danger-color);
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
    min-height: 20px;
}

.login-footer {
    margin-top: 30px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 12px;
}

@media (max-width: 768px) {
    .sidebar {
        left: -250px;
        z-index: 1000;
    }

    .sidebar.mobile-open {
        left: 0;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

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

    .home {
        left: 0 !important;
        width: 100% !important;
    }

    .top-bar .hamburger {
        display: block;
    }

    .charts-grid {
        grid-template-columns: 1fr;
    }
}

.role-badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.role-badge.admin {
    background-color: rgba(238, 93, 80, 0.15);
    color: var(--danger-color);
}

.role-badge.user {
    background-color: rgba(1, 181, 116, 0.15);
    color: var(--success-color);
}

.role-badge.viewer {
    background-color: rgba(67, 24, 255, 0.15);
    color: var(--primary-color);
}

/* MenÃº Flotante */
.floating-nav {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.nav-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    transition: transform 0.3s, background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.nav-toggle:hover {
    transform: scale(1.05);
}

.floating-nav.active .nav-toggle {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    transform: rotate(90deg);
}

.nav-menu {
    position: absolute;
    bottom: 75px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(17, 24, 39, 0.95);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #374151;
    min-width: 210px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.floating-nav.active .nav-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-item {
    color: #e2e8f0;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s, color 0.2s;
    font-size: 0.95rem;
}

.nav-item:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

/* ========================================= */
/* ESTILOS DE PORTAL (index.html)            */
/* ========================================= */
header h1 {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

header p.subtitle {
    font-size: 1.25rem;
    color: var(--text-color);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.portal-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    width: 90%;
    z-index: 1;
    justify-content: center;
    margin: 0 auto;
    margin-top: 40px;
}

.portal-container .card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    width: 100%;
    text-align: center;
    transition: var(--tran-04);
    text-decoration: none;
    color: var(--text-color);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--shadow);
}

.portal-container .card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary-color);
}

.portal-container .icon-container {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1rem;
    transition: var(--tran-04);
}

.portal-container .card-1 .icon-container {
    background: var(--primary-color-light);
    color: var(--primary-color);
}

.portal-container .card-2 .icon-container {
    background: rgba(1, 181, 116, 0.2);
    color: var(--success-color);
}

.portal-container .card h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.portal-container .card p {
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    font-size: 0.9rem;
}

.portal-container .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    color: white;
    transition: var(--tran-03);
}

.portal-container .btn-1 {
    background: var(--primary-color);
}

.portal-container .btn-2 {
    background: var(--success-color);
}

/* Animated bg shapes */
.bg-shape {
    position: absolute;
    filter: blur(100px);
    z-index: -1;
    animation: float 10s infinite alternate;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: rgba(67, 24, 255, 0.4);
    border-radius: 50%;
    top: -100px;
    left: -100px;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: rgba(1, 181, 116, 0.3);
    border-radius: 50%;
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

/* ========================================= */
/* ESTILOS DE FLOTA Y ADMIN                  */
/* ========================================= */
.board-container {
    background-color: var(--panel-color);
    border-radius: 8px;
    margin: 0 40px;
    padding-top: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

body.dark .board-container {
    background-color: #1a2233;
    border-color: rgba(255, 255, 255, 0.05);
}

.board-header {
    display: grid;
    grid-template-columns: 0.8fr 1.1fr 1.8fr 1.2fr 1.2fr 1fr 0.8fr 1fr 1fr 1fr 1fr;
    background-color: transparent;
    padding: 20px 40px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

body.dark .board-header {
    color: #94a3b8;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.board-body {
    height: 450px;
    overflow: hidden;
    position: relative;
    background: transparent;
}

.flight-row {
    display: grid;
    grid-template-columns: 0.8fr 1.1fr 1.8fr 1.2fr 1.2fr 1fr 0.8fr 1fr 1fr 1fr 1fr;
    padding: 0 40px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    height: 90px;
    align-items: center;
    position: absolute;
    width: 100%;
    transition: top 0.8s, opacity 0.8s;
    color: var(--text-color);
    text-align: center;
}

body.dark .flight-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.flight-row:hover {
    background-color: var(--primary-color-light);
}

body.dark .flight-row:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.flight-row div {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 15px;
}

.flight-row div.is-overflowing {
    text-overflow: clip;
}

.ticker-wrap {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
}

.ticker-text {
    flex-shrink: 0;
    white-space: nowrap;
    animation: tickerAnim var(--duration, 5s) linear infinite;
}

@keyframes tickerAnim {
    0% { transform: translateX(0); }
    100% { transform: translateX(var(--shift)); }
}

@keyframes pulse-countdown {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.flight-tiempo {
    font-variant-numeric: tabular-nums;
}

.countdown-cell {
    font-variant-numeric: tabular-nums;
}

.flight-row .flight-time {
    color: var(--text-color);
    font-weight: normal;
}

.flight-row .flight-placa {
    color: var(--text-color);
    font-weight: 600;
}

.flight-row .flight-chofer {
    color: var(--text-color);
    font-weight: 500;
}

.flight-row .flight-origen {
    color: var(--text-color);
    font-weight: normal;
}

.flight-row .flight-destino {
    color: var(--text-color);
    font-weight: normal;
}

.status-loading {
    color: #facc15;
}

.status-ontheway {
    color: var(--primary-color);
}

.status-finished {
    color: var(--success-color);
}

.admin-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
    margin-bottom: 25px;
}

.admin-header-actions h2 {
    color: var(--text-color);
}

.admin-container {
    max-width: 1200px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: 1fr 2.5fr;
    gap: 30px;
    padding: 0 20px;
}

.admin-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    min-width: 0;
}

.admin-panel h2 {
    margin-bottom: 25px;
    color: var(--primary-color);
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.form-group input,
.form-group select,
.status-select {
    padding: 12px;
    border: 1px solid var(--input-border);
    border-radius: 6px;
    background: var(--input-bg);
    color: var(--text-color);
}

.form-group input:focus,
.form-group select:focus,
.status-select:focus {
    border-color: var(--primary-color);
    outline: none;
}

.btn-submit {
    padding: 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
    font-weight: bold;
}

.admin-table-container {
    width: 100%;
    overflow-x: auto;
}

.admin-list table {
    width: 100%;
    border-collapse: collapse;
}

.admin-list th {
    background: var(--table-header-bg);
    color: var(--table-header-text);
    padding: 12px;
    text-align: left;
}

.admin-list td {
    padding: 12px;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-color);
}

.btn-delete,
.btn-delete-all {
    background: var(--danger-color);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.title-container h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-top: 20px;
}

.title-container h2 {
    font-size: 1.2rem;
    color: var(--text-muted);
    text-align: center;
}

.header-actions {
    position: absolute;
    right: 40px;
    top: 40px;
}

.datetime {
    font-size: 1.2rem;
    color: var(--text-color);
    font-weight: bold;
}

.datetime span {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: block;
}

.btn-admin-link {
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
}

.fleet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    width: 100%;
    margin-bottom: 40px;
    border-bottom: 2px solid #1e3a8a;
    background-color: transparent;
}

.fleet-header h1 {
    color: #fbc02d !important;
    font-size: 2.5rem !important;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.fleet-header h2 {
    color: #a0aec0 !important;
    font-size: 1.1rem !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 6px;
}

.fleet-header .header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-admin-link {
    background-color: transparent !important;
    color: #60a5fa !important;
    border: 1px solid #1e3a8a !important;
    padding: 8px 20px !important;
    border-radius: 4px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s;
}

.btn-admin-link:hover {
    background-color: #1e3a8a !important;
    color: white !important;
}

/* Floating Dark Mode Toggle */
.global-dark-toggle {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--panel-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: var(--tran-03);
    border: 1px solid var(--border-color);
}

.global-dark-toggle i {
    font-size: 24px;
    color: var(--text-color);
}

body.dark .global-dark-toggle i.bx-moon {
    display: none;
}

body:not(.dark) .global-dark-toggle i.bx-sun {
    display: none;
}

.global-dark-toggle:hover {
    transform: scale(1.1);
}

/* === SHARED CSS === */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,700;1,9..40,400&display=swap');





/* ── HERO BACKGROUND (applied to all module pages) ── */


/* ── HAMBURGER MENU ── */
.hamburger-btn {
    width: 38px;
    height: 38px;
    background: var(--input-bg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-shrink: 0;
    transition: all 0.2s;
}

.hamburger-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

.hamburger-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.side-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 200;
}

.side-nav-overlay.open {
    display: block;
}

.side-nav {
    position: fixed;
    top: 0;
    left: -280px;
    height: 100%;
    width: 260px;
    background: rgba(17, 30, 48, 0.97);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 201;
    transition: left 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 0 0 1.5rem;
}

.side-nav.open {
    left: 0;
}

.side-nav-header {
    padding: 1.4rem 1.4rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 12px;
}

.side-nav-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
}

.side-nav-title {
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
}

.side-nav-subtitle {
    font-size: 10px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.side-nav-close {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    transition: color 0.2s;
}

.side-nav-close:hover {
    color: white;
}

.side-nav-links {
    flex: 1;
    padding: 1rem 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
}

.side-nav-section {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
    padding: 8px 8px 4px;
    margin-top: 8px;
}

.side-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.side-nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

.side-nav-item.active {
    background: rgba(232, 93, 38, 0.18);
    color: var(--accent);
}

.side-nav-item .nav-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.06);
}

.side-nav-item.active .nav-icon {
    background: rgba(232, 93, 38, 0.2);
}

/* ── HEADER ── */
.app-header {
    background: rgba(17, 30, 48, 0.85);
    backdrop-filter: blur(14px);
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid var(--accent);
    flex-wrap: wrap;
}

.app-header .logo-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-size: 17px;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
}

.app-header h1 {
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 700;
    color: white;
    letter-spacing: 0.3px;
    flex: 1;
}

.app-header .back-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text);
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-family: var(--font-body);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.app-header .back-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.admin-access-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    padding: 7px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-family: var(--font-body);
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.admin-access-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
}

/* ── TABS ── */
.tabs {
    display: flex;
    background: rgba(17, 30, 48, 0.75);
    backdrop-filter: blur(10px);
    padding: 0 1.5rem;
    gap: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tab-btn {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    padding: 10px 22px;
    border: none;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    background: transparent;
    color: var(--muted);
    transition: all 0.2s;
    text-decoration: none;
}

.tab-btn.active {
    background: rgba(244, 243, 240, 0.95);
    color: var(--primary);
    font-weight: 700;
}

/* ── PANELS ── */
.tab-panel {
    display: none;
    padding: 1.5rem;
}

.tab-panel.active {
    display: block;
}

/* ── SEARCH BAR ── */
.search-bar-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.25rem;
}

.search-bar {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0 14px;
    gap: 10px;
    box-shadow: var(--shadow);
}

.search-bar svg {
    color: var(--muted);
    flex-shrink: 0;
}

.search-bar input {
    font-family: var(--font-body);
    font-size: 14px;
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    padding: 10px 0;
    color: var(--text);
}

.search-bar input::placeholder {
    color: var(--muted);
}

/* ── FORM CARD ── */
.form-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4rem;
    margin-bottom: 1.4rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
}

.form-card h3 {
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-card h3 span {
    background: var(--accent);
    width: 3px;
    height: 14px;
    border-radius: 2px;
    display: inline-block;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-body);
    font-size: 14px;
    padding: 9px 13px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface);
    color: var(--text);
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
}

select option {
    background: var(--sidebar-color);
    color: var(--text-color);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(232, 93, 38, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 90px;
}

/* ── BUTTONS ── */
.btn {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 9px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.mod-btn-primary {
    background: var(--accent);
    color: white;
    width: 100%;
    margin-top: 14px;
    font-size: 15px;
    padding: 12px;
    justify-content: center;
}

.mod-btn-primary:hover {
    background: var(--accent-d);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(232, 93, 38, 0.35);
}

.mod-btn-secondary {
    background: var(--primary);
    color: white;
}

.mod-btn-secondary:hover {
    background: var(--primary-d);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-sm {
    font-size: 12px;
    padding: 7px 13px;
}

.btn-danger {
    background: #e24b4a;
    color: white;
}

.btn-danger:hover {
    background: #c63b3a;
}

.btn-success {
    background: var(--green);
    color: white;
}

.btn-success:hover {
    background: var(--green-d);
}

.btn-info {
    background: var(--blue);
    color: white;
}

.btn-info:hover {
    background: var(--blue-d);
}

/* ── ITEM CARDS ── */
.items-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.item-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow);
    animation: slideIn 0.22s ease;
    transition: box-shadow 0.2s;
    backdrop-filter: blur(8px);
}

.item-card:hover {
    box-shadow: var(--shadow-md);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.item-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.item-avatar.icon {
    border-radius: 12px;
    background: var(--accent);
    font-size: 20px;
}

.item-avatar.green {
    background: var(--green);
    border-radius: 12px;
    font-size: 18px;
}

.item-avatar.blue {
    background: var(--blue);
    border-radius: 12px;
    font-size: 18px;
}

.item-avatar.purple {
    background: var(--purple);
    border-radius: 12px;
    font-size: 18px;
}

.item-avatar.orange {
    background: var(--accent);
    border-radius: 12px;
    font-size: 18px;
}

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

.item-info .name {
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-info .detail {
    font-size: 12px;
    color: var(--muted);
    margin-top: 3px;
}

.item-actions {
    display: flex;
    gap: 7px;
    flex-shrink: 0;
    flex-wrap: wrap;
    align-items: center;
}

/* ── BADGES ── */
.badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 20px;
}

.badge-green {
    background: #d4edda;
    color: #155724;
}

.badge-orange {
    background: #fdebd0;
    color: #a04000;
}

.badge-red {
    background: #fde8e8;
    color: #b91c1c;
}

.badge-blue {
    background: #dbeafe;
    color: #1e40af;
}

.badge-gray {
    background: #e5e7eb;
    color: #6b7280;
}

.badge-yellow {
    background: #fef9c3;
    color: #92400e;
}

/* ── MODAL ── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 40, 0.65);
    z-index: 300;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

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

.modal {
    background: var(--card);
    border-radius: 18px;
    padding: 1.75rem;
    width: 100%;
    max-width: 480px;
    animation: popIn 0.25s cubic-bezier(.34, 1.56, .64, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.modal.wide {
    max-width: 640px;
}

.modal.xl {
    max-width: 760px;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.87);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal h3 {
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.25rem;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 1.25rem;
}

.modal-close {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--muted);
}

.modal-close:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.modal-confirm {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 9px;
    background: var(--accent);
    color: white;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
}

.modal-confirm:hover {
    background: var(--accent-d);
}

/* ── INFO MODAL ── */
.info-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.info-modal-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.info-modal-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--muted);
}

.info-modal-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.info-modal-item.full {
    grid-column: 1/-1;
}

/* ── EMPTY STATE ── */
.empty-state {
    text-align: center;
    padding: 3.5rem 1rem;
    color: var(--muted);
    font-size: 14px;
}

.empty-state .big {
    font-size: 46px;
    margin-bottom: 10px;
}

/* ── SECTION HEADER ── */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 8px;
}

.section-title {
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--muted);
}

/* ── HIDDEN ── */
.admin-only {
    display: none !important;
}

body.admin-mode .admin-only {
    display: flex !important;
}

body.admin-mode .admin-only.block {
    display: block !important;
}

body.admin-mode .admin-only.form-card {
    display: block !important;
}

body.admin-mode .admin-only.inline-flex {
    display: inline-flex !important;
}

.operator-only {
    display: none !important;
}

body.operator-mode .operator-only {
    display: flex !important;
}

body.operator-mode .operator-only.block {
    display: block !important;
}

body.operator-mode .operator-only.inline-flex {
    display: inline-flex !important;
}

/* ── QR ── */
#qr-canvas-wrapper {
    display: inline-flex;
    padding: 14px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 1rem;
}

.modal-download {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 9px;
    background: var(--accent);
    color: white;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
}

.modal-download:hover {
    background: var(--accent-d);
}

/* ── PRIORITY INDICATOR ── */
.priority-bar {
    height: 4px;
    border-radius: 2px;
    margin-top: 6px;
    background: #e5e7eb;
    overflow: hidden;
}

.priority-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.5s ease;
}

.priority-critical .priority-bar-fill {
    background: #e24b4a;
}

.priority-warning .priority-bar-fill {
    background: #f59e0b;
}

.priority-ok .priority-bar-fill {
    background: #1e8a4a;
}

/* ── RESPONSIVE ── */
@media (max-width: 520px) {
    .app-header h1 {
        font-size: 13px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .tab-btn {
        padding: 10px 14px;
        font-size: 12px;
    }

    .tab-panel {
        padding: 1rem;
    }

    .info-modal-grid {
        grid-template-columns: 1fr;
    }
}

/* === LOGISTICA CSS === */
/* ── LOGISTICA MODULE SPECIFIC STYLES ── */

/* ── OPERATOR MODE: show forms (no delete) ── */
body.operator-mode .admin-only {
    display: block !important;
}

body.operator-mode .admin-only.form-card {
    display: block !important;
}

.op-access-badge {
    font-size: 11px;
    font-weight: 600;
    background: rgba(30, 138, 74, 0.18);
    border: 1px solid rgba(30, 138, 74, 0.35);
    padding: 3px 10px;
    border-radius: 20px;
    color: var(--green);
    white-space: nowrap;
}

/* Operator Bar */
.operator-bar {
    background: rgba(30, 138, 74, 0.15);
    border-bottom: 1px solid rgba(30, 138, 74, 0.3);
    padding: 8px 1.5rem;
    display: none;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--primary);
}

.operator-bar.visible {
    display: flex;
}

.op-av {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.operator-bar span {
    flex: 1;
}

.operator-bar strong {
    color: var(--green);
}

.operator-bar button {
    background: none;
    border: 1px solid rgba(30, 138, 74, 0.35);
    padding: 4px 12px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 12px;
    color: var(--green);
    transition: all 0.2s;
}

.operator-bar button:hover {
    background: rgba(30, 138, 74, 0.1);
}

/* Operator User Grid */
.op-user-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
    margin-bottom: 0.5rem;
}

.op-user-card {
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 0.8rem 0.6rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.op-user-card:hover {
    border-color: var(--green);
    background: rgba(30, 138, 74, 0.04);
}

.op-user-card.active {
    border-color: var(--green);
    background: rgba(30, 138, 74, 0.08);
}

.op-uav {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    margin: 0 auto 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: white;
    overflow: hidden;
}

.op-uav img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.op-uname {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.2;
}

.op-ucargo {
    font-size: 10px;
    color: var(--muted);
}

/* License expiry warning */
.lic-warning {
    font-size: 11px;
    color: #a04000;
    font-weight: 600;
}

.lic-expired {
    font-size: 11px;
    color: #b91c1c;
    font-weight: 700;
}

/* === MANTENIMIENTO CSS === */
/* ── MANTENIMIENTO MODULE STYLES ── */

/* ── OPERATOR MODE: show maintenance forms (no delete) ── */
body.operator-mode .admin-only {
    display: block !important;
}

body.operator-mode .admin-only.form-card {
    display: block !important;
}

.op-access-badge {
    font-size: 11px;
    font-weight: 600;
    background: rgba(30, 138, 74, 0.18);
    border: 1px solid rgba(30, 138, 74, 0.35);
    padding: 3px 10px;
    border-radius: 20px;
    color: var(--green);
    white-space: nowrap;
}

/* Fleet Info Banner */
.fleet-info-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(21, 101, 192, 0.08);
    border: 1px solid rgba(21, 101, 192, 0.2);
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--primary);
    margin-bottom: 1.25rem;
    color: white;
}

.fleet-info-banner span:first-child {
    font-size: 18px;
    flex-shrink: 0;
}

/* Filter Chips */
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1rem;
}

.chip {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1.5px solid var(--border);
    background: var(--input-bg);
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s;
}

.chip:hover {
    border-color: var(--primary);
    color: var(--text);
}

.chip.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* Operator Bar */
.operator-bar {
    background: rgba(30, 138, 74, 0.15);
    border-bottom: 1px solid rgba(30, 138, 74, 0.3);
    padding: 8px 1.5rem;
    display: none;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--primary);
}

.operator-bar.visible {
    display: flex;
}

.op-av {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.operator-bar span {
    flex: 1;
}

.operator-bar strong {
    color: var(--green);
}

.operator-bar button {
    background: none;
    border: 1px solid rgba(30, 138, 74, 0.35);
    padding: 4px 12px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 12px;
    color: var(--green);
    transition: all 0.2s;
}

.operator-bar button:hover {
    background: rgba(30, 138, 74, 0.1);
}

/* Priority Legend */
.priority-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 1rem;
    padding: 10px 14px;
    background: var(--card);
    border-radius: 10px;
    border: 1px solid var(--border);
}

.pl-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
}

.pl-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.pl-dot.red {
    background: #e24b4a;
}

.pl-dot.orange {
    background: #f59e0b;
}

.pl-dot.green {
    background: #1e8a4a;
}

/* Oil Change Card Priority Accent */
.item-card.priority-critical {
    border-left: 4px solid #e24b4a;
}

.item-card.priority-warning {
    border-left: 4px solid #f59e0b;
}

.item-card.priority-ok {
    border-left: 4px solid #1e8a4a;
}

/* Km Progress Bar */
.km-progress-wrap {
    margin-top: 6px;
}

.km-progress-bar {
    height: 5px;
    border-radius: 3px;
    background: #e5e7eb;
    overflow: hidden;
    margin-top: 3px;
}

.km-progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s ease;
}

.priority-critical .km-progress-fill {
    background: #e24b4a;
}

.priority-warning .km-progress-fill {
    background: #f59e0b;
}

.priority-ok .km-progress-fill {
    background: #1e8a4a;
}

/* Operator User Grid */
.op-user-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
    margin-bottom: 0.5rem;
}

.op-user-card {
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 0.8rem 0.6rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.op-user-card:hover {
    border-color: var(--green);
    background: rgba(30, 138, 74, 0.04);
}

.op-user-card.active {
    border-color: var(--green);
    background: rgba(30, 138, 74, 0.08);
}

.op-uav {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    margin: 0 auto 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: white;
    overflow: hidden;
}

.op-uav img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.op-uname {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.2;
}

.op-ucargo {
    font-size: 10px;
    color: var(--muted);
}

/* ── KILOMETRAJE TAB ── */
.km-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 1.5rem;
}

.km-card {
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: box-shadow 0.2s;
}

.km-card:hover {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.10);
}

.km-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.km-card-icon {
    font-size: 22px;
}

.km-card-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.km-card-placa {
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.km-card-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -1px;
    line-height: 1;
}

.km-card-value span {
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
}

.km-card-updated {
    font-size: 10px;
    color: var(--muted);
}

.km-history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 0.75rem;
}

.km-history-header h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

/* estado buttons */
.estado-btn {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 7px;
    cursor: pointer;
    border: 1.5px solid var(--border);
    background: transparent;
    color: var(--muted);
    transition: all 0.2s;
    white-space: nowrap;
}

.estado-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* === REPORTES CSS === */
/* ── REPORTES MODULE STYLES ── */

.login-gate {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 380px;
    width: 100%;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.login-card h2 {
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 6px;
}

.login-card p {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 1.75rem;
}

.user-select-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 1.5rem;
}

.user-select-card {
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 1rem 0.75rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.user-select-card:hover {
    border-color: var(--accent);
    background: rgba(232, 93, 38, 0.04);
}

.user-select-card.active {
    border-color: var(--accent);
    background: rgba(232, 93, 38, 0.07);
}

.usc-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 700;
    color: white;
    overflow: hidden;
}

.usc-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.usc-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
}

.usc-cargo {
    font-size: 11px;
    color: var(--muted);
}

.pass-input-wrap {
    margin-bottom: 1rem;
}

/* Report card */
.report-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.4rem;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s;
    animation: slideIn 0.22s ease;
    backdrop-filter: blur(8px);
}

.report-card:hover {
    box-shadow: var(--shadow-md);
}

.report-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 0.75rem;
}

.report-num {
    background: var(--primary);
    color: white;
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.report-title {
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 700;
    flex: 1;
}

.report-meta {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.report-meta .author-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3px 10px 3px 6px;
}

.author-chip .mini-av {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    color: white;
    overflow: hidden;
    flex-shrink: 0;
}

.author-chip .mini-av img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.report-body {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.report-body.collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.report-files {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0.75rem;
}

.file-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
}

.file-chip:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.report-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.mod-badge {
    font-size: 11px;
    background: rgba(232, 93, 38, 0.1);
    color: var(--accent);
    border: 1px solid rgba(232, 93, 38, 0.2);
    border-radius: 6px;
    padding: 3px 8px;
    font-weight: 600;
}

/* New report form */
.file-drop-zone {
    border: 2px dashed var(--border);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--muted);
    font-size: 13px;
}

.file-drop-zone:hover,
.file-drop-zone.dragover {
    border-color: var(--accent);
    background: rgba(232, 93, 38, 0.04);
    color: var(--accent);
}

.file-drop-zone input {
    display: none;
}

.attached-files {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.attached-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 12px;
}

.attached-chip button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted);
    padding: 0;
    font-size: 14px;
    line-height: 1;
}

.attached-chip button:hover {
    color: #e24b4a;
}

/* User bar */
.user-bar {
    background: rgba(26, 46, 74, 0.1);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 1.5rem;
    display: none;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: white;
}

.user-bar.visible {
    display: flex;
}

.user-bar .ub-av {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: white;
    overflow: hidden;
    flex-shrink: 0;
}

.user-bar .ub-av img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-bar span {
    flex: 1;
    color: var(--text);
}

.user-bar strong {
    color: white;
}

.user-bar button {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 12px;
    color: var(--text);
    transition: all 0.2s;
}

.user-bar button:hover {
    border-color: white;
    color: white;
}

/* Tabs inside main content */
.main-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    padding: 0 1.5rem;
    gap: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.main-tabs .tab-btn {
    color: var(--muted);
}

.main-tabs .tab-btn.active {
    background: rgba(244, 243, 240, 0.95);
    color: var(--primary);
    font-weight: 700;
}

@media(max-width:520px) {
    .user-select-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* === INDEX CSS === */
/* -- HERO BG -- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* -- HAMBURGER -- */
.hamburger-btn {
    width: 40px;
    height: 40px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-shrink: 0;
    transition: all 0.2s;
}

.hamburger-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
}

.hamburger-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
}

/* -- SIDE NAV -- */
.side-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 200;
}

.side-nav-overlay.open {
    display: block;
}

.side-nav {
    position: fixed;
    top: 0;
    left: -280px;
    height: 100%;
    width: 260px;
    background: var(--sidebar-color);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 201;
    transition: left 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 0 0 1.5rem;
}

.side-nav.open {
    left: 0;
}

.side-nav-header {
    padding: 1.4rem 1.4rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 12px;
}

.side-nav-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
}

.side-nav-title {
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
}

.side-nav-subtitle {
    font-size: 10px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.side-nav-close {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    transition: color 0.2s;
}

.side-nav-close:hover {
    color: white;
}

.side-nav-links {
    flex: 1;
    padding: 1rem 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.side-nav-section {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
    padding: 8px 8px 4px;
    margin-top: 8px;
}

.side-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.side-nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

.side-nav-item.active {
    background: rgba(232, 93, 38, 0.18);
    color: var(--accent);
}

.side-nav-item .nav-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

/* -- NAVBAR -- */
.navbar {
    padding: 1.2rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo {
    width: 44px;
    height: 44px;
    background: transparent;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 800;
    color: white;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-text .company {
    font-family: var(--font-head);
    font-size: 17px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.3px;
    line-height: 1.1;
}

.brand-text .subtitle {
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    font-weight: 500;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-btn {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text);
    padding: 8px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-family: var(--font-body);
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.nav-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.nav-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* -- HERO TITLE -- */
.hero-title-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 2rem 1rem;
    text-align: center;
}

.hero-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
    content: '';
    flex: 1;
    max-width: 60px;
    height: 1px;
    background: var(--accent);
    opacity: 0.5;
}

.hero-h1 {
    font-family: var(--font-head);
    font-size: clamp(32px, 5vw, 58px);
    font-weight: 800;
    color: var(--text);
    line-height: 1.05;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.hero-h1 em {
    color: var(--accent);
    font-style: normal;
}

.hero-desc {
    font-size: 15px;
    color: var(--muted);
    max-width: 460px;
    line-height: 1.6;
    margin-bottom: 3rem;
}

/* -- MODULE GRID (3 modules now) -- */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    max-width: 960px;
    width: 100%;
    padding: 0 2rem 3rem;
    margin: 0 auto;
}

.module-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.75rem 1.5rem 3.5rem;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    transition: all 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.module-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 18px;
}

.module-card:hover {
    transform: translateY(-4px) scale(1.015);
    border-color: var(--muted);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.module-card:hover::before {
    opacity: 1;
}

.mod-logistics {
    --mc: #e85d26;
}

.mod-maintenance {
    --mc: #1e8a4a;
}

.mod-reports {
    --mc: #6a1e99;
}

.module-card::before {
    background: radial-gradient(ellipse at top left, color-mix(in srgb, var(--mc) 15%, transparent), transparent 60%);
}

.module-card:hover {
    border-color: color-mix(in srgb, var(--mc) 40%, transparent);
}

.module-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: color-mix(in srgb, var(--mc) 18%, transparent);
    border: 1px solid color-mix(in srgb, var(--mc) 30%, transparent);
}

.module-name {
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.3px;
    margin-bottom: 5px;
    white-space: nowrap;
}

.module-desc {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
}

.module-arrow {
    position: absolute;
    right: 50%;
    bottom: 1rem;
    transform: translateX(50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--mc) 20%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mc);
    font-size: 16px;
    transition: transform 0.2s;
}

.module-card:hover .module-arrow {
    transform: translateX(3px);
}

/* -- ADMIN PANEL -- */
#admin-panel {
    display: none;
    position: relative;
    z-index: 2;
    background: var(--card);
    border-top: 1px solid var(--border);
    padding: 2rem;
}

#admin-panel.open {
    display: block;
}

.admin-panel-inner {
    max-width: 860px;
    margin: 0 auto;
}

.admin-section-title {
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-section-title span {
    background: var(--accent);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 1px;
}

.user-form {
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.user-form h4 {
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
    margin-bottom: 1rem;
}

.uf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.uf-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.uf-group label {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.uf-group input,
.uf-group select {
    font-family: var(--font-body);
    font-size: 14px;
    padding: 9px 13px;
    border: 1px solid var(--input-border);
    border-radius: 9px;
    background: var(--input-bg);
    color: var(--text);
    outline: none;
    transition: border 0.2s;
}

.uf-group input:focus,
.uf-group select:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
}

.uf-group input::placeholder {
    color: var(--muted);
}

.uf-generated {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(232, 93, 38, 0.1);
    border: 1px solid rgba(232, 93, 38, 0.25);
    border-radius: 10px;
    display: none;
}

.uf-generated.visible {
    display: block;
}

.uf-generated p {
    font-size: 13px;
    color: var(--text);
    margin-bottom: 4px;
    opacity: 0.8;
}

.uf-generated strong {
    color: var(--text);
}

.btn-admin {
    margin-top: 14px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    padding: 12px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    text-align: center;
}

.btn-admin-accent {
    background: var(--accent);
    color: white;
}

.btn-admin-accent:hover {
    background: #c94e1e;
}

.btn-admin-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-admin-outline:hover {
    border-color: white;
    color: white;
}

/* User list */
.user-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 1rem;
}

.user-item {
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.9rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.user-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    position: relative;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-avatar .avatar-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 16px;
}

.user-avatar:hover .avatar-overlay {
    opacity: 1;
}

.user-info {
    flex: 1;
    min-width: 160px;
}

.user-info .uname {
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.user-info .uemail {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

.user-creds {
    font-size: 11px;
    color: var(--muted);
    text-align: right;
    line-height: 1.5;
}

/* Permissions section */
.user-perms {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 160px;
}

.perm-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--muted);
}

.perm-toggle {
    position: relative;
    width: 32px;
    height: 18px;
    display: inline-block;
    cursor: pointer;
    flex-shrink: 0;
}

.perm-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.perm-slider {
    position: absolute;
    inset: 0;
    background: var(--input-border);
    border-radius: 18px;
    transition: background 0.2s;
}

.perm-slider::before {
    content: '';
    position: absolute;
    height: 12px;
    width: 12px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s;
}

.perm-toggle input:checked+.perm-slider {
    background: #1e8a4a;
}

.perm-toggle input:checked+.perm-slider::before {
    transform: translateX(14px);
}

.user-del-btn {
    background: none;
    border: 1px solid rgba(255, 80, 80, 0.25);
    color: rgba(255, 100, 100, 0.6);
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.user-del-btn:hover {
    border-color: #e24b4a;
    color: #e24b4a;
    background: rgba(226, 75, 74, 0.08);
}

/* -- LOGIN MODAL -- */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 40, 0.75);
    z-index: 400;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

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

.modal-box {
    background: var(--card);
    border-radius: 20px;
    padding: 2rem;
    width: 100%;
    max-width: 360px;
    animation: popIn 0.25s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.85);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-box h3 {
    font-family: var(--font-head);
    font-size: 19px;
    font-weight: 800;
    color: #1a2e4a;
    margin-bottom: 1.5rem;
    text-align: center;
}

.mf-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.mf-group label {
    font-size: 11px;
    font-weight: 600;
    color: #6b7a8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mf-group input {
    font-family: var(--font-body);
    font-size: 14px;
    padding: 10px 13px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9px;
    outline: none;
    transition: border 0.2s;
    background: var(--input-bg);
    color: white;
}

.mf-group input:focus {
    border-color: #e85d26;
}

.modal-btns {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.mbtn {
    flex: 1;
    padding: 11px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.mbtn-cancel {
    background: #f4f3f0;
    color: #6b7a8d;
}

.mbtn-cancel:hover {
    background: #e8e7e3;
}

.mbtn-enter {
    background: #e85d26;
    color: white;
}

.mbtn-enter:hover {
    background: #c94e1e;
}

#avatar-file-input {
    display: none;
}

@media (max-width: 700px) {
    .modules-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 0 1rem 2rem;
    }

    .navbar {
        padding: 1rem;
    }

    .hero-h1 {
        font-size: 26px;
    }

    .hero-desc {
        font-size: 13px;
    }

    .hero-title-area {
        padding: 1.5rem 1rem 0.5rem;
    }
}

@media (min-width: 701px) and (max-width: 900px) {
    .modules-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================= */
/* PANTALLA DE CARGA                         */
/* ========================================= */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--body-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-logo {
    width: 150px;
    height: auto;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.8;
    }
}

/* Autofill Fix */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px var(--input-bg) inset !important;
    -webkit-text-fill-color: white !important;
}

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&amp;family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,700;1,9..40,400&amp;display=swap');

:root {
    --body-color: #0b1437;
    --sidebar-color: rgba(17, 28, 68, 0.85);
    --primary-color: #e85d26;
    --primary-color-light: rgba(232, 93, 38, 0.15);
    --toggle-color: #fff;
    --text-color: #ffffff;
    --text-muted: #a3aed0;
    --glass-bg: rgba(17, 28, 68, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --shadow: 0px 18px 40px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.3);
    --table-header-bg: rgba(17, 28, 68, 0.95);
    --table-header-text: #ffffff;
    --input-bg: rgba(11, 20, 55, 0.7);
    --input-border: rgba(255, 255, 255, 0.12);

    --primary: var(--primary-color);
    --primary-d: #c94e1e;
    --accent: #e85d26;
    --accent-d: #c94e1e;
    --green: #01B574;
    --green-d: #166037;
    --blue: #4318FF;
    --blue-d: #0d47a1;
    --purple: #6a1e99;
    --surface: var(--sidebar-color);
    --card: var(--glass-bg);
    --border: var(--input-border);
    --text: var(--text-color);
    --muted: var(--text-muted);
    --radius: 16px;
    --font-head: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;

    --danger-color: #EE5D50;
    --success-color: #01B574;
    --tran-03: all 0.3s ease;
    --tran-04: all 0.4s ease;
    --tran-05: all 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
}

body {
    min-height: 100vh;
    background-color: var(--body-color);
    transition: var(--tran-05);
    color: var(--text-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 24px;
    transition: var(--tran-03);
}

.glass-panel:hover {
    box-shadow: 0px 24px 48px rgba(0, 0, 0, 0.45);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 14px;
    font-family: var(--font-body);
    font-weight: 700;
    cursor: pointer;
    transition: var(--tran-03);
    box-shadow: 0px 6px 16px rgba(232, 93, 38, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--primary-d);
    box-shadow: 0px 8px 24px rgba(232, 93, 38, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 24px;
    border-radius: 14px;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: var(--tran-03);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-color);
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 260px;
    padding: 14px 18px;
    background: var(--sidebar-color);
    backdrop-filter: blur(16px);
    border-right: 1px solid var(--glass-border);
    transition: var(--tran-05);
    z-index: 100;
    box-shadow: var(--shadow);
}

.sidebar.close {
    width: 88px;
}

.sidebar header {
    position: relative;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar header .image-text {
    display: flex;
    align-items: center;
}

.sidebar header .logo-text {
    display: flex;
    flex-direction: column;
}

header .image-text .name {
    margin-top: 2px;
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 800;
    color: var(--text-color);
    letter-spacing: -0.5px;
}

header .image-text .profession {
    font-size: 13px;
    margin-top: -2px;
    color: var(--text-muted);
    font-weight: 500;
    display: block;
}

.sidebar header .image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar header .logo-icon {
    font-size: 40px;
    color: var(--primary-color);
    min-width: 60px;
    border-radius: 8px;
}

.sidebar header .toggle {
    position: absolute;
    top: 50%;
    right: -25px;
    transform: translateY(-50%) rotate(180deg);
    height: 25px;
    width: 25px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    transition: var(--tran-05);
    box-shadow: 0 4px 10px rgba(232, 93, 38, 0.4);
}

body.dark .sidebar header .toggle {
    color: var(--text-color);
}

.sidebar.close .toggle {
    transform: translateY(-50%) rotate(0deg);
}

.sidebar .menu {
    margin-top: 30px;
}

.sidebar li {
    height: 50px;
    list-style: none;
    display: flex;
    align-items: center;
    margin-top: 8px;
}

.sidebar li .icon {
    min-width: 60px;
    border-radius: 6px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.sidebar li .icon,
.sidebar li .text {
    color: var(--text-muted);
    transition: var(--tran-03);
}

.sidebar li .text {
    font-weight: 500;
}

.sidebar li a {
    list-style: none;
    height: 100%;
    background-color: transparent;
    display: flex;
    align-items: center;
    height: 100%;
    width: 100%;
    border-radius: 14px;
    text-decoration: none;
    transition: var(--tran-03);
}

.sidebar li a:hover,
.sidebar li a.active {
    background-color: var(--primary-color-light);
    border: 1px solid rgba(232, 93, 38, 0.2);
}

.sidebar li a:hover .icon,
.sidebar li a:hover .text,
.sidebar li a.active .icon,
.sidebar li a.active .text {
    color: var(--primary-color);
    font-weight: 600;
}

.sidebar .menu-bar {
    height: calc(100% - 55px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: scroll;
}

.menu-bar::-webkit-scrollbar {
    display: none;
}

.sidebar .menu-bar .mode {
    border-radius: 14px;
    background-color: rgba(255, 255, 255, 0.05);
    position: relative;
    transition: var(--tran-05);
}

.menu-bar .mode .sun-moon {
    height: 50px;
    width: 60px;
}

.mode .sun-moon i {
    position: absolute;
}

.mode .sun-moon i.sun {
    opacity: 0;
}

body.dark .mode .sun-moon i.sun {
    opacity: 1;
}

body.dark .mode .sun-moon i.moon {
    opacity: 0;
}

.menu-bar .bottom-content .toggle-switch {
    position: absolute;
    right: 0;
    height: 100%;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    cursor: pointer;
}

.toggle-switch .switch {
    position: relative;
    height: 22px;
    width: 40px;
    border-radius: 25px;
    background-color: rgba(255, 255, 255, 0.2);
    transition: var(--tran-05);
}

.switch::before {
    content: '';
    position: absolute;
    height: 15px;
    width: 15px;
    border-radius: 50%;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    background-color: white;
    transition: var(--tran-04);
}

body.dark .switch::before {
    left: 20px;
}

.sidebar.close .text {
    opacity: 0;
}

.home {
    position: absolute;
    top: 0;
    top: 0;
    left: 260px;
    height: 100vh;
    width: calc(100% - 260px);
    background-color: transparent;
    transition: var(--tran-05);
    padding: 30px 50px;
    overflow-y: auto;
}

.sidebar.close~.home {
    left: 88px;
    width: calc(100% - 88px);
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.top-bar .hamburger {
    font-size: 28px;
    cursor: pointer;
    color: var(--text-color);
    display: none;
}

.user-info {
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--glass-bg);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.module {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.module.active-module {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-section {
    margin-bottom: 35px;
}

.header-section h1 {
    font-size: 38px;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.header-section p {
    color: var(--text-muted);
    font-size: 16px;
    font-weight: 500;
}

.filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 35px;
    align-items: flex-end;
    background: var(--glass-bg);
    padding: 24px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
}

.filter-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 180px;
}

.filter-group label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.filter-group select,
.filter-group input {
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid var(--input-border);
    background-color: var(--input-bg);
    color: var(--text-color);
    font-size: 15px;
    font-weight: 500;
    outline: none;
    transition: var(--tran-03);
}

.filter-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23ffffff%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 18px top 50%;
    background-size: 12px auto;
}

.filter-group select:focus,
.filter-group input:focus {
    border-color: var(--primary-color);
    background-color: rgba(11, 20, 55, 0.9);
    box-shadow: 0 0 0 4px rgba(232, 93, 38, 0.15);
}

.filter-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 35px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow);
    transition: var(--tran-03);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 255, 255, 0.15);
}

.stat-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background-color: var(--primary-color-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    border: 1px solid rgba(232, 93, 38, 0.2);
}

.stat-info h3 {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-info p {
    font-family: var(--font-head);
    font-size: 32px;
    font-weight: 800;
    color: var(--text-color);
    margin-top: 6px;
    line-height: 1;
}

.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.chart-container {
    height: 380px;
    display: flex;
    flex-direction: column;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.chart-container h3 {
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
}

.chart-container canvas {
    flex: 1;
    max-height: 100%;
}

.full-width {
    grid-column: 1 / -1;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-group input,
.input-group select {
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid var(--input-border);
    background-color: var(--input-bg);
    color: var(--text-color);
    font-size: 15px;
    outline: none;
    transition: var(--tran-03);
}

.input-group input:focus,
.input-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(232, 93, 38, 0.15);
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 18px;
    color: var(--text-muted);
    font-size: 20px;
}

.input-with-icon input {
    width: 100%;
    padding-left: 50px;
}

.table-container {
    margin-top: 35px;
    padding: 0;
    overflow: hidden;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.table-header {
    padding: 24px;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(17, 28, 68, 0.4);
}

.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.data-table th {
    background-color: var(--table-header-bg);
    color: var(--table-header-text);
    text-align: left;
    padding: 18px 24px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.data-table th i {
    margin: 0 6px;
    font-size: 16px;
    vertical-align: middle;
    opacity: 0.6;
}

.data-table td {
    padding: 18px 24px;
    border-bottom: 1px solid var(--glass-border);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color);
    white-space: nowrap;
}

.data-table tbody tr {
    transition: var(--tran-03);
}

.data-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.login-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--body-color);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: var(--tran-05);
}

.login-box {
    width: 100%;
    max-width: 480px;
    padding: 48px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header .logo-icon-large {
    font-size: 64px;
    color: var(--primary-color);
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(232, 93, 38, 0.4));
}

.login-header h2 {
    font-family: var(--font-head);
    font-size: 32px;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 10px;
}

.login-header p {
    font-size: 15px;
    color: var(--text-muted);
}

.login-btn {
    width: 100%;
    margin-top: 35px;
    padding: 16px;
    font-size: 16px;
    border-radius: 14px;
}

.error-msg {
    color: var(--danger-color);
    font-size: 14px;
    font-weight: 600;
    margin-top: 12px;
    text-align: center;
    min-height: 20px;
}

.login-footer {
    margin-top: 40px;
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .sidebar {
        left: -260px;
        z-index: 1000;
    }

    .sidebar.mobile-open {
        left: 0;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        z-index: 999;
    }

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

    .home {
        left: 0 !important;
        width: 100% !important;
        padding: 20px;
    }

    .top-bar .hamburger {
        display: block;
    }

    .charts-grid {
        grid-template-columns: 1fr;
    }
}

.role-badge {
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-badge.admin {
    background-color: rgba(238, 93, 80, 0.15);
    color: var(--danger-color);
    border: 1px solid rgba(238, 93, 80, 0.3);
}

.role-badge.user {
    background-color: rgba(1, 181, 116, 0.15);
    color: var(--success-color);
    border: 1px solid rgba(1, 181, 116, 0.3);
}

.role-badge.viewer {
    background-color: rgba(232, 93, 38, 0.15);
    color: var(--primary-color);
    border: 1px solid rgba(232, 93, 38, 0.3);
}

/* Menú Flotante */
.floating-nav {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.nav-toggle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    font-size: 26px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(232, 93, 38, 0.4);
    transition: transform 0.3s, background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.nav-toggle:hover {
    transform: scale(1.05);
    background: var(--primary-d);
}

.floating-nav.active .nav-toggle {
    transform: rotate(90deg);
}

.nav-menu {
    position: absolute;
    bottom: 85px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--glass-bg);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    min-width: 240px;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(16px);
}

.floating-nav.active .nav-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-item {
    color: var(--text-color);
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.2s, color 0.2s;
    font-size: 15px;
}

.nav-item:hover {
    background: var(--primary-color-light);
    color: var(--primary-color);
}

/* ========================================= */
/* ESTILOS DE PORTAL (index.html)            */
/* ========================================= */
header h1 {
    font-family: var(--font-head);
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: -1.5px;
}

header p.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.6;
}

.portal-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    width: 90%;
    z-index: 1;
    justify-content: center;
    margin: 0 auto;
    margin-top: 60px;
}

.portal-container .card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    width: 100%;
    text-align: center;
    transition: var(--tran-04);
    text-decoration: none;
    color: var(--text-color);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--shadow);
}

.portal-container .card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.portal-container .icon-container {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    transition: var(--tran-04);
}

.portal-container .card-1 .icon-container {
    background: var(--primary-color-light);
    color: var(--primary-color);
    border: 1px solid rgba(232, 93, 38, 0.2);
}

.portal-container .card-2 .icon-container {
    background: rgba(1, 181, 116, 0.15);
    color: var(--success-color);
    border: 1px solid rgba(1, 181, 116, 0.2);
}

.portal-container .card h2 {
    font-family: var(--font-head);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.portal-container .card p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
    font-size: 1rem;
}

.portal-container .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    transition: var(--tran-03);
}

.portal-container .btn-1 {
    background: var(--primary-color);
    box-shadow: 0 6px 16px rgba(232, 93, 38, 0.3);
}

.portal-container .btn-2 {
    background: var(--success-color);
    box-shadow: 0 6px 16px rgba(1, 181, 116, 0.3);
}

/* Animated bg shapes */
.bg-shape {
    position: absolute;
    filter: blur(120px);
    z-index: -1;
    animation: float 12s infinite alternate ease-in-out;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: rgba(232, 93, 38, 0.2);
    border-radius: 50%;
    top: -150px;
    left: -150px;
}

.shape-2 {
    width: 600px;
    height: 600px;
    background: rgba(1, 181, 116, 0.15);
    border-radius: 50%;
    bottom: -200px;
    right: -150px;
    animation-delay: -6s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(60px, 60px) scale(1.15);
    }
}

/* ========================================= */
/* ESTILOS DE FLOTA Y ADMIN                  */
/* ========================================= */
.board-container {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    margin: 0 40px;
    padding-top: 10px;
    box-shadow: var(--shadow);
    border: 1px solid var(--glass-border);
}

.board-header {
    display: grid;
    grid-template-columns: 0.8fr 1.1fr 1.8fr 1.2fr 1.2fr 1fr 0.8fr 1fr 1fr 1fr 1fr;
    background-color: rgba(17, 28, 68, 0.4);
    padding: 24px 40px;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 1px solid var(--glass-border);
    text-align: center;
}

.board-body {
    height: 480px;
    overflow: hidden;
    position: relative;
    background: transparent;
}

.flight-row {
    display: grid;
    grid-template-columns: 0.8fr 1.1fr 1.8fr 1.2fr 1.2fr 1fr 0.8fr 1fr 1fr 1fr 1fr;
    padding: 0 40px;
    border-bottom: 1px solid var(--glass-border);
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    height: 96px;
    align-items: center;
    position: absolute;
    width: 100%;
    transition: top 0.8s, opacity 0.8s;
    color: var(--text-color);
    text-align: center;
}

.flight-row:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.flight-row div {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 15px;
}

.status-loading {
    color: #facc15;
}

.status-ontheway {
    color: var(--primary-color);
}

.status-finished {
    color: var(--success-color);
}

.admin-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.admin-header-actions h2 {
    font-family: var(--font-head);
    color: var(--text-color);
    font-size: 24px;
}

.admin-container {
    max-width: 1200px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: 1fr 2.5fr;
    gap: 30px;
    padding: 0 20px;
}

.admin-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.admin-panel h2 {
    font-family: var(--font-head);
    margin-bottom: 25px;
    color: var(--primary-color);
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 15px;
    font-size: 20px;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.status-select {
    padding: 14px 16px;
    border: 1px solid var(--input-border);
    border-radius: 12px;
    background: var(--input-bg);
    color: var(--text-color);
    font-family: var(--font-body);
}

.form-group select {
    cursor: pointer;
    overflow-y: auto;
}

.form-group input:focus,
.form-group select:focus,
.status-select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(232, 93, 38, 0.15);
}

/* ─── CUSTOM SELECT DROPDOWN ─── */
.custom-select {
    position: relative;
    width: 100%;
    user-select: none;
}

.custom-select__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border: 1px solid var(--input-border);
    border-radius: 12px;
    background: var(--input-bg);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.custom-select__trigger:hover {
    border-color: var(--primary-color);
}

.custom-select.open .custom-select__trigger {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(232, 93, 38, 0.15);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.custom-select__text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.custom-select__text.placeholder {
    color: #64748b;
}

.custom-select__arrow {
    font-size: 20px;
    color: #94a3b8;
    transition: transform 0.25s ease;
    flex-shrink: 0;
    margin-left: 8px;
}

.custom-select.open .custom-select__arrow {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.custom-select__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0f1a2e;
    border: 1px solid var(--primary-color);
    border-top: none;
    border-radius: 0 0 12px 12px;
    z-index: 100;
    display: none;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.custom-select.open .custom-select__dropdown {
    display: block;
    animation: dropdownSlide 0.2s ease;
}

@keyframes dropdownSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.custom-select__search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.15);
}

.custom-select__search-wrap i {
    color: #64748b;
    font-size: 16px;
    flex-shrink: 0;
}

.custom-select__search {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-color, #e2e8f0);
    font-family: var(--font-body);
    font-size: 13px;
    padding: 0;
}

.custom-select__search::placeholder {
    color: #64748b;
}

.custom-select__options {
    list-style: none;
    padding: 6px 0;
    margin: 0;
    max-height: 340px;
    overflow-y: auto;
}

.custom-select__options::-webkit-scrollbar {
    width: 6px;
}

.custom-select__options::-webkit-scrollbar-track {
    background: transparent;
}

.custom-select__options::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.custom-select__options::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

.custom-select__option {
    padding: 11px 16px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-color, #e2e8f0);
    transition: background 0.15s, color 0.15s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-select__option:hover {
    background: rgba(67, 24, 255, 0.15);
    color: #fff;
}

.custom-select__option.selected {
    background: rgba(67, 24, 255, 0.25);
    color: var(--primary-color);
    font-weight: 700;
}

.custom-select__option.selected::before {
    content: '✓';
    font-weight: 700;
    color: var(--primary-color);
}

.custom-select__option--empty {
    padding: 16px;
    text-align: center;
    color: #64748b;
    font-size: 13px;
    font-style: italic;
    cursor: default;
}

.btn-submit {
    padding: 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    margin-top: 15px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 15px;
    transition: var(--tran-03);
}

.btn-submit:hover {
    background: var(--primary-d);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(232, 93, 38, 0.3);
}

.admin-list table {
    width: 100%;
    border-collapse: collapse;
}

.admin-list th {
    background: rgba(17, 28, 68, 0.6);
    color: var(--table-header-text);
    padding: 16px;
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.admin-list td {
    padding: 16px;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-color);
    font-size: 14px;
}

.btn-delete,
.btn-delete-all {
    background: rgba(238, 93, 80, 0.15);
    color: var(--danger-color);
    border: 1px solid rgba(238, 93, 80, 0.3);
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--tran-03);
}

.btn-delete:hover,
.btn-delete-all:hover {
    background: var(--danger-color);
    color: white;
}

.title-container h1 {
    font-family: var(--font-head);
    font-size: 3rem;
    color: var(--primary-color);
    text-align: center;
    margin-top: 30px;
    letter-spacing: -1px;
}

.title-container h2 {
    font-family: var(--font-body);
    font-size: 1.3rem;
    color: var(--text-muted);
    text-align: center;
    font-weight: 500;
}

.header-actions {
    position: absolute;
    right: 40px;
    top: 40px;
}

.datetime {
    font-family: var(--font-head);
    font-size: 1.4rem;
    color: var(--text-color);
    font-weight: 700;
}

.datetime span {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-muted);
    display: block;
    font-weight: 500;
}

.btn-admin-link {
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 12px;
    text-decoration: none;
    display: inline-block;
    margin-top: 15px;
    font-weight: 600;
    transition: var(--tran-03);
}

.btn-admin-link:hover {
    background: var(--primary-d);
    transform: translateY(-2px);
}

.fleet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px;
    width: 100%;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--glass-border);
    background-color: transparent;
}

.fleet-header h1 {
    color: var(--primary-color) !important;
    font-family: var(--font-head);
    font-size: 2.8rem !important;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.fleet-header h2 {
    color: var(--text-muted) !important;
    font-family: var(--font-body);
    font-size: 1.2rem !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.global-dark-toggle {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: var(--tran-03);
    border: 1px solid var(--glass-border);
}

.global-dark-toggle i {
    font-size: 24px;
    color: var(--text-color);
}

.global-dark-toggle:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* === SHARED CSS === */

/* ── HAMBURGER MENU ── */
.hamburger-btn {
    width: 44px;
    height: 44px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
    transition: all 0.2s;
}

.hamburger-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

.hamburger-btn:hover {
    background: var(--primary-color-light);
    border-color: var(--primary-color);
}

/* ── MODAL ── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(11, 20, 55, 0.8);
    backdrop-filter: blur(8px);
    z-index: 300;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

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

.modal {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    width: 100%;
    max-width: 500px;
    animation: popIn 0.3s cubic-bezier(.34, 1.56, .64, 1);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal h3 {
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

/* ========================================= */
/* PANTALLA DE CARGA                         */
/* ========================================= */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--body-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-logo {
    width: 150px;
    height: auto;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(0.95);
        opacity: 0.8;
    }
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px var(--input-bg) inset !important;
    -webkit-text-fill-color: white !important;
}
