/* ========================================
   World Hotels – Modern Cozy Theme
   ======================================== */

/* Brand palette (logo-aligned) */
:root {
    --wh-blue: #0b4f6c;
    --wh-blue-soft: #1f7a8c;
    --wh-gold: #e09f3e;
    --wh-gold-soft: #f4d58d;
    --wh-cream: #faf3e0;
    --wh-dark: #1c1c1c;

    --shadow-sm: 0 4px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.18);
}

/* Global */
.wh-body {
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(180deg, #ffffff 0%, var(--wh-cream) 100%);
    color: var(--wh-dark);
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, var(--wh-blue), var(--wh-blue-soft));
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.3px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
}

.nav-link:hover {
    color: var(--wh-gold) !important;
}

/* Buttons */
.wh-btn-primary,
.btn-primary {
    background: linear-gradient(135deg, var(--wh-gold), #d08c2a);
    color: #1c1c1c;
    border: none;
    font-weight: 600;
    border-radius: 8px;
}

.wh-btn-primary:hover,
.btn-primary:hover {
    background: linear-gradient(135deg, #d08c2a, #b9771f);
    box-shadow: var(--shadow-md);
}

/* Cards */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    background: linear-gradient(135deg, var(--wh-blue-soft), var(--wh-blue));
    color: white;
    font-weight: 600;
}

/* Forms */
.form-control,
.form-select {
    border-radius: 8px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--wh-blue-soft);
    box-shadow: 0 0 0 0.2rem rgba(31, 122, 140, 0.2);
}

/* Alerts */
.alert {
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.alert-success {
    background: linear-gradient(135deg, #e6f4ea, #cce3d1);
    color: #1e4620;
}

.alert-danger {
    background: linear-gradient(135deg, #fbeaea, #f1c6c6);
    color: #7a1f1f;
}

/* Tables */
.table thead {
    background: linear-gradient(135deg, var(--wh-blue), #083344);
    color: white;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--wh-blue), #083344);
    color: #f8f9fa;
}

/* Cookie banner */
.wh-cookie {
    background-color: #ffffff;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Dark Mode Theme
   ======================================== */

[data-bs-theme="dark"] {
    --wh-dark: #f8f9fa;
    --wh-bg-dark: #1a1a1a;
    --wh-bg-dark-secondary: #2d2d2d;
    --wh-text-light: #e0e0e0;
}

[data-bs-theme="dark"] .wh-body {
    background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%) !important;
    color: #e0e0e0;
}

[data-bs-theme="dark"] .navbar {
    background: linear-gradient(135deg, #0a3a4d, #062635) !important;
    border-bottom: 1px solid rgba(224, 159, 62, 0.2);
}

[data-bs-theme="dark"] .card {
    background-color: #2d2d2d !important;
    color: #e0e0e0;
    border: 1px solid rgba(224, 159, 62, 0.1) !important;
}

[data-bs-theme="dark"] .card-header {
    background: linear-gradient(135deg, #0a3a4d, #062635) !important;
    border-bottom: 1px solid rgba(224, 159, 62, 0.1);
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
    background-color: #3a3a3a;
    border-color: #4a4a4a;
    color: #e0e0e0;
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
    background-color: #3a3a3a;
    border-color: var(--wh-gold) !important;
    color: #e0e0e0;
}

[data-bs-theme="dark"] .form-control::placeholder {
    color: #a0a0a0;
}

[data-bs-theme="dark"] .table {
    color: #e0e0e0;
    border-color: #3a3a3a;
}

[data-bs-theme="dark"] .table thead {
    background: linear-gradient(135deg, #0a3a4d, #062635) !important;
    border-color: #3a3a3a;
}

[data-bs-theme="dark"] .table tbody tr {
    border-color: #3a3a3a;
}

[data-bs-theme="dark"] .table tbody tr:hover {
    background-color: rgba(224, 159, 62, 0.05);
}

[data-bs-theme="dark"] .alert {
    background-color: rgba(224, 159, 62, 0.1) !important;
    border-color: rgba(224, 159, 62, 0.2) !important;
    color: #e0e0e0;
}

[data-bs-theme="dark"] .alert-success {
    background-color: rgba(46, 125, 50, 0.15) !important;
    border-color: rgba(56, 142, 60, 0.3) !important;
    color: #81c784;
}

[data-bs-theme="dark"] .alert-danger {
    background-color: rgba(211, 47, 47, 0.15) !important;
    border-color: rgba(229, 57, 53, 0.3) !important;
    color: #ef5350;
}

[data-bs-theme="dark"] footer {
    background: linear-gradient(135deg, #0a3a4d, #062635) !important;
    border-top: 1px solid rgba(224, 159, 62, 0.2);
}

[data-bs-theme="dark"] .text-muted {
    color: #a0a0a0 !important;
}

[data-bs-theme="dark"] .bg-light {
    background-color: #2d2d2d !important;
}

[data-bs-theme="dark"] .list-unstyled a {
    color: #b0b0ff;
}

[data-bs-theme="dark"] .list-unstyled a:hover {
    color: var(--wh-gold);
}

[data-bs-theme="dark"] .badge {
    background-color: rgba(224, 159, 62, 0.2) !important;
    color: var(--wh-gold) !important;
}

[data-bs-theme="dark"] .wh-cookie {
    background-color: #2d2d2d !important;
    border-color: rgba(224, 159, 62, 0.2) !important;
    color: #e0e0e0;
}

[data-bs-theme="dark"] .modal-content {
    background-color: #2d2d2d !important;
    border-color: #3a3a3a !important;
    color: #e0e0e0;
}

[data-bs-theme="dark"] .modal-header {
    border-color: #3a3a3a !important;
}

[data-bs-theme="dark"] .modal-footer {
    border-color: #3a3a3a !important;
}

[data-bs-theme="dark"] .dropdown-menu {
    background-color: #2d2d2d !important;
    border-color: #3a3a3a !important;
}

[data-bs-theme="dark"] .dropdown-item {
    color: #e0e0e0;
}

[data-bs-theme="dark"] .dropdown-item:hover,
[data-bs-theme="dark"] .dropdown-item:focus {
    background-color: rgba(224, 159, 62, 0.1) !important;
    color: var(--wh-gold);
}

/* Dark mode button styling */
.theme-toggle-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.85);
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.theme-toggle-btn:hover {
    border-color: var(--wh-gold);
    color: var(--wh-gold);
    background-color: rgba(224, 159, 62, 0.1);
}

[data-bs-theme="dark"] .theme-toggle-btn {
    border-color: rgba(224, 159, 62, 0.3);
    color: rgba(224, 159, 62, 0.8);
}

[data-bs-theme="dark"] .theme-toggle-btn:hover {
    border-color: var(--wh-gold);
    color: var(--wh-gold);
    background-color: rgba(224, 159, 62, 0.2);
}