:root {
    --bg-body: #f0f2f5;
    --bg-card: #ffffff;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --primary-color: #4f46e5;
    --accent-gradient: linear-gradient(135deg, #f59e0b 0%, #ec4899 100%);
    --border-color: #e5e7eb;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --font-main: 'Inter', sans-serif;
}

[data-theme="dark"] {
    --bg-body: #474887;
    --bg-card: #693b4d;
    --text-main: #38c831;
    --text-muted: #9ca3af;
    --primary-color: #818cf8;
    --accent-gradient: linear-gradient(135deg, #d97706 0%, #db2777 100%);
    --border-color: #374151;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-main);
    padding-top: 70px;
    padding-bottom: 80px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dynamic Category Colors */
.theme-beach {
    --card-accent: #06b6d4;
}

.theme-mountains {
    --card-accent: #10b981;
}

.theme-city {
    --card-accent: #f97316;
}

.navbar {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    z-index: 1040;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.progress-sticky {
    position: fixed;
    top: 56px;
    width: 100%;
    z-index: 1030;
}

/* View Management */
.view-section {
    display: none;
    animation: slideUp 0.5s ease-out;
}

.view-section.active {
    display: block;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero-section {
    background: var(--accent-gradient);
    color: white;
    padding: 80px 20px;
    border-radius: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

/* Cards */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
}

.theme-beach .card {
    border-top-color: var(--card-accent);
}

.theme-mountains .card {
    border-top-color: var(--card-accent);
}

.theme-city .card {
    border-top-color: var(--card-accent);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    transition: transform 0.5s ease;
    height: 200px;
    object-fit: cover;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.cursor-pointer {
    cursor: pointer;
}

/* Badges */
.badge-beach {
    background-color: rgba(6, 182, 212, 0.15);
    color: #0891b2;
}

.badge-mountains {
    background-color: rgba(16, 185, 129, 0.15);
    color: #047857;
}

.badge-city {
    background-color: rgba(249, 115, 22, 0.15);
    color: #c2410c;
}

[data-theme="dark"] .badge-beach,
[data-theme="dark"] .badge-mountains,
[data-theme="dark"] .badge-city {
    color: white;
    opacity: 0.9;
}

/* Mobile Sticky Navigation */
.mobile-nav-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bg-card);
    padding: 12px;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
    z-index: 1030;
    display: none;
}

@media (max-width: 768px) {
    .mobile-nav-sticky {
        display: flex !important;
        justify-content: space-between;
    }

    .hero-section {
        padding: 40px 15px;
    }

    .d-none-mobile {
        display: none !important;
    }
}

/* Print Styles */
@media print {

    .navbar,
    .progress-sticky,
    .footer,
    .no-print,
    .btn,
    .mobile-nav-sticky {
        display: none !important;
    }

    body,
    #view-step-final {
        background-color: white !important;
        color: black !important;
        padding: 0 !important;
    }

    #printableArea {
        border: none;
        box-shadow: none;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}

[dir="rtl"] {
    text-align: right;
}
