/* ===== Layout CSS - Travel SIM ===== */
/* Custom styles that complement TailwindCSS */

/* ===== DARK THEME OVERRIDES ===== */
[data-theme="dark"] body,
[data-theme="dark"] [data-body] {
    background-color: #0f0c29 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .header-main {
    background-color: #1a1744 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: none !important;
}

[data-theme="dark"] .header-main a:not(.bg-gradient-to-r),
[data-theme="dark"] .header-main button {
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .header-main a[class*="text-brand-magenta"] {
    color: #E91E8C !important;
}

[data-theme="dark"] .header-main a:hover:not(.bg-gradient-to-r):not([class*="text-brand-magenta"]) {
    color: #E91E8C !important;
}

[data-theme="dark"] .header-main button:hover,
[data-theme="dark"] .header-main a:not(.bg-gradient-to-r):hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] #mobileMenu {
    background-color: #1a1744 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] #mobileMenu a {
    color: rgba(255, 255, 255, 0.7) !important;
}

[data-theme="dark"] #mobileMenu a[class*="text-brand-magenta"] {
    color: #E91E8C !important;
}

[data-theme="dark"] .user-menu__dropdown {
    background-color: #1a1744 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .user-menu__dropdown a {
    color: rgba(255, 255, 255, 0.7) !important;
}

[data-theme="dark"] .user-menu__dropdown a:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

/* ===== GRADIENT TEXT UTILITY ===== */
.text-gradient {
    background: linear-gradient(135deg, #E91E8C, #2196F3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== BRAND GRADIENT BG ===== */
.bg-brand-gradient {
    background: linear-gradient(135deg, #E91E8C, #2196F3);
}

/* ===== SMOOTH SCROLL ===== */
html {
    scroll-behavior: smooth;
}

/* ===== SCROLL ANIMATION ===== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== USER MENU ===== */
.user-menu.active .user-menu__dropdown {
    display: block !important;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

[data-theme="dark"] ::-webkit-scrollbar-track {
    background: #1a1744;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header-main .container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* ===== BRAND GRADIENT TEXT ===== */
.brand-gradient-text {
    background: linear-gradient(135deg, #E91E8C, #2196F3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== TOAST NOTIFICATIONS ===== */
#toast-container {
    pointer-events: none;
}

.toast-item {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 12px;
    background: white;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-left: 4px solid;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.toast-item.toast-show {
    transform: translateX(0);
    opacity: 1;
}

.toast-item.toast-hide {
    transform: translateX(120%);
    opacity: 0;
}

.toast-success { border-color: #10b981; }
.toast-error { border-color: #ef4444; }
.toast-warning { border-color: #f59e0b; }
.toast-info { border-color: #3b82f6; }

.toast-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.toast-success .toast-icon { color: #10b981; }
.toast-error .toast-icon { color: #ef4444; }
.toast-warning .toast-icon { color: #f59e0b; }
.toast-info .toast-icon { color: #3b82f6; }

.toast-message {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    flex: 1;
}

.toast-close {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    font-size: 14px;
    flex-shrink: 0;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #4b5563;
}

/* Dark mode toast */
[data-theme="dark"] .toast-item {
    background: #1a1744;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .toast-message {
    color: #e5e7eb;
}

[data-theme="dark"] .toast-close {
    color: #6b7280;
}