:root {
    --transport-red: #d71920;
    --transport-red-dark: #a90f17;
    --transport-graphite: #202326;
    --transport-graphite-2: #2f3438;
    --transport-asphalt: #4c5156;
    --transport-line: #f5c542;
    --transport-green: #00a85a;
    --transport-ink: #101820;
    --transport-muted: #667085;
    --transport-bg: #eef2f5;
    --transport-card: #ffffff;
    --transport-border: #dde4ea;
}

html {
    --tw-ring-color: rgba(215, 25, 32, 0.25);
    overflow-x: hidden;
}

body {
    background:
        linear-gradient(135deg, rgba(16, 24, 32, 0.035) 25%, transparent 25%) 0 0 / 28px 28px,
        linear-gradient(135deg, transparent 75%, rgba(16, 24, 32, 0.035) 75%) 0 0 / 28px 28px,
        var(--transport-bg) !important;
    color: var(--transport-ink);
    overflow-x: hidden;
}

.app-menu {
    background: var(--transport-graphite) !important;
    border-right-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 10px 0 30px rgba(16, 24, 32, 0.15);
}

.app-menu::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, var(--transport-red), var(--transport-line), var(--transport-green));
    pointer-events: none;
}

.app-menu .h-header {
    background: #ffffff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.app-menu .text-slate-800,
.app-menu .text-vertical-menu-item,
.app-menu [class*="text-vertical-menu"] {
    color: #d7dde3 !important;
}

.app-menu li[class*="uppercase"] {
    color: #fffbf2 !important;
    letter-spacing: 0.04em;
    opacity: 0.8;
}

#navbar-nav a {
    border-radius: 6px !important;
}

#navbar-nav a:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

#navbar-nav a.active,
#navbar-nav a[class*="active"] {
    background: linear-gradient(90deg, rgba(215, 25, 32, 0.95), rgba(169, 15, 23, 0.95)) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 22px rgba(215, 25, 32, 0.24);
}

#navbar-nav a.active svg,
#navbar-nav a[class*="active"] svg,
#navbar-nav a:hover svg {
    color: #000000 !important;
    stroke: #000000 !important;
    fill: transparent !important;
}

#navbar-nav a svg,
#navbar-nav a i[data-lucide] {
    color: #000000 !important;
    stroke: #000000 !important;
    fill: transparent !important;
}

#page-topbar .bg-topbar,
header .bg-topbar {
    background: rgba(255, 255, 255, 0.96) !important;
    border-bottom: 1px solid var(--transport-border) !important;
}

#page-topbar .shadow-md {
    box-shadow: 0 12px 30px rgba(16, 24, 32, 0.08) !important;
}

.card {
    background: var(--transport-card) !important;
    border: 1px solid var(--transport-border) !important;
    border-radius: 8px !important;
    box-shadow: 0 14px 30px rgba(16, 24, 32, 0.08) !important;
    max-width: 100%;
}

.card-body {
    min-width: 0;
    position: relative;
}

.card-body > h6:first-child,
.card h6.text-15 {
    color: var(--transport-ink);
    font-weight: 700;
}

.btn,
button,
a.btn {
    border-radius: 6px !important;
}

.bg-custom-500,
.btn.bg-custom-500,
.checked\:bg-custom-500:checked {
    background-color: var(--transport-red) !important;
}

.border-custom-500,
.btn.border-custom-500,
.checked\:border-custom-500:checked {
    border-color: var(--transport-red) !important;
}

.hover\:bg-custom-600:hover,
.btn.hover\:bg-custom-600:hover,
.focus\:bg-custom-600:focus,
.active\:bg-custom-600:active {
    background-color: var(--transport-red-dark) !important;
}

.hover\:border-custom-600:hover,
.btn.hover\:border-custom-600:hover,
.focus\:border-custom-600:focus,
.active\:border-custom-600:active {
    border-color: var(--transport-red-dark) !important;
}

.text-custom-500,
.hover\:text-custom-500:hover,
a.text-custom-500 {
    color: var(--transport-red) !important;
}

.bg-custom-100 {
    background-color: rgba(215, 25, 32, 0.1) !important;
}

.form-input,
.form-control,
select,
textarea {
    border-radius: 6px !important;
    border-color: #cfd8e3 !important;
}

.form-input:focus,
.form-control:focus,
select:focus,
textarea:focus {
    border-color: var(--transport-red) !important;
    box-shadow: 0 0 0 3px rgba(215, 25, 32, 0.12) !important;
}

table thead,
.dataTable thead {
    background: var(--transport-graphite-2) !important;
    color: #ffffff !important;
}

table thead th,
.dataTable thead th {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    font-weight: 700 !important;
}

tbody tr:hover {
    background: #fff8e6 !important;
}

.list-table-scroll {
    max-width: calc(100% + 2.5rem);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.list-table-scroll table,
.list-table-scroll .dataTable {
    min-width: 100%;
    white-space: nowrap;
}

#driversTable {
    min-width: 1380px;
}

#vehiclesTable {
    min-width: 980px;
}

#alternativePagination {
    min-width: 920px;
}

.list-table-scroll .dataTables_wrapper {
    max-width: 100%;
}

.list-table-scroll #driversTable_wrapper {
    min-width: 1380px;
}

.list-table-scroll #vehiclesTable_wrapper {
    min-width: 980px;
}

.list-table-scroll #alternativePagination_wrapper {
    min-width: 920px;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    padding: 1rem 1.25rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--transport-red) !important;
    border-color: var(--transport-red) !important;
    color: #ffffff !important;
}

.text-slate-500 {
    color: var(--transport-muted) !important;
}

.bg-green-100 {
    background-color: rgba(0, 168, 90, 0.12) !important;
}

.text-green-500,
.text-green-600 {
    color: var(--transport-green) !important;
}

.bg-yellow-100 {
    background-color: rgba(245, 197, 66, 0.18) !important;
}

.text-yellow-500,
.text-yellow-600 {
    color: #ad7900 !important;
}

.bg-red-100 {
    background-color: rgba(215, 25, 32, 0.12) !important;
}

.text-red-500,
.text-red-600 {
    color: var(--transport-red) !important;
}

.modal,
[modal-center] > div {
    border-radius: 8px !important;
    border: 1px solid var(--transport-border);
}

body.flex.items-center.justify-center {
    background:
        linear-gradient(110deg, rgba(16, 24, 32, 0.86), rgba(16, 24, 32, 0.74)),
        repeating-linear-gradient(115deg, transparent 0 42px, rgba(245, 197, 66, 0.42) 42px 48px, transparent 48px 96px),
        linear-gradient(135deg, #202326, #4c5156) !important;
}

body.flex.items-center.justify-center > .relative {
    width: min(94vw, 1040px);
}

body.flex.items-center.justify-center > .relative::before {
    content: "GESTION OPERACIONAL DE TRANSPORTE";
    display: block;
    color: #ffffff;
    font-size: clamp(1.6rem, 3vw, 2.8rem);
    font-weight: 800;
    max-width: 660px;
    margin: 0 auto 24px;
    text-align: center;
    text-transform: uppercase;
}

body.flex.items-center.justify-center > .relative::after {
    content: "Conductores, camiones, examenes, guias y reportes en un solo panel.";
    display: block;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1rem;
    max-width: 560px;
    margin: -16px auto 24px;
    text-align: center;
}

body.flex.items-center.justify-center .card {
    width: min(100%, 520px) !important;
    margin: 0 auto !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34) !important;
}

body.flex.items-center.justify-center .absolute svg {
    display: none !important;
}

body.flex.items-center.justify-center .relative.text-center.my-9,
body.flex.items-center.justify-center .flex.flex-wrap.justify-center.gap-2 {
    display: none !important;
}

footer,
.footer {
    background: #ffffff !important;
    border-top: 1px solid var(--transport-border);
}

.transport-dashboard-hero {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background:
        linear-gradient(115deg, rgba(215, 25, 32, 0.96) 0 38%, rgba(32, 35, 38, 0.94) 38% 100%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 45%);
    box-shadow: 0 20px 44px rgba(16, 24, 32, 0.18);
}

.transport-dashboard-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(115deg, transparent 0 54px, rgba(255, 255, 255, 0.08) 54px 58px, transparent 58px 116px),
        radial-gradient(circle at 78% 25%, rgba(0, 168, 90, 0.28), transparent 24%),
        radial-gradient(circle at 92% 90%, rgba(245, 197, 66, 0.22), transparent 28%);
    pointer-events: none;
}

.transport-hero-content,
.transport-hero-metrics {
    position: relative;
    z-index: 1;
}

.transport-hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
    gap: 2rem;
    align-items: stretch;
    min-height: 300px;
    padding: 2.5rem;
}

.transport-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 680px;
    color: #ffffff;
}

.transport-hero-kicker {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 0.85rem;
    padding: 0.35rem 0.75rem;
    border-left: 4px solid var(--transport-line);
    background: rgba(16, 24, 32, 0.2);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.transport-hero-copy h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 900;
    line-height: 0.96;
    letter-spacing: 0;
    max-width: 760px;
}

.transport-hero-copy p {
    margin-top: 1.1rem;
    max-width: 600px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1rem;
    line-height: 1.65;
}

.transport-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.transport-hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 42px;
    padding: 0.7rem 1rem;
    border-radius: 4px;
    background: #ffffff;
    color: var(--transport-red);
    font-weight: 800;
    text-transform: uppercase;
    transition: transform 0.15s ease, background 0.15s ease;
}

.transport-hero-button:hover {
    transform: translateY(-1px);
    background: #fff8e6;
    color: var(--transport-red-dark);
}

.transport-hero-button.secondary {
    background: var(--transport-green);
    color: #ffffff;
}

.transport-hero-button.secondary:hover {
    background: #008c4c;
    color: #ffffff;
}

.transport-hero-visual {
    position: relative;
    min-height: 250px;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0)),
        repeating-linear-gradient(90deg, transparent 0 52px, rgba(255, 255, 255, 0.08) 52px 54px, transparent 54px 108px);
}

.transport-hero-logo {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 92px;
    padding: 0.45rem;
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

.transport-hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.transport-road-line {
    position: absolute;
    right: -18%;
    bottom: 2.5rem;
    width: 120%;
    height: 86px;
    transform: skewX(-22deg);
    border-top: 4px solid rgba(255, 255, 255, 0.65);
    border-bottom: 4px solid rgba(255, 255, 255, 0.22);
    background:
        linear-gradient(90deg, transparent 0 16%, var(--transport-line) 16% 22%, transparent 22% 40%, var(--transport-line) 40% 46%, transparent 46% 64%, var(--transport-line) 64% 70%, transparent 70%),
        rgba(0, 0, 0, 0.18);
}

.transport-truck-icon {
    position: absolute;
    right: 15%;
    bottom: 4.4rem;
    width: 110px;
    height: 110px;
    color: #ffffff;
    filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.35));
    stroke-width: 1.4;
}

.transport-hero-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(16, 24, 32, 0.72);
}

.transport-hero-metrics > div {
    min-height: 88px;
    padding: 1rem 1.25rem;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.transport-hero-metrics strong {
    display: block;
    color: #ffffff;
    font-size: 1.65rem;
    line-height: 1;
}

.transport-hero-metrics span {
    display: block;
    margin-top: 0.45rem;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.84rem;
}

@media (max-width: 768px) {
    .card {
        border-radius: 6px !important;
    }

    table {
        font-size: 0.86rem;
    }

    .transport-hero-content {
        grid-template-columns: 1fr;
        padding: 1.35rem;
    }

    .transport-hero-visual {
        min-height: 170px;
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.18);
    }

    .transport-hero-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
