/**
 * Estilos do frontend - Jadsontur
 * 
 * @package Jadsontur
 * @author Jadson Tur - https://uebsites.com.br
 * @since 1.1.0
 * @lastmodified 2026-02-22 19:42:00
 */

/* === TEMA CLARO (padrao) === */
:root,
[data-jadsontur-theme="light"] {
    --jadson-primary: #2563eb;
    --jadson-secondary: #10b981;
    --jadson-danger: #ef4444;
    --jadson-warning: #f59e0b;
    --jadson-success: #10b981;
    --jadson-bg: #f9fafb;
    --jadson-bg-card: #ffffff;
    --jadson-bg-input: #ffffff;
    --jadson-bg-sidebar: #ffffff;
    --jadson-bg-hover: #f3f4f6;
    --jadson-border: #e5e7eb;
    --jadson-border-input: #d1d5db;
    --jadson-text: #111827;
    --jadson-text-secondary: #6b7280;
    --jadson-text-muted: #9ca3af;
    --jadson-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --jadson-shadow-lg: 0 10px 25px rgba(0,0,0,0.08);
    --jadson-gray-50: #f9fafb;
    --jadson-gray-100: #f3f4f6;
    --jadson-gray-200: #e5e7eb;
    --jadson-gray-300: #d1d5db;
    --jadson-gray-400: #9ca3af;
    --jadson-gray-500: #6b7280;
    --jadson-gray-600: #4b5563;
    --jadson-gray-700: #374151;
    --jadson-gray-800: #1f2937;
    --jadson-gray-900: #111827;
}

/* === TEMA ESCURO === */
[data-jadsontur-theme="dark"] {
    --jadson-bg: #0f172a;
    --jadson-bg-card: #1e293b;
    --jadson-bg-input: #334155;
    --jadson-bg-sidebar: #1e293b;
    --jadson-bg-hover: #334155;
    --jadson-border: #334155;
    --jadson-border-input: #475569;
    --jadson-text: #f1f5f9;
    --jadson-text-secondary: #94a3b8;
    --jadson-text-muted: #64748b;
    --jadson-shadow: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
    --jadson-shadow-lg: 0 10px 25px rgba(0,0,0,0.4);
    --jadson-gray-50: #1e293b;
    --jadson-gray-100: #334155;
    --jadson-gray-200: #475569;
    --jadson-gray-300: #64748b;
    --jadson-gray-400: #94a3b8;
    --jadson-gray-500: #94a3b8;
    --jadson-gray-600: #cbd5e1;
    --jadson-gray-700: #e2e8f0;
    --jadson-gray-800: #f1f5f9;
    --jadson-gray-900: #f8fafc;
}

/* === FULL-WIDTH: Força largura total em todas as páginas do plugin === */
.jadsontur-dashboard,
.jadsontur-login-wrap {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}

/* === BASE === */
.jadsontur-dashboard,
.jadsontur-login-wrap {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.jadsontur-dashboard *,
.jadsontur-login-wrap * {
    box-sizing: border-box;
}

.jadsontur-dashboard img,
.jadsontur-login-wrap img {
    max-width: 100%;
    height: auto;
}

.jadsontur-dashboard button,
.jadsontur-login-wrap button {
    cursor: pointer;
    transition: all 0.2s ease;
}

.jadsontur-dashboard button:disabled,
.jadsontur-login-wrap button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.jadsontur-dashboard input:focus,
.jadsontur-dashboard select:focus,
.jadsontur-dashboard textarea:focus,
.jadsontur-login-wrap input:focus,
.jadsontur-login-wrap select:focus {
    outline: none;
}

.jadsontur-dashboard .btn-loading,
.jadsontur-login-wrap .btn-loading {
    display: none;
}

.jadsontur-dashboard .is-loading .btn-text,
.jadsontur-login-wrap .is-loading .btn-text {
    opacity: 0;
}

.jadsontur-dashboard .is-loading .btn-loading,
.jadsontur-login-wrap .is-loading .btn-loading {
    display: inline-block;
}

/* === DARK MODE - COMPONENTES === */
[data-jadsontur-theme="dark"] .jadsontur-dashboard,
[data-jadsontur-theme="dark"] .jadsontur-login-wrap {
    color: var(--jadson-text);
}

[data-jadsontur-theme="dark"] .bg-white,
[data-jadsontur-theme="dark"] .jadsontur-card {
    background-color: var(--jadson-bg-card) !important;
    color: var(--jadson-text);
}

[data-jadsontur-theme="dark"] .bg-gray-50,
[data-jadsontur-theme="dark"] .bg-gray-100 {
    background-color: var(--jadson-bg) !important;
}

[data-jadsontur-theme="dark"] .text-gray-900 {
    color: var(--jadson-text) !important;
}

[data-jadsontur-theme="dark"] .text-gray-800 {
    color: var(--jadson-gray-800) !important;
}

[data-jadsontur-theme="dark"] .text-gray-700 {
    color: var(--jadson-gray-700) !important;
}

[data-jadsontur-theme="dark"] .text-gray-600 {
    color: var(--jadson-text-secondary) !important;
}

[data-jadsontur-theme="dark"] .text-gray-500 {
    color: var(--jadson-text-muted) !important;
}

[data-jadsontur-theme="dark"] .text-gray-400 {
    color: var(--jadson-text-muted) !important;
}

[data-jadsontur-theme="dark"] .border-gray-200,
[data-jadsontur-theme="dark"] .border-gray-300 {
    border-color: var(--jadson-border) !important;
}

[data-jadsontur-theme="dark"] .border-b,
[data-jadsontur-theme="dark"] .border-t {
    border-color: var(--jadson-border) !important;
}

[data-jadsontur-theme="dark"] .divide-gray-200 > :not([hidden]) ~ :not([hidden]) {
    border-color: var(--jadson-border) !important;
}

[data-jadsontur-theme="dark"] input,
[data-jadsontur-theme="dark"] select,
[data-jadsontur-theme="dark"] textarea {
    background-color: var(--jadson-bg-input) !important;
    border-color: var(--jadson-border-input) !important;
    color: var(--jadson-text) !important;
}

[data-jadsontur-theme="dark"] input::placeholder,
[data-jadsontur-theme="dark"] select::placeholder,
[data-jadsontur-theme="dark"] textarea::placeholder {
    color: var(--jadson-text-muted) !important;
}

[data-jadsontur-theme="dark"] input:disabled {
    background-color: var(--jadson-bg-hover) !important;
    color: var(--jadson-text-muted) !important;
}

[data-jadsontur-theme="dark"] .shadow-sm,
[data-jadsontur-theme="dark"] .shadow-lg,
[data-jadsontur-theme="dark"] .shadow-xl {
    box-shadow: var(--jadson-shadow) !important;
}

[data-jadsontur-theme="dark"] .hover\:bg-gray-50:hover,
[data-jadsontur-theme="dark"] .hover\:bg-gray-100:hover {
    background-color: var(--jadson-bg-hover) !important;
}

[data-jadsontur-theme="dark"] thead.bg-gray-50,
[data-jadsontur-theme="dark"] thead .bg-gray-50 {
    background-color: var(--jadson-bg) !important;
}

/* === SIDEBAR DARK === */
[data-jadsontur-theme="dark"] #sidebar {
    background-color: var(--jadson-bg-sidebar) !important;
    box-shadow: var(--jadson-shadow-lg);
}

[data-jadsontur-theme="dark"] #sidebar-toggle {
    background-color: var(--jadson-bg-card) !important;
    color: var(--jadson-text);
}

/* === LOGIN DARK === */
[data-jadsontur-theme="dark"] .jadsontur-login-wrap {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
}

[data-jadsontur-theme="dark"] .jadsontur-login-card {
    background-color: var(--jadson-bg-card) !important;
    box-shadow: var(--jadson-shadow-lg);
}

/* === SWITCH DE TEMA (on/off) === */
.jadsontur-switch {
    flex-shrink: 0;
}

.jadsontur-switch-track {
    position: relative;
    width: 44px;
    height: 24px;
    background: #d1d5db;
    border-radius: 12px;
    transition: background 0.3s ease;
    cursor: pointer;
}

.jadsontur-switch-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2), 0 1px 2px rgba(0,0,0,0.1);
}

/* Estado ativo (dark mode ligado) */
[data-jadsontur-theme="dark"] .jadsontur-switch-track {
    background: var(--jadson-primary);
}

[data-jadsontur-theme="dark"] .jadsontur-switch-thumb {
    transform: translateX(20px);
}

[data-jadsontur-theme="dark"] #jadsontur-sidebar-theme-toggle {
    background-color: var(--jadson-bg-hover) !important;
}

[data-jadsontur-theme="dark"] .jadsontur-theme-label {
    color: var(--jadson-text-secondary) !important;
}

/* === ANIMACOES === */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.jadsontur-dashboard .animate-fade-in,
.jadsontur-login-wrap .animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

.jadsontur-dashboard .animate-slide-in {
    animation: slideIn 0.3s ease-out;
}

.jadsontur-dashboard .animate-pulse {
    animation: pulse 2s infinite;
}

.jadsontur-login-wrap .animate-slide-up {
    animation: slideUp 0.5s ease-out both;
}

.jadsontur-login-wrap .animate-slide-up-delay {
    animation: slideUp 0.5s ease-out 0.15s both;
}

.jadsontur-dashboard .animate-float {
    animation: float 3s ease-in-out infinite;
}

/* === TABELA DE PAGAMENTOS === */
.jadsontur-payments-table {
    border-collapse: separate;
    border-spacing: 0;
}

.jadsontur-payments-table thead tr {
    border-bottom: 1px solid var(--jadson-gray-200);
}

.jadsontur-payments-table tbody tr {
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    transition: background-color 0.15s ease;
}

.jadsontur-payments-table tbody tr:last-child {
    border-bottom: none;
}

.jadsontur-payments-table tbody tr:hover {
    background: var(--jadson-gray-50);
}

/* === FILTROS DE VIAGENS === */
.jadsontur-trip-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.jadsontur-filter-group {
    flex: 1 1 200px;
    min-width: 0;
}

.jadsontur-filter-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--jadson-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.jadsontur-filter-input-wrap {
    position: relative;
}

.jadsontur-filter-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--jadson-gray-400);
    pointer-events: none;
}

.jadsontur-trip-filters .jadsontur-filter-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--jadson-gray-200);
    border-radius: 12px;
    font-size: 0.875rem;
    background-color: var(--jadson-bg-input, #fff);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.jadsontur-trip-filters .jadsontur-filter-input-icon {
    padding-left: 36px;
}

.jadsontur-trip-filters .jadsontur-filter-input:focus {
    border-color: var(--jadson-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.jadsontur-trip-filters select.jadsontur-filter-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 5.646a.5.5 0 01.708 0L8 8.293l2.646-2.647a.5.5 0 01.708.708l-3 3a.5.5 0 01-.708 0l-3-3a.5.5 0 010-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

#jadsontur-filter-arrow.open {
    transform: rotate(180deg);
}

@media (max-width: 767px) {
    .jadsontur-trip-filters {
        flex-direction: column;
        gap: 10px;
    }
    .jadsontur-filter-group {
        flex: 1 1 100%;
        width: 100%;
    }
    .jadsontur-trip-filters .jadsontur-filter-input {
        font-size: 16px;
        padding: 12px 14px;
    }
    .jadsontur-trip-filters .jadsontur-filter-input-icon {
        padding-left: 38px;
    }
}

/* === SIDEBAR === */
#sidebar {
    overflow-y: auto !important;
}

#sidebar > div:last-child {
    padding-bottom: 80px !important;
}

@media (min-width: 1024px) {
    #sidebar > div:last-child {
        padding-bottom: 0 !important;
    }
}

#sidebar-toggle {
    min-height: 44px;
    min-width: 44px;
}

body.sidebar-open {
    overflow: hidden;
}

/* === MODAIS E TOASTS === */
.jadsontur-pix-modal {
    animation: fadeIn 0.2s ease-out;
}

.jadsontur-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 12px;
    color: white;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    animation: fadeIn 0.3s ease-out;
}

.jadsontur-toast.success { background: var(--jadson-success); }
.jadsontur-toast.error { background: var(--jadson-danger); }
.jadsontur-toast.warning { background: var(--jadson-warning); }
.jadsontur-toast.info { background: var(--jadson-primary); }

/* === RESPONSIVO === */
@media (max-width: 1024px) {
    .jadsontur-dashboard .lg\:ml-64 {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .jadsontur-dashboard table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* === SKELETON === */
.jadsontur-skeleton {
    background: linear-gradient(90deg, var(--jadson-gray-200) 25%, var(--jadson-gray-100) 50%, var(--jadson-gray-200) 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s infinite;
    border-radius: 8px;
}

@keyframes skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* === COMPONENTES === */
.jadsontur-chart-container {
    position: relative;
    width: 100%;
    min-height: 200px;
}

.jadsontur-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
}

.jadsontur-empty-state svg {
    width: 64px;
    height: 64px;
    color: var(--jadson-gray-300);
    margin-bottom: 16px;
}

.jadsontur-empty-state p {
    color: var(--jadson-gray-500);
    font-size: 16px;
}

.jadsontur-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 500;
}

.jadsontur-badge.success { background: #d1fae5; color: #065f46; }
.jadsontur-badge.warning { background: #fef3c7; color: #92400e; }
.jadsontur-badge.danger { background: #fee2e2; color: #991b1b; }
.jadsontur-badge.info { background: #dbeafe; color: #1e40af; }

[data-jadsontur-theme="dark"] .jadsontur-badge.success { background: #065f46; color: #d1fae5; }
[data-jadsontur-theme="dark"] .jadsontur-badge.warning { background: #92400e; color: #fef3c7; }
[data-jadsontur-theme="dark"] .jadsontur-badge.danger { background: #991b1b; color: #fee2e2; }
[data-jadsontur-theme="dark"] .jadsontur-badge.info { background: #1e40af; color: #dbeafe; }

.jadsontur-progress {
    width: 100%;
    height: 8px;
    background: var(--jadson-gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.jadsontur-progress-bar {
    height: 100%;
    background: var(--jadson-primary);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.cpf-mask,
.phone-mask,
.cep-mask {
    font-variant-numeric: tabular-nums;
}

/* === LOGIN PAGE === */
.jadsontur-login-wrap .jadsontur-login-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.jadsontur-login-wrap .jadsontur-login-bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

/* Toggle de tema (login) */
.jadsontur-theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 9999px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 30px rgba(15,23,42,0.15);
    border: 1px solid rgba(255,255,255,0.6);
}

.jadsontur-theme-toggle .jadsontur-theme-icon {
    width: 1rem;
    height: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.jadsontur-theme-toggle .jadsontur-theme-switch {
    position: relative;
    width: 52px;
    height: 28px;
}

.jadsontur-theme-toggle input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    margin: 0;
    cursor: pointer;
    z-index: 2;
}

.jadsontur-theme-switch-track {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: linear-gradient(135deg,#dbeafe,#bfdbfe);
    border: 1px solid rgba(15,23,42,0.08);
    transition: background 0.3s ease;
}

.jadsontur-theme-switch-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(15,23,42,0.15);
    transition: transform 0.25s ease;
}

.jadsontur-theme-toggle input:checked + .jadsontur-theme-switch-track .jadsontur-theme-switch-thumb {
    transform: translateX(24px);
}

.jadsontur-theme-toggle input:checked + .jadsontur-theme-switch-track {
    background: linear-gradient(135deg,#1e293b,#0f172a);
}

.jadsontur-theme-toggle .jadsontur-theme-icon.sun {
    opacity: 1;
    color: #fbbf24;
}

.jadsontur-theme-toggle input:checked ~ .moon {
    opacity: 1;
    color: #a5b4fc;
}

.jadsontur-theme-toggle input:checked ~ .sun {
    opacity: 0.35;
}

[data-jadsontur-theme="dark"] .jadsontur-profile-avatar {
    box-shadow: 0 20px 50px rgba(15,23,42,0.45);
}

[data-jadsontur-theme="dark"] .jadsontur-theme-toggle {
    background: rgba(15,23,42,0.7);
    border-color: rgba(148,163,184,0.4);
}

[data-jadsontur-theme="dark"] .jadsontur-theme-switch-track {
    background: linear-gradient(135deg,#1f2937,#0f172a);
}

[data-jadsontur-theme="dark"] .jadsontur-theme-icon.sun {
    opacity: 0.3;
}

[data-jadsontur-theme="dark"] .jadsontur-theme-icon.moon {
    opacity: 0.9;
}

.jadsontur-profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    padding: 3px;
    background: #fff;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(15,23,42,0.15);
    overflow: hidden;
}

.jadsontur-profile-avatar img,
.jadsontur-profile-avatar span {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.jadsontur-profile-avatar button {
    border-radius: 50%;
}

.jadsontur-profile-email {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding-bottom: 2px;
    font-weight: 500;
    text-decoration: none;
    border: none;
}

.jadsontur-profile-email::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(41,197,166,0.2), rgba(37,99,235,0.4));
}

.jadsontur-profile-email::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #10b981;
}

[data-jadsontur-theme="dark"] .jadsontur-login-wrap .jadsontur-login-bg-shape {
    opacity: 0.15;
}

/* === ALERTAS DARK === */
[data-jadsontur-theme="dark"] .bg-yellow-50 {
    background-color: rgba(245, 158, 11, 0.1) !important;
}

[data-jadsontur-theme="dark"] .border-yellow-400 {
    border-color: #f59e0b !important;
}

[data-jadsontur-theme="dark"] .text-yellow-700 {
    color: #fbbf24 !important;
}

[data-jadsontur-theme="dark"] .bg-green-100 { background-color: rgba(16, 185, 129, 0.15) !important; }
[data-jadsontur-theme="dark"] .text-green-800 { color: #6ee7b7 !important; }
[data-jadsontur-theme="dark"] .bg-red-100 { background-color: rgba(239, 68, 68, 0.15) !important; }
[data-jadsontur-theme="dark"] .text-red-800 { color: #fca5a5 !important; }
[data-jadsontur-theme="dark"] .bg-yellow-100 { background-color: rgba(245, 158, 11, 0.15) !important; }
[data-jadsontur-theme="dark"] .text-yellow-800 { color: #fcd34d !important; }

[data-jadsontur-theme="dark"] .bg-red-50 { background-color: rgba(239, 68, 68, 0.08) !important; }
[data-jadsontur-theme="dark"] .hover\:bg-red-50:hover { background-color: rgba(239, 68, 68, 0.12) !important; }

/* === RIBBON DIAGONAL (faixa de status nos cards) === */
.jadsontur-trip-card-wrap {
    position: relative;
    overflow: hidden;
}

.jadsontur-ribbon {
    position: absolute;
    top: 28px;
    right: -40px;
    z-index: 10;
    width: 180px;
    text-align: center;
    transform: rotate(45deg);
    padding: 8px 0;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    pointer-events: none;
}

.jadsontur-ribbon span {
    display: block;
    line-height: 1;
}

.jadsontur-ribbon-soon {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
}

.jadsontur-ribbon-closed {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
}

.jadsontur-ribbon-inactive {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: #ffffff;
}

.jadsontur-trip-unavailable {
    opacity: 0.85;
}

.jadsontur-trip-unavailable:hover {
    opacity: 1;
}

/* === BOTOES COM HOVER CUSTOMIZADO === */
.jadsontur-btn-action {
    transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.jadsontur-btn-action:hover {
    background-color: var(--jadson-btn-hover-bg, var(--jadson-primary)) !important;
    color: var(--jadson-btn-hover-text, #ffffff) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

[data-jadsontur-theme="dark"] .jadsontur-trip-unavailable .bg-gray-200 {
    background-color: var(--jadson-bg-hover) !important;
}

[data-jadsontur-theme="dark"] .jadsontur-trip-unavailable .text-gray-500 {
    color: var(--jadson-text-muted) !important;
}

[data-jadsontur-theme="dark"] .bg-blue-100 { background-color: rgba(59, 130, 246, 0.15) !important; }
[data-jadsontur-theme="dark"] .text-blue-700 { color: #93c5fd !important; }
[data-jadsontur-theme="dark"] .text-blue-800 { color: #93c5fd !important; }

/* === Descrição da viagem (WYSIWYG) === */
.jadsontur-trip-description h1,
.jadsontur-trip-description h2,
.jadsontur-trip-description h3,
.jadsontur-trip-description h4 {
    font-weight: 700;
    color: var(--jadson-text, #111827);
    margin: 1rem 0 0.5rem;
}
.jadsontur-trip-description h3 { font-size: 1.125rem; }
.jadsontur-trip-description p { margin-bottom: 0.75rem; line-height: 1.7; }
.jadsontur-trip-description ul,
.jadsontur-trip-description ol { padding-left: 1.5rem; margin-bottom: 0.75rem; }
.jadsontur-trip-description li { margin-bottom: 0.25rem; line-height: 1.6; }
.jadsontur-trip-description strong { font-weight: 600; }
.jadsontur-trip-description a { color: var(--jadson-primary); text-decoration: underline; }

/* === Galeria thumbs === */
.jadsontur-gallery-thumb {
    transition: all 0.2s ease;
}
.jadsontur-gallery-thumb:hover {
    opacity: 1 !important;
    transform: scale(1.05);
}

/* === Cronômetro regressivo === */
.jadsontur-countdown > div > div:first-child {
    min-width: 2.5rem;
}

/* === Barra de navegacao inferior mobile === */

/* Desktop: esconde a barra */
@media (min-width: 1024px) {
    .jadsontur-bottombar {
        display: none !important;
    }
}

/* Mobile: exibe a barra */
@media (max-width: 1023px) {
    .jadsontur-bottombar {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: flex-end !important;
        justify-content: space-around !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 35 !important;
        width: 100% !important;
        background: var(--jadson-bg-card, #ffffff) !important;
        border-top: 1px solid var(--jadson-border, #e5e7eb) !important;
        padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0px)) !important;
        box-shadow: 0 -2px 12px rgba(0,0,0,0.08) !important;
        height: auto !important;
        min-height: 64px !important;
        margin: 0 !important;
    }

    /* Margem inferior proporcional em todas as paginas */
    .jadsontur-dashboard > div:not(#sidebar):not(#sidebar-overlay):not(nav) {
        padding-bottom: 80px !important;
    }
    
    /* Margem inferior na pagina de login */
    .jadsontur-login-wrap {
        padding-bottom: 80px !important;
    }

    /* Sidebar e overlay ficam acima da barra */
    #sidebar-overlay {
        z-index: 40 !important;
    }
    #sidebar {
        z-index: 50 !important;
    }
}

.jadsontur-bottombar .jadsontur-bottombar-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    flex: 1 1 0% !important;
    padding: 4px 0 !important;
    color: #9ca3af !important;
    text-decoration: none !important;
    font-size: 0.625rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
    transition: color 0.2s ease !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    -webkit-tap-highlight-color: transparent !important;
    line-height: 1.2 !important;
    min-width: 0 !important;
    max-width: 20% !important;
    overflow: hidden !important;
}

.jadsontur-bottombar .jadsontur-bottombar-item:hover,
.jadsontur-bottombar .jadsontur-bottombar-item:focus {
    color: var(--jadson-primary, #2563eb) !important;
    text-decoration: none !important;
}

.jadsontur-bottombar .jadsontur-bottombar-item.active {
    color: var(--jadson-primary, #2563eb) !important;
}

.jadsontur-bottombar .jadsontur-bottombar-item svg {
    flex-shrink: 0 !important;
    width: 24px !important;
    height: 24px !important;
}

/* Botao central elevado (Pagamento) */
.jadsontur-bottombar .jadsontur-bottombar-center {
    position: relative !important;
    flex: 1.2 1 0% !important;
    max-width: 22% !important;
    padding: 0 !important;
    margin-top: -22px !important;
    color: #9ca3af !important;
}

.jadsontur-bottombar-circle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 56px !important;
    height: 56px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    margin: 0 auto !important;
}

.jadsontur-bottombar-circle svg {
    width: 28px !important;
    height: 28px !important;
    color: #ffffff !important;
    stroke: #ffffff !important;
}

.jadsontur-bottombar .jadsontur-bottombar-center:hover .jadsontur-bottombar-circle,
.jadsontur-bottombar .jadsontur-bottombar-center:focus .jadsontur-bottombar-circle {
    transform: scale(1.08) !important;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5) !important;
}

.jadsontur-bottombar .jadsontur-bottombar-center.active .jadsontur-bottombar-circle {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    box-shadow: 0 4px 18px rgba(5, 150, 105, 0.5) !important;
}

.jadsontur-bottombar-center-label {
    display: block !important;
    margin-top: 2px !important;
    font-size: 0.625rem !important;
    font-weight: 600 !important;
    color: #059669 !important;
    transition: color 0.2s ease !important;
    text-align: center !important;
}

.jadsontur-bottombar .jadsontur-bottombar-center:hover .jadsontur-bottombar-center-label,
.jadsontur-bottombar .jadsontur-bottombar-center.active .jadsontur-bottombar-center-label {
    color: #047857 !important;
}

/* Tema escuro - bottombar */
[data-jadsontur-theme="dark"] .jadsontur-bottombar {
    background: var(--jadson-bg-card, #1e293b) !important;
    border-top-color: var(--jadson-border, #334155) !important;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.3) !important;
}

[data-jadsontur-theme="dark"] .jadsontur-bottombar .jadsontur-bottombar-item {
    color: #64748b !important;
}

[data-jadsontur-theme="dark"] .jadsontur-bottombar .jadsontur-bottombar-item:hover,
[data-jadsontur-theme="dark"] .jadsontur-bottombar .jadsontur-bottombar-item.active {
    color: var(--jadson-primary, #2563eb) !important;
}

/* === ISOLAMENTO DO ELEMENTOR === */
/* Neutraliza cores globais do Elementor Kit dentro dos containers do plugin */
.jadsontur-dashboard,
.jadsontur-login-wrap,
.jadsontur-dashboard *,
.jadsontur-login-wrap * {
    --e-global-color-primary: var(--jadson-primary) !important;
    --e-global-color-secondary: var(--jadson-secondary) !important;
    --e-global-color-text: var(--jadson-text) !important;
    --e-global-color-accent: var(--jadson-primary) !important;
}

.jadsontur-dashboard a:not([class*="jadsontur-btn"]),
.jadsontur-login-wrap a:not([class*="jadsontur-btn"]) {
    color: inherit;
}

.jadsontur-dashboard h1,
.jadsontur-dashboard h2,
.jadsontur-dashboard h3,
.jadsontur-dashboard h4,
.jadsontur-dashboard h5,
.jadsontur-dashboard h6,
.jadsontur-login-wrap h1,
.jadsontur-login-wrap h2,
.jadsontur-login-wrap h3,
.jadsontur-login-wrap h4 {
    color: inherit;
}

.elementor-widget-container .jadsontur-dashboard,
.elementor-widget-container .jadsontur-login-wrap {
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    color: var(--jadson-text) !important;
    background-color: var(--jadson-bg) !important;
}

/* Remove padding/margin do container Elementor que envolve o plugin */
.elementor-widget-jadsontur_dashboard .elementor-widget-container,
.elementor-widget-jadsontur_login .elementor-widget-container,
.elementor-widget-jadsontur_trips .elementor-widget-container,
.elementor-widget-jadsontur_payments .elementor-widget-container,
.elementor-widget-jadsontur_profile .elementor-widget-container,
.elementor-widget-jadsontur_faq .elementor-widget-container,
.elementor-widget-jadsontur_admin_dashboard .elementor-widget-container,
.elementor-widget-jadsontur_notices .elementor-widget-container,
.elementor-widget-jadsontur_trip_detail .elementor-widget-container,
.elementor-widget-jadsontur_organizador .elementor-widget-container {
    padding: 0 !important;
    margin: 0 !important;
}
