body {
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

.glass-nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glass-nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.custom-shadow {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hero-gradient {
    background: linear-gradient(135deg, #FAFAFA 0%, #F8F9FA 100%);
    position: relative;
    overflow: hidden;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23000" opacity="0.02"/><circle cx="75" cy="75" r="1" fill="%23000" opacity="0.02"/><circle cx="50" cy="10" r="1" fill="%23000" opacity="0.02"/><circle cx="10" cy="90" r="1" fill="%23000" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.floating-element {
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(2) {
    animation-delay: -2s;
}

.floating-element:nth-child(3) {
    animation-delay: -4s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.timeline-line {
    position: relative;
}

.timeline-line::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, #2E7D8A, transparent);
    transform: translateY(-50%);
}

.timeline-line:last-child::after {
    display: none;
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(249, 115, 22, 0.3);
    }

    50% {
        box-shadow: 0 0 30px rgba(249, 115, 22, 0.5);
    }
}

.gradient-text {
    background: linear-gradient(135deg, #2E7D8A, #0891B2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

@media (max-width: 768px) {
    .timeline-line::after {
        display: none;
    }

    .parallax-bg {
        background-attachment: scroll;
    }
}

.intersection-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.intersection-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

.swal2-actions button {
    color: black;
    border: 1px solid black;
}


/* searchbar
TRIPLY SEARCHBAR
*/

/* --- CORES E VARIÁVEIS --- */
:root {
    --primary-teal: #0d9488;
    --primary-orange: #f97316;
    --bg-disabled: #e5e7eb;
}

/* --- CUSTOMIZAÇÃO LITEPICKR --- */
.litepicker {
    font-family: inherit !important;
    border-radius: 0.75rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: none;
    z-index: 99999 !important;
}

.litepicker .container__months {
    box-shadow: none;
    background-color: #fff;
    border-radius: 0.75rem;
}

.litepicker .container__months .month-item-header {
    background-color: var(--primary-teal);
    color: white;
    padding: 15px 10px;
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
}

.litepicker .container__months .month-item-header strong {
    font-weight: 700;
    font-size: 1.1rem;
}

.litepicker .container__months .month-item-header .button-previous-month,
.litepicker .container__months .month-item-header .button-next-month {
    cursor: pointer;
    fill: white;
}

.litepicker .container__days .day-item {
    color: #374151;
    font-weight: 500;
}

.litepicker .container__days .day-item:hover {
    color: var(--primary-teal);
    box-shadow: inset 0 0 0 1px var(--primary-teal);
}

.litepicker .container__days .day-item.is-start-date,
.litepicker .container__days .day-item.is-end-date,
.litepicker .container__days .day-item.is-start-date:hover,
.litepicker .container__days .day-item.is-end-date:hover {
    background-color: var(--primary-teal);
    color: white;
    box-shadow: none;
}

.litepicker .container__days .day-item.is-in-range {
    background-color: #ccfbf1;
    /* Teal-100 */
    color: #115e59;
}

.litepicker .container__days .day-item.is-today {
    color: var(--primary-teal);
}

/* Tooltip nativo do Litepicker */
.litepicker .container__tooltip {
    background-color: #1f2937;
    color: white;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 100000;
}

.litepicker .container__tooltip::before {
    border-top-color: #1f2937;
}

/* --- LAYOUT GERAL --- */
.card-compact input[type="text"],
.card-compact select,
.passenger-btn-trigger,
.btn-search-flight {
    height: 3rem;
    font-size: 0.95rem;
}

/* Tom Select Ajustes */
.ts-control {
    height: 3rem !important;
    border-radius: 0.5rem;
    padding-left: 0.75rem !important;
    display: flex !important;
    align-items: center !important;
    border-color: #e5e7eb;
    background-color: #fff;
}

.ts-control>input {
    margin: 0 !important;
    padding: 0 !important;
    height: 100% !important;
    display: inline-block !important;
}

.ts-control .item {
    display: flex;
    align-items: center;
    margin: 0 !important;
}

.ts-wrapper.focus .ts-control {
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.2);
}

.ts-dropdown {
    z-index: 99999 !important;
    border-radius: .5rem;
    overflow: hidden;
    margin-top: 4px;
}

/* Ícones */
.input-icon-container {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 10;
}

/* Ícones laranjas para manter o estilo "marca" */
.input-icon-container i {
    color: var(--primary-orange);
    opacity: 0.8;
}

.input-with-icon {
    padding-left: 3rem !important;
}

/* Cards & Popovers */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(15, 23, 42, 0.04);
    position: relative;
    z-index: 10;
}

.passenger-popover {
    position: absolute;
    left: 0;
    top: 110%;
    background: white;
    border-radius: .5rem;
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.2);
    padding: 1rem;
    width: 100%;
    min-width: 280px;
    z-index: 100;
    border: 1px solid #f3f4f6;
}

.counter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.counter-row:last-child {
    border-bottom: none;
}

.counter-controls button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: white;
    color: #374151;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.counter-controls button:hover:not(:disabled) {
    background-color: var(--primary-teal);
    color: white;
    border-color: var(--primary-teal);
}

.counter-controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.counter-value {
    min-width: 28px;
    text-align: center;
    font-weight: 600;
}

/* Toggles (Teal) */
.segmented {
    display: inline-flex;
    border-radius: .5rem;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    background: #f9fafb;
    padding: 2px;
}

.segmented button {
    padding: .35rem .8rem;
    font-size: .85rem;
    border: 0;
    background: transparent;
    cursor: pointer;
    border-radius: .3rem;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.2s;
}

.segmented button.active {
    background: white;
    color: var(--primary-teal);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    font-weight: 700;
}

/* Botão Pesquisar (Laranja - CTA) */
.btn-search-gradient {
    background: linear-gradient(to right, #f97316, #ea580c);
}

.btn-search-gradient:hover {
    background: linear-gradient(to right, #ea580c, #c2410c);
}

/* Focus inputs genérico */
input:focus {
    outline: none;
    border-color: var(--primary-teal);
    ring: 2px;
    ring-color: rgba(13, 148, 136, 0.2);
}

#searchbar {
    z-index: 999;
    position: relative;
}



/* =========================================
TRIPLY DARK MODE - GLOBAL OVERRIDE
========================================= */

/* 1. Fundo e Estrutura Principal */
body.dark-page body,
body.dark-page html {
    background-color: #0f172a !important;
    /* Slate 900 */
    color: #e2e8f0 !important;
    /* Slate 200 */
}

/* Sobrescreve o gradiente claro padrão */
body.dark-page .gradient-bg,
body.dark-page .bg-gray-50,
body.dark-page .bg-gray-100 {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%) !important;
}

/* 2. Glass Cards (Cards com efeito de vidro) */
body.dark-page .glass-card,
body.dark-page .bg-white,
body.dark-page .bg-white\/60,
body.dark-page .bg-white\/50,
body.dark-page .bg-white\/70,
body.dark-page .bg-white\/90 {
    background: rgba(30, 41, 59, 0.7) !important;
    /* Slate 800 com transparência */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #e2e8f0 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5) !important;
}

/* Navegação */
body.dark-page .glass-nav,
body.dark-page .glass-nav.scrolled,
body.dark-page #mobile-menu {
    background: rgba(15, 23, 42, 0.95) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* 3. Tipografia (Inversão de Cores) */
body.dark-page h1,
body.dark-page h2,
body.dark-page h3,
body.dark-page h4,
body.dark-page h5,
body.dark-page h6,
body.dark-page .text-gray-900,
body.dark-page .text-gray-800,
body.dark-page .text-gray-700 {
    color: #f1f5f9 !important;
    /* Slate 100 (Quase branco) */
}

body.dark-page .text-gray-600,
body.dark-page .text-gray-500 {
    color: #94a3b8 !important;
    /* Slate 400 (Cinza claro) */
}

/* Ajuste de links e ícones */
body.dark-page .text-teal-600 {
    color: #2dd4bf !important;
}

/* Teal mais brilhante para contraste */
body.dark-page .text-teal-700 {
    color: #5eead4 !important;
}

body.dark-page .text-blue-600 {
    color: #60a5fa !important;
}

/* 4. Formulários e Inputs */
body.dark-page input,
body.dark-page select,
body.dark-page textarea,
body.dark-page .form-control,
body.dark-page .bg_input {
    background-color: #1e293b !important;
    /* Slate 800 */
    border: 1px solid #475569 !important;
    /* Slate 600 */
    color: #fff !important;
}

body.dark-page input::placeholder {
    color: #64748b !important;
}

body.dark-page input:focus,
body.dark-page select:focus,
body.dark-page textarea:focus {
    border-color: #2dd4bf !important;
    /* Teal */
    ring-color: #2dd4bf !important;
    box-shadow: 0 0 0 2px rgba(45, 212, 191, 0.2) !important;
}

/* Selectable Cards (Escolha de Plano/Data) */
body.dark-page .selectable-card {
    background-color: #1e293b !important;
    border-color: #475569 !important;
}

body.dark-page .selectable-card:hover {
    background-color: #334155 !important;
}

body.dark-page .selectable-card.selected {
    background-color: rgba(45, 212, 191, 0.15) !important;
    /* Teal tint */
    border-color: #2dd4bf !important;
}

/* Tom Select (Dropdowns de Aeroportos) */
body.dark-page .ts-control,
body.dark-page .ts-dropdown {
    background-color: #1e293b !important;
    border-color: #475569 !important;
    color: #fff !important;
}

body.dark-page .ts-dropdown .option {
    color: #fff !important;
}

body.dark-page .ts-dropdown .option:hover,
body.dark-page .ts-dropdown .active {
    background-color: #334155 !important;
}

body.dark-page .custom-dropdown-item span {
    color: #94a3b8 !important;
    /* País em cinza claro */
}

/* 5. Tabelas e Listas */
body.dark-page thead tr {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

body.dark-page tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

body.dark-page td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #cbd5e1 !important;
}

body.dark-page th {
    color: #f8fafc !important;
}

/* Paginação */
body.dark-page .pagination li a,
body.dark-page .pagination li span {
    background: #1e293b !important;
    border-color: #475569 !important;
    color: #fff !important;
}

body.dark-page .pagination li.active span {
    background: #0d9488 !important;
    /* Teal 600 */
    border-color: #0d9488 !important;
}

body.dark-page .pagination li.disabled span {
    background: #0f172a !important;
    color: #475569 !important;
}

/* 6. Badges e Status (Ajuste de contraste) */
/* Verde */
body.dark-page .bg-green-100 {
    background-color: rgba(20, 83, 45, 0.4) !important;
}

body.dark-page .text-green-800,
body.dark-page .text-green-700,
body.dark-page .text-green-600 {
    color: #86efac !important;
}

/* Green 300 */

/* Vermelho */
body.dark-page .bg-red-100,
body.dark-page .bg-red-50 {
    background-color: rgba(127, 29, 29, 0.4) !important;
}

body.dark-page .text-red-800,
body.dark-page .text-red-700,
body.dark-page .text-red-600 {
    color: #fca5a5 !important;
}

/* Red 300 */

/* Amarelo/Laranja */
body.dark-page .bg-yellow-100,
body.dark-page .bg-yellow-50,
body.dark-page .bg-orange-100 {
    background-color: rgba(120, 53, 15, 0.4) !important;
}

body.dark-page .text-yellow-800,
body.dark-page .text-yellow-700,
body.dark-page .text-orange-800,
body.dark-page .text-orange-600 {
    color: #fdba74 !important;
}

/* Orange 300 */

/* Roxo */
body.dark-page .bg-purple-100 {
    background-color: rgba(88, 28, 135, 0.4) !important;
}

body.dark-page .text-purple-800 {
    color: #d8b4fe !important;
}

/* Purple 300 */

/* Azul */
body.dark-page .bg-blue-100,
body.dark-page .bg-blue-50 {
    background-color: rgba(30, 58, 138, 0.4) !important;
}

body.dark-page .text-blue-800,
body.dark-page .text-blue-700 {
    color: #93c5fd !important;
}

/* Blue 300 */

/* Cinza */
body.dark-page .bg-gray-100,
body.dark-page .bg-gray-50 {
    background-color: #334155 !important;
}

/* Teal/Ciano (específico para planos) */
body.dark-page .bg-teal-50 {
    background-color: rgba(19, 78, 74, 0.3) !important;
}

body.dark-page .border-teal-200 {
    border-color: #115e59 !important;
}

/* 7. Elementos Específicos Triply */

/* Wallet: Accordion/Details */
body.dark-page details>summary:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Subscriptions: Rotas */
body.dark-page details.bg-white\/60 {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

/* Orders: Linhas verticais e borders */
body.dark-page .border-gray-100,
body.dark-page .border-gray-200,
body.dark-page .border-gray-300 {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Modais */
body.dark-page .modal .bg-white,
body.dark-page #modal-content {
    background-color: #1e293b !important;
}

/* Botões "Brancos" viram escuros */
body.dark-page .bg-white.hover\:bg-gray-100 {
    background-color: #334155 !important;
    color: #fff !important;
    border-color: #475569 !important;
}

body.dark-page .bg-white.hover\:bg-gray-100:hover {
    background-color: #475569 !important;
}

/* Ícones */
body.dark-page i.fas,
body.dark-page i.fa-solid,
body.dark-page i.fa-brands,
body.dark-page i.far {
    /* Garante que ícones escuros fiquem claros se não tiverem cor específica */
    color: inherit;
}

body.dark-page .text-gray-400 {
    color: #64748b !important;
}

/* Footer (já era escuro, apenas ajustes finos) */
body.dark-page footer.bg-gray-900 {
    background-color: #020617 !important;
    /* Slate 950 */
    border-top: 1px solid #1e293b;
}

/* Ajuste para o SweetAlert2 */
body.dark-page .swal2-popup {
    background: #1e293b !important;
    color: #f1f5f9 !important;
}

body.dark-page .swal2-actions button {
    color: white;
    border: 1px solid white;
}

body.dark-page .swal2-title,
body.dark-page .swal2-content {
    color: #f1f5f9 !important;
}

/* .ts-wrapper.single.dropdown-active .ts-control .item {
color: white;
} */

body.dark-page .ts-wrapper.single:not(.input-active),
body.dark-page .ts-wrapper.single:not(.input-active) .ts-control {
    background: transparent !important;
}

/* body.dark-page .ts-wrapper.single:not(.input-active) .ts-control .item {
    color: black !important;
} */

body.dark-page .ts-wrapper .ts-control input {
    border: none !important;
}

body.dark-page .text-gray-800 {
    color: #a9a9a9 !important;
}

body.dark-page .bg-white\/30 {
    background-color: #ffffff1a;
}

body.dark-page .hover\:bg-gray-50:hover {
    background-color: rgb(80 80 80);
}

body.dark-page #registerPage,
body.dark-page #loginPage {
    background-color: #000c20 !important;
}

body.dark-page input {
    color-scheme: dark;
}

body.dark-page #loading-text {
    color: white;
}


body .only-dark {
    display: none;
}

body.dark-page .only-dark {
    display: block;
}

body.dark-page .only-light {
    display: none;
}

body.light-page .only-dark {
    display: none;
}