/**
 * TravelTales - Travel Itinerary Platform
 * Modern Travel-Themed Styling
 */

/* ========================
   Reset & Base Styles
   ======================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Clean White & Pearl Theme - Airbnb Style */
    --primary-color: #1E3A5F;        /* Deep Navy - primary text & buttons */
    --primary-dark: #0F1F33;         /* Darker Navy for hover */
    --secondary-color: #F7F7F7;      /* Pearl White - subtle backgrounds */
    --accent-color: #FF385C;         /* Airbnb Pink - primary CTAs */
    --accent-dark: #E31C5F;          /* Darker pink for hover */
    --highlight-color: #00A699;      /* Teal accent for highlights */
    --success-color: #008A05;        /* Success green */
    --danger-color: #C13515;         /* Error red */
    --text-dark: #222222;            /* Near black - primary text */
    --text-medium: #484848;          /* Medium grey - secondary text */
    --text-light: #717171;           /* Light grey - tertiary text */
    --bg-white: #FFFFFF;             /* Pure white */
    --bg-light: #F7F7F7;             /* Pearl white background */
    --bg-lighter: #FAFAFA;           /* Lighter pearl */
    --border-color: #DDDDDD;         /* Light grey borders */
    --border-light: #EBEBEB;         /* Lighter borders */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 6px 16px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.20);
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;
}

body {
    font-family: sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-dark);
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================
   Typography
   ======================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin: 0 0 1rem 0;
}

h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2rem;
    color: var(--text-dark);
}

h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
}

p {
    margin: 0 0 1rem 0;
}

/* ========================
   Navigation
   ======================== */
.navbar {
    background: var(--bg-white);
    color: var(--text-dark);
    padding: 1.25rem 0;
    box-shadow: 0 1px 0 var(--border-light);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.nav-brand {
    font-size: 1.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.nav-brand i {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-search {
    flex: 1;
    max-width: 600px;
    min-width: 300px;
}

.search-bar {
    display: flex;
    background: var(--bg-white);
    border-radius: 40px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.search-bar:hover {
    box-shadow: var(--shadow-md);
}

.search-bar:focus-within {
    border-color: var(--text-dark);
    box-shadow: var(--shadow-md);
}

.search-bar i {
    color: var(--text-dark);
    padding: 0.875rem 1rem;
    display: flex;
    align-items: center;
}

.search-bar input {
    flex: 1;
    border: none;
    padding: 0.875rem 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dark);
    outline: none;
    background: transparent;
}

.search-bar input::placeholder {
    color: var(--text-light);
    font-weight: 400;
}

.btn-search {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.btn-search:hover {
    background: var(--primary-dark);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ========================
   Buttons
   ======================== */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: scale(1.02);
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    border: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.btn-primary:hover {
    background: var(--accent-dark);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--text-dark);
    box-shadow: var(--shadow-sm);
}

.btn-create {
    background: var(--accent-color);
    color: white;
    border: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.btn-create:hover {
    background: var(--accent-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-contact {
    background: var(--bg-white);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    transition: all 0.2s ease;
}

.btn-contact:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-contact i {
    margin-right: 6px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-like {
    background: var(--bg-light);
    color: var(--danger-color);
    border: 2px solid var(--danger-color);
}

.btn-like:hover {
    background: var(--danger-color);
    color: white;
}

.btn-like.liked {
    background: var(--danger-color);
    color: white;
}

.btn-filter {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    font-weight: 600;
}

.btn-filter:hover {
    border-color: var(--text-dark);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.btn-warning {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    font-weight: 600;
}

.btn-warning:hover {
    border-color: var(--text-dark);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

/* Notification Badge on Buttons */
.notification-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ff4444 !important;
    color: white !important;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    box-shadow: 0 3px 6px rgba(0,0,0,0.3);
    animation: pulse 2s infinite;
    z-index: 1000;
    pointer-events: none;
    border: 2px solid white;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.btn-warning {
    position: relative;
    overflow: visible !important;
}

/* Ensure buttons with notification badges don't clip them */
.btn:has(.notification-badge) {
    overflow: visible !important;
}

.btn-info {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    font-weight: 600;
}

.btn-info:hover {
    border-color: var(--text-dark);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

/* ========================
   Hero Section
   ======================== */
.hero {
    position: relative;
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(91, 164, 207, 0.35), rgba(65, 131, 184, 0.35));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    font-weight: 700;
    animation: fadeInUp 1s ease-out;
    color: white;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
}

.hero-content p {
    font-size: 1.5rem;
    opacity: 0.95;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1.2s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive hero */
@media (max-width: 768px) {
    .hero {
        padding: 2rem 1rem;
        min-height: 250px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
}

/* ========================
   Main Content
   ======================== */
.main-content {
    min-height: calc(100vh - 80px);
}

.dashboard {
    padding: 2rem;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.dashboard-header h2 {
    font-size: 2rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Drafts Section */
.drafts-section {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
}

/* Liked Posts Section */
.liked-posts-section {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%);
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
}

/* Analytics Section */
.analytics-section {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
}

.analytics-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card-large {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition);
}

.stat-card-large:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.8;
}

.stat-icon i {
    display: block;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.analytics-section-title {
    margin: 2rem 0 1rem 0;
}

.analytics-section-title h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.analytics-section-title i {
    color: var(--primary-color);
}

.analytics-today {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.stat-card .stat-value {
    font-size: 2rem;
    color: var(--primary-color);
}

.analytics-controls {
    margin: 2rem 0;
}

.period-selector {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.period-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-color);
    background: var(--bg-light);
    color: var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.period-btn:hover {
    background: var(--primary-color);
    color: white;
}

.period-btn.active {
    background: var(--primary-color);
    color: white;
}

.analytics-chart {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    height: 400px;
}

.analytics-chart canvas {
    max-height: 100%;
}

.top-posts-list {
    background: var(--bg-light);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.top-post-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.top-post-item:last-child {
    border-bottom: none;
}

.top-post-item:hover {
    background: var(--bg-light);
}

.post-rank {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    min-width: 50px;
    text-align: center;
}

.post-info {
    flex: 1;
}

.post-title {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.post-author {
    font-size: 0.875rem;
    color: var(--text-light);
}

.post-views {
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-views i {
    color: #3498db;
}

/* Moderation Section */
.moderation-section {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
    border-left: 4px solid var(--danger-color);
}

.moderation-card {
    border: 2px solid var(--danger-color);
    background: var(--bg-light);
}

.pending-badge {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
    text-transform: uppercase;
}

.moderation-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.moderation-actions .btn-secondary {
    background: var(--primary-color);
    color: white;
    border: none;
}

.moderation-actions .btn-secondary:hover {
    background: var(--primary-dark);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-success {
    background: var(--accent-color);
    color: white;
}

.btn-success:hover {
    background: #45a049;
    transform: translateY(-1px);
}

/* My Itineraries Section */
.my-itineraries {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 1.75rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-header .btn-secondary {
    background: var(--primary-color);
    color: white;
}

.section-header .btn-secondary:hover {
    background: var(--primary-dark);
}

/* Draft Indicators */
.draft-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.draft-card {
    opacity: 0.95;
    border: 2px dashed var(--secondary-color) !important;
}

.draft-card:hover {
    opacity: 1;
}

/* Rejection Notice */
.rejection-notice {
    background: linear-gradient(135deg, #FFF3E0, #FFE0B2);
    border-left: 4px solid var(--secondary-color);
    padding: 0.75rem 1rem;
    margin: 0.75rem 0;
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--text-dark);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.rejection-notice i {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.rejection-notice strong {
    color: #E65100;
    display: block;
    margin-bottom: 0.25rem;
}

/* Card Actions for Edit Button */
.card-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.btn-edit {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-edit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-draft {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.btn-draft:hover {
    border-color: var(--text-dark);
    box-shadow: var(--shadow-sm);
}

/* ========================
   Itinerary Cards
   ======================== */
.itineraries-section {
    margin-bottom: 3rem;
}

.itineraries-section .section-header {
    margin-bottom: 1.5rem;
}

.itineraries-section .section-header h2 {
    color: var(--text-dark);
}

.itineraries-section .section-header h2 i {
    color: var(--accent-color);
}

.itineraries-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.section-divider {
    grid-column: 1 / -1;
    margin: 2rem 0 1rem 0;
}

.section-divider h2 {
    color: var(--text-dark);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-divider h2 i {
    color: var(--accent-color);
}

.itinerary-card {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    overflow: visible;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.itinerary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    z-index: 0;
    pointer-events: none;
    border-radius: var(--border-radius);
}

.itinerary-card.theme-plane::before {
    background: 
        linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%),
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(33, 150, 243, 0.1) 35px, rgba(33, 150, 243, 0.1) 70px);
    background-blend-mode: multiply;
}

.itinerary-card.theme-car::before {
    background: 
        linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%),
        repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(255, 152, 0, 0.1) 35px, rgba(255, 152, 0, 0.1) 70px);
    background-blend-mode: multiply;
}

.itinerary-card.theme-bike::before {
    background: 
        linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%),
        repeating-linear-gradient(90deg, transparent, transparent 35px, rgba(76, 175, 80, 0.1) 35px, rgba(76, 175, 80, 0.1) 70px);
    background-blend-mode: multiply;
}

.itinerary-card.theme-ship::before {
    background: 
        linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%),
        repeating-linear-gradient(0deg, transparent, transparent 35px, rgba(156, 39, 176, 0.1) 35px, rgba(156, 39, 176, 0.1) 70px);
    background-blend-mode: multiply;
}

.itinerary-card.theme-train::before {
    background: 
        linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%),
        repeating-linear-gradient(135deg, transparent, transparent 35px, rgba(233, 30, 99, 0.1) 35px, rgba(233, 30, 99, 0.1) 70px);
    background-blend-mode: multiply;
}

/* Travel mode stamps overlay */
.itinerary-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    z-index: 0;
    pointer-events: none;
    white-space: pre-wrap;
    line-height: 50px;
    padding: 20px;
    overflow: hidden;
    border-radius: 12px;
}

.itinerary-card.theme-plane::after {
    content: '✈ ✈ ✈ ✈ ✈\A✈ ✈ ✈ ✈ ✈\A✈ ✈ ✈ ✈ ✈\A✈ ✈ ✈ ✈ ✈\A✈ ✈ ✈ ✈ ✈\A✈ ✈ ✈ ✈ ✈';
    color: #2196F3;
}

.itinerary-card.theme-car::after {
    content: '🚗 🚗 🚗 🚗 🚗\A🚗 🚗 🚗 🚗 🚗\A🚗 🚗 🚗 🚗 🚗\A🚗 🚗 🚗 🚗 🚗\A🚗 🚗 🚗 🚗 🚗\A🚗 🚗 🚗 🚗 🚗';
    color: #FF9800;
}

.itinerary-card.theme-bike::after {
    content: '🚲 🚲 🚲 🚲 🚲\A🚲 🚲 🚲 🚲 🚲\A🚲 🚲 🚲 🚲 🚲\A🚲 🚲 🚲 🚲 🚲\A🚲 🚲 🚲 🚲 🚲\A🚲 🚲 🚲 🚲 🚲';
    color: #4CAF50;
}

.itinerary-card.theme-ship::after {
    content: '⛵ ⛵ ⛵ ⛵ ⛵\A⛵ ⛵ ⛵ ⛵ ⛵\A⛵ ⛵ ⛵ ⛵ ⛵\A⛵ ⛵ ⛵ ⛵ ⛵\A⛵ ⛵ ⛵ ⛵ ⛵\A⛵ ⛵ ⛵ ⛵ ⛵';
    color: #9C27B0;
}

.itinerary-card.theme-train::after {
    content: '🚂 🚂 🚂 🚂 🚂\A🚂 🚂 🚂 🚂 🚂\A🚂 🚂 🚂 🚂 🚂\A🚂 🚂 🚂 🚂 🚂\A🚂 🚂 🚂 🚂 🚂\A🚂 🚂 🚂 🚂 🚂';
    color: #E91E63;
}

.itinerary-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-color);
}

/* Ensure content is above the background patterns */
.itinerary-content {
    position: relative;
    z-index: 1;
    background: transparent;
}

.itinerary-cover {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-light);
    position: relative;
    z-index: 1;
}

.itinerary-content {
    padding: 1.5rem;
    background: transparent;
}

.itinerary-header {
    margin-bottom: 3rem;
}

.itinerary-header h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    font-family: Calibri, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.itinerary-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.itinerary-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.itinerary-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Colored icons in itinerary cards */
.itinerary-meta i.fa-map-marker-alt {
    color: #e74c3c; /* Red for location */
}

.itinerary-meta i.fa-clock {
    color: #3498db; /* Blue for duration */
}

.itinerary-meta i.fa-calendar-alt {
    color: #9b59b6; /* Purple for date */
}

.itinerary-meta i.fa-suitcase {
    color: #f39c12; /* Orange for travel type */
}

.itinerary-meta i.fa-users {
    color: #2ecc71; /* Green for travelers */
}

.itinerary-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.itinerary-stats .stats-left {
    display: flex;
    gap: 1.5rem;
}

.itinerary-stats span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.itinerary-stats .stats-author {
    font-family: 'Brush Script MT', 'Lucida Handwriting', 'Segoe Script', cursive;
    font-style: italic;
    font-size: 0.95rem;
    color: var(--text-light);
    opacity: 0.8;
    margin-left: auto;
}

/* Colored icons in stats */
.itinerary-stats i.fa-eye {
    color: #3498db; /* Blue for views */
}

.itinerary-stats i.fa-heart {
    color: #e74c3c; /* Red for likes */
}

.btn-read-more {
    width: 100%;
    padding: 0.75rem 1rem;
    margin-top: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn-read-more:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg-light);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.itinerary-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.card-meta i {
    color: var(--primary-color);
}

.card-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.card-stats span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-view-itinerary {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn-view-itinerary:hover {
    background: var(--primary-dark);
}

/* ========================
   Modals
   ======================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 1rem;
    overflow-y: auto;
}

.modal.hidden {
    display: none;
}

/* Crop Modal - Higher z-index to appear above other modals */
#cropModal {
    z-index: 3000;
}

.modal-content {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.3s ease;
    position: relative;
}

/* Mobile Warning Modal Styling */
#mobileWarningModal .modal-content {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 3px solid #ff6b6b;
    box-shadow: 0 10px 40px rgba(255, 107, 107, 0.3);
}

#mobileWarningModal .fa-mobile-alt {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Apply themed background to itinerary detail modal */
.modal-content.large-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.225;
    z-index: 0;
    pointer-events: none;
    border-radius: 12px;
}

.modal-content.large-modal > * {
    position: relative;
    z-index: 1;
}

/* Theme backgrounds for modal */
.modal-content.large-modal.theme-plane::before {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.modal-content.large-modal.theme-car::before {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
}

.modal-content.large-modal.theme-bike::before {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}

.modal-content.large-modal.theme-ship::before {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
}

.modal-content.large-modal.theme-train::before {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%);
}

.modal-content.large-modal {
    max-width: 90vw;
    width: 90%;
}

.modal-content.extra-large-modal {
    max-width: 95vw;
    width: 95%;
    max-height: 95vh;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    font-size: 1.8rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.close {
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.close:hover {
    color: var(--text-dark);
    transform: rotate(90deg);
}

.login-incentive {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-left: 4px solid #27ae60;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.login-incentive p {
    margin: 0;
    color: var(--text-dark);
    line-height: 1.6;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.login-incentive i {
    color: #27ae60;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* ========================
   Forms
   ======================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group label i {
    margin-right: 0.3rem;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(91, 164, 207, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Password Input with Toggle */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    padding-right: 3rem;
}

.toggle-password {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.toggle-password:hover {
    color: var(--primary-color);
}

.toggle-password i {
    font-size: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.budget-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.budget-inputs input {
    flex: 1;
}

.budget-inputs .budget-amount {
    flex: 2;
    min-width: 150px;
}

.budget-separator {
    color: var(--text-light);
    font-weight: bold;
}

.budget-currency {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.9rem;
    min-width: 80px;
    max-width: 95px;
    background: var(--bg-light);
    cursor: pointer;
    transition: var(--transition);
}

.budget-currency:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(91, 164, 207, 0.1);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

/* Itinerary Builder Styles */
.itinerary-builder {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    max-height: 500px;
    overflow-y: auto;
    -webkit-user-select: text;
    user-select: text;
}

.itinerary-row {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
    -webkit-user-select: text;
    user-select: text;
}

.itinerary-row:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.itinerary-row.row-start {
    border-left-color: var(--accent-color);
}

.itinerary-row.row-stay {
    border-left-color: #9C27B0;
}

.itinerary-row.row-travel {
    border-left-color: var(--primary-color);
}

.itinerary-row.row-food {
    border-left-color: #f39c12;
}

.itinerary-row.row-other {
    border-left-color: var(--secondary-color);
}

.row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.row-type {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.row-type i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.row-start .row-type i {
    color: var(--accent-color);
}

.row-stay .row-type i {
    color: #9C27B0;
}

.row-travel .row-type i {
    color: var(--primary-color);
}

.row-food .row-type i {
    color: #f39c12;
}

.row-other .row-type i {
    color: var(--secondary-color);
}

.row-actions {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.btn-reorder {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-light);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: var(--transition);
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
}

.btn-reorder:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-reorder:active {
    transform: scale(0.95);
}

.btn-move-up:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-move-down:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-remove-row {
    background: transparent;
    border: 1px solid transparent;
    color: var(--danger-color);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: var(--transition);
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
}

.btn-remove-row:hover {
    background: rgba(244, 67, 54, 0.1);
    border-color: var(--danger-color);
}

.row-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    -webkit-user-select: text;
    user-select: text;
}

.row-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    -webkit-user-select: text;
    user-select: text;
}

.row-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.row-details,
.row-link {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: var(--transition);
    -webkit-user-select: text;
    user-select: text;
    -webkit-touch-callout: default;
    pointer-events: auto;
}


.row-details:focus,
.row-link:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(91, 164, 207, 0.1);
}

.row-link {
    font-size: 0.9rem;
    color: var(--primary-color);
}

.row-notes {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
    transition: var(--transition);
    -webkit-user-select: text;
    user-select: text;
    -webkit-touch-callout: default;
    pointer-events: auto;
}

.row-notes:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(91, 164, 207, 0.1);
}

.builder-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 1rem 0;
}

.btn-add-row {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.btn-add-row:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-add-row i {
    font-size: 1.1rem;
}

.btn-stay {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.btn-stay:hover {
    border-color: var(--text-dark);
    box-shadow: var(--shadow-md);
}

.btn-travel {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.btn-travel:hover {
    border-color: var(--text-dark);
    box-shadow: var(--shadow-md);
}

.btn-food {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.btn-food:hover {
    border-color: var(--text-dark);
    box-shadow: var(--shadow-md);
}

.btn-other {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.btn-other:hover {
    border-color: var(--text-dark);
    box-shadow: var(--shadow-md);
}

.image-preview {
    margin-top: 1rem;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.image-preview img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
}

.remove-image {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.remove-image:hover {
    background: #D32F2F;
    transform: scale(1.1);
}

.validation-message {
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

.validation-message.error {
    color: var(--danger-color);
}

.validation-message.success {
    color: var(--accent-color);
}

/* Password Warning */
.password-warning {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-left: 4px solid #ff9800;
    border-radius: 6px;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-dark);
}

.password-warning i {
    color: #ff9800;
    margin-right: 0.5rem;
}

.password-warning strong {
    color: #f57c00;
}

/* Invite Notice */
.invite-notice {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.invite-notice i {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-top: 0.1rem;
}

.invite-notice p {
    margin: 0;
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ========================
   View Itinerary Modal
   ======================== */
   
/* Hide views and likes in detail view */
#viewViews, #viewLikes {
    display: none !important;
}

.itinerary-details .itinerary-meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
    background: transparent;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.author-info i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.itinerary-stats i {
    color: var(--primary-color);
}

.cover-image {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.cover-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.itinerary-details .itinerary-content {
    background: transparent;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    position: relative;
}

.itinerary-content p {
    margin-bottom: 1rem;
}

/* Login Prompt Overlay */
.login-prompt {
    position: relative;
    margin-top: 2rem;
    min-height: 300px;
}

.blur-overlay {
    position: absolute;
    top: -2rem;
    left: -2rem;
    right: -2rem;
    bottom: -2rem;
    background: linear-gradient(to bottom, transparent 0%, rgba(255,255,255,0.95) 50%, rgba(255,255,255,1) 100%);
    backdrop-filter: blur(5px);
    z-index: 1;
}

.login-prompt-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-light);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    margin: 0 auto;
}

.login-prompt-content i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.login-prompt-content h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.login-prompt-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.login-prompt-content .btn {
    margin-bottom: 1rem;
}

.signup-link {
    font-size: 0.9rem;
    color: var(--text-light);
}

.signup-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.signup-link a:hover {
    text-decoration: underline;
}

.itinerary-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.itinerary-actions .action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.itinerary-actions .author-credit {
    font-size: 1.1rem;
    color: var(--text-light);
    font-style: italic;
    font-family: 'Brush Script MT', 'Lucida Handwriting', 'Segoe Script', cursive;
    margin-left: auto;
    opacity: 0.9;
}

/* ========================
   States
   ======================== */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

.loading i {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.empty-state,
.error-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.empty-state i,
.error-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3,
.error-state h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* ========================
   Toast Messages
   ======================== */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--bg-light);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 3000;
    animation: slideIn 0.3s ease;
    max-width: 500px;
    line-height: 1.6;
    text-align: left;
    white-space: pre-line;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast.hidden {
    display: none;
}

.toast.success {
    border-left: 4px solid var(--accent-color);
}

.toast.error {
    border-left: 4px solid var(--danger-color);
}

.toast.info {
    border-left: 4px solid var(--primary-color);
}

/* ========================
   Profile Modal Styles
   ======================== */
.profile-info {
    max-height: 70vh;
    overflow-y: auto;
}

.profile-section {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.profile-section h3 {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.profile-section h3 i {
    color: var(--primary-color);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-item.full-width {
    grid-column: 1 / -1;
}

.info-item label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.info-item label i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.info-item p, .info-item .profile-input {
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--bg-light);
    padding: 0.5rem 0.75rem;
    border-radius: 5px;
    border: 1px solid var(--border-color);
}

.info-item .profile-input {
    width: 100%;
    font-family: inherit;
}

.info-item .profile-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(30, 58, 95, 0.1);
}

.info-item .bio-input {
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
}

.bio-text {
    min-height: 60px;
    white-space: pre-wrap;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.stat-card {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stat-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0.5rem 0;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================
   Utilities
   ======================== */
.hidden {
    display: none !important;
}

/* ========================
   Section View Styles (Interactive Sections)
   ======================== */

/* Container for both blocks and expanded content */
.itinerary-flow-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
}
   
/* Flow Diagram Styles - Horizontal scrollable without visible scrollbar */
.itinerary-flow-diagram {
    display: flex;
    flex-wrap: nowrap; /* Don't wrap - allow horizontal scroll */
    gap: 3rem;
    padding: 2rem;
    overflow-x: auto; /* Enable horizontal scrolling */
    overflow-y: visible;
    align-items: flex-start;
    position: relative;
    -ms-overflow-style: none;  /* Hide scrollbar for IE and Edge */
    scrollbar-width: none;  /* Hide scrollbar for Firefox */
    scroll-behavior: smooth;
}

/* Scroll arrows */
.flow-scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    z-index: 10;
    transition: var(--transition);
    border: none;
    font-size: 1.2rem;
}

.flow-scroll-arrow:hover {
    background: var(--accent-dark);
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-lg);
}

.flow-scroll-arrow.left {
    left: 10px;
}

.flow-scroll-arrow.right {
    right: 10px;
}

.flow-scroll-arrow.hidden {
    display: none;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.itinerary-flow-diagram::-webkit-scrollbar {
    display: none;
}

.flow-node {
    position: relative;
    flex: 0 0 auto;
    width: 200px;
}

/* Simple horizontal layout with all blocks in order */

/* Horizontal connector */
.flow-connector-horizontal {
    position: absolute;
    top: 50%;
    left: -3rem;
    width: 3rem;
    height: 2px;
    border-top: 2px dashed var(--text-light);
    opacity: 0.4;
    transform: translateY(-50%);
}

/* Vertical connector removed - using horizontal scroll only */

.flow-card {
    background: var(--bg-light);
    border: 2px solid var(--node-color, var(--primary-color));
    border-radius: 12px;
    padding: 0.75rem 1rem 1rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.flow-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.flow-title {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.3;
    max-height: 2.6em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.flow-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--node-color, var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.flow-details-preview {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--node-color, var(--primary-color));
    font-family: Calibri, 'Segoe UI', sans-serif;
    line-height: 1.2;
    max-width: 150px;
    word-wrap: break-word;
}

/* Full-width wrapper for expanded content - below the horizontal scroll area */
.flow-content-wrapper {
    width: 100%;
    padding: 0 2rem;
    position: relative;
    min-height: 150px; /* Reserve space for expanded content */
}

/* Individual expanded content sections */
.flow-content {
    display: none; /* Hidden by default */
    padding: 1.5rem;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-height: 600px;
    overflow-y: auto;
    overflow-x: hidden;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.flow-content.expanded {
    display: block;
    opacity: 1;
}

/* Author profile picture in expanded section */
.flow-author-picture {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 10;
}

/* Custom scrollbar for flow content */
.flow-content.expanded::-webkit-scrollbar {
    width: 8px;
}

.flow-content.expanded::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.flow-content.expanded::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.flow-content.expanded::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}

.flow-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #e3f2fd;
    border-left: 4px solid var(--primary-color);
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.flow-link i {
    color: var(--primary-color);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.flow-link a {
    color: var(--primary-color);
    text-decoration: none;
    word-break: break-all;
    flex: 1;
}

.flow-link a:hover {
    text-decoration: underline;
}

.flow-notes {
    font-size: 0.95rem;
    color: var(--text-dark);
    padding: 1rem 1.25rem;
    background: #fff9e6;
    border-left: 4px solid #f39c12;
    border-radius: 6px;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    line-height: 1.7;
}

.flow-notes i {
    color: #f39c12;
    font-size: 1.1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.flow-notes-text {
    white-space: pre-wrap; /* Preserve line breaks and spaces */
    word-wrap: break-word;
    flex: 1;
    margin-right: 80px; /* Prevent overlap with author profile picture */
}

/* ========================
   Profile Picture Styles
   ======================== */

/* Profile picture in header */
.header-profile-picture {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 0.5rem;
    object-fit: cover;
    border: 2px solid white;
}

.btn-profile {
    display: flex;
    align-items: center;
}

/* Profile picture in modal */
.profile-picture-section {
    text-align: center;
}

.profile-picture-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

.profile-picture-large {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.profile-picture-actions {
    display: flex;
    gap: 1rem;
}

/* Profile picture on itinerary cards */

.itinerary-sections-view {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section-view-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.section-view-card:hover {
    box-shadow: var(--shadow-md);
}

.section-view-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    cursor: pointer;
    transition: var(--transition);
}

.section-view-header:hover {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
}

.section-view-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.section-view-header h4 {
    flex: 1;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.section-view-header .toggle-icon {
    color: var(--text-light);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.section-view-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1rem;
}

.section-view-content.expanded {
    max-height: 1000px;
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

.section-details {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.section-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #e3f2fd;
    border-left: 3px solid var(--primary-color);
    border-radius: 4px;
    margin-bottom: 1rem;
}

.section-link i {
    color: var(--primary-color);
    font-size: 1rem;
}

.section-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: inline-block;
}

.section-link a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.section-notes {
    background: #fff9e6;
    border-left: 3px solid #ffd54f;
    padding: 0.75rem;
    padding-right: 80px; /* Prevent overlap with author profile picture */
    border-radius: 4px;
}

.section-notes strong {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #f57c00;
    margin-bottom: 0.5rem;
}

.section-notes strong i {
    color: #ffd54f;
}

.section-notes p {
    margin: 0;
    color: var(--text-dark);
    line-height: 1.6;
    white-space: pre-wrap; /* Preserve line breaks */
    word-wrap: break-word;
}

/* ========================
   Responsive Design
   ======================== */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
    }

    .nav-search {
        width: 100%;
        max-width: none;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .itineraries-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .modal-content {
        padding: 1.5rem;
    }

    .toast {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
    }
}

@media (max-width: 480px) {
    .nav-brand {
        font-size: 1.3rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .modal-content {
        padding: 1rem;
    }
}

/* My Rewards Section */
.my-rewards-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-bottom: 1px solid var(--border-color);
}

.rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

#myRewardsMainGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Photo Upload Modal */
.photo-upload-description {
    color: var(--text-light);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.special-header h2 {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--highlight-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
}

.special-description {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.special-description strong {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Photo Guidelines Box */
.photo-guidelines {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: linear-gradient(135deg, #e3f2fd 0%, #f0f7ff 100%);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    padding: 1.25rem;
    margin: 1.5rem 0;
    box-shadow: 0 2px 8px rgba(41, 128, 185, 0.1);
}

.photo-guidelines .guideline-icon {
    flex-shrink: 0;
    font-size: 2rem;
    color: var(--primary-color);
    margin-top: 0.25rem;
}

.photo-guidelines .guideline-content {
    flex: 1;
}

.photo-guidelines h4 {
    margin: 0 0 0.75rem 0;
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 600;
}

.photo-guidelines ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.photo-guidelines li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0;
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.5;
}

.photo-guidelines li i {
    color: var(--highlight-color);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.photo-guidelines strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Publish Success Modal */
.success-header h2 {
    color: var(--highlight-color);
}

.success-content {
    text-align: center;
    padding: 2rem;
}

.success-icon {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.success-content h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.success-steps {
    text-align: left;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.success-step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.2s ease;
}

.success-step:hover {
    transform: translateX(5px);
}

.success-step:nth-child(1) {
    border-left-color: var(--accent-color);
}

.success-step:nth-child(2) {
    border-left-color: var(--highlight-color);
}

.success-step:nth-child(3) {
    border-left-color: var(--primary-color);
}

.success-step:nth-child(4) {
    border-left-color: #B8956A;
}

.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.success-step:nth-child(1) .step-number {
    background: var(--accent-color);
}

.success-step:nth-child(2) .step-number {
    background: var(--highlight-color);
}

.success-step:nth-child(3) .step-number {
    background: var(--primary-color);
}

.success-step:nth-child(4) .step-number {
    background: #B8956A;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.step-content h4 i {
    color: var(--primary-color);
}

.step-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.success-footer {
    margin-top: 2rem;
}

.success-note {
    background: var(--secondary-color);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: var(--primary-color);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.success-note i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.photo-upload-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
}

.photo-preview {
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background: var(--bg-light);
}

.photo-preview img {
    width: 100%;
    height: auto;
    display: block;
}

.photo-upload-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.upload-method {
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.upload-method h4 {
    margin: 0 0 1rem 0;
    color: var(--text-dark);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.upload-method h4 i {
    color: var(--primary-color);
}

.upload-divider {
    text-align: center;
    position: relative;
    margin: 0.5rem 0;
}

.upload-divider span {
    background: var(--bg-white);
    padding: 0 1rem;
    color: var(--text-light);
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.upload-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
    z-index: 0;
}

.qr-code-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.qr-code-container {
    display: inline-block;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.qr-code-container canvas {
    display: block;
}

.qr-instructions {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
    max-width: 300px;
}

.qr-expiry {
    margin: 0.5rem 0 0 0;
    color: #f39c12;
    font-size: 0.85rem;
    font-weight: 600;
}

.qr-expiry i {
    margin-right: 0.25rem;
}

.photo-upload-actions {
    margin-bottom: 1rem;
}

.photo-upload-actions .btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem;
    font-size: 1rem;
}

.photo-upload-actions .btn:hover {
    background: var(--primary-dark);
}

#photoCaptionGroup {
    margin-top: 1rem;
}

/* Crop Modal Styles */
.crop-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: 8px;
    flex-wrap: wrap;
}

.btn-aspect-ratio {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-aspect-ratio:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-aspect-ratio.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.btn-aspect-ratio i {
    font-size: 0.875rem;
}

.crop-container {
    max-width: 100%;
    max-height: 500px;
    margin: 1rem 0;
    overflow: hidden;
    background: #f5f5f5;
    border-radius: 8px;
}

.crop-container img {
    max-width: 100%;
    display: block;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.modal-footer .btn {
    min-width: 120px;
}

.modal-footer .btn-secondary {
    background: #6c757d;
    color: white;
    border: 1px solid #5a6268;
}

.modal-footer .btn-secondary:hover {
    background: #5a6268;
    border-color: #545b62;
}

.btn-large {
    font-size: 1.1rem;
    padding: 0.9rem 2rem;
    font-weight: 600;
}

/* Educational Modal Styles */
.education-content {
    padding: 0.5rem 0;
}

.education-intro {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3f4f6 100%);
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.education-intro p {
    margin: 0;
    color: var(--text-dark);
    line-height: 1.6;
}

.education-section {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: var(--bg-white);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.education-section h3 {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.education-section h3 i {
    color: var(--primary-color);
}

.education-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.education-list li {
    padding: 0.75rem 0 0.75rem 2rem;
    position: relative;
    line-height: 1.6;
    color: var(--text-dark);
    border-bottom: 1px solid #f0f0f0;
}

.education-list li:last-child {
    border-bottom: none;
}

.education-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
    font-size: 1.2rem;
}

.education-list.avoid-list li::before {
    content: '✗';
    color: #e74c3c;
}

.highlight-section {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-left: 4px solid #f39c12;
}

.highlight-section p {
    margin: 0;
    color: var(--text-dark);
    line-height: 1.6;
}

.tip-section {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-left: 4px solid #27ae60;
}

.tip-section h3 i {
    color: #f39c12;
}

.tip-section p {
    margin: 0 0 1rem 0;
    color: var(--text-dark);
    line-height: 1.6;
}

.btn-browse {
    width: 100%;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.education-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
    display: flex;
    justify-content: center;
}

.education-footer .btn-primary {
    width: 100%;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Trip Photo Preview in Moderation */
.trip-photo-preview {
    position: relative;
    margin: 1rem 0;
    border-radius: 8px;
    overflow: visible;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.trip-photo-preview img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.trip-photo-preview img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.photo-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.75);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-view-photo {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 10;
}

.btn-view-photo:hover {
    background: var(--primary-dark);
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.btn-view-photo i {
    margin-right: 0.5rem;
}

/* Trip Photo Viewer */
.trip-photo-viewer {
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(91, 164, 207, 0.05), rgba(156, 136, 255, 0.05));
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.trip-photo-viewer h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.photo-thumbnail {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    max-width: 400px;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-thumbnail:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.photo-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 1rem;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-thumbnail:hover .photo-overlay {
    opacity: 1;
}

/* Video Generation Modal */
.video-generation-description {
    color: var(--text-light);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(91, 164, 207, 0.1), rgba(156, 136, 255, 0.1));
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

/* Video Rewards Section */
#myRewardsContainer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.reward-card {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.reward-card.status-completed {
    border-left: 4px solid var(--highlight-color);
}

.reward-card.status-in_progress {
    border-left: 4px solid var(--accent-color);
}

.reward-card.status-pending {
    border-left: 4px solid var(--text-light);
}

.reward-card.status-failed {
    border-left: 4px solid var(--danger-color);
}

.reward-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.reward-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.reward-status {
    font-size: 0.85rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    background: var(--bg-light);
    text-transform: capitalize;
}

.reward-destination {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.reward-progress {
    margin: 1rem 0;
}

.progress-bar {
    height: 8px;
    background: var(--bg-light);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.85rem;
    color: var(--text-light);
}

.reward-error {
    color: var(--danger-color);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(197, 90, 90, 0.1);
    border-radius: 4px;
}

/* ========================
   Feedback Management
   ======================== */

.feedback-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.feedback-stats .stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.feedback-stats .stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.feedback-stats .stat-card i {
    font-size: 2rem;
    color: var(--accent-color);
}

.feedback-stats .stat-info {
    display: flex;
    flex-direction: column;
}

.feedback-stats .stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
}

.feedback-stats .stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.feedback-filters {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.feedback-filters label {
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
}

.feedback-filters select {
    flex: 1;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95rem;
    background: white;
    color: var(--text-dark);
}

.feedback-table-container {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-white);
}

.feedback-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.feedback-table thead {
    background: var(--primary-color);
    color: white;
}

.feedback-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

.feedback-table tbody tr {
    border-bottom: 1px solid var(--border-light);
    transition: background-color 0.2s ease;
}

.feedback-table tbody tr:hover {
    background: var(--bg-light);
}

.feedback-table td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
}

.feedback-subject {
    font-weight: 500;
    color: var(--text-dark);
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.feedback-message-preview {
    color: var(--text-light);
    font-size: 0.9rem;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.status-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: capitalize;
}

.status-badge.status-new {
    background: #e3f2fd;
    color: #1976d2;
}

.status-badge.status-read {
    background: #fff3e0;
    color: #f57c00;
}

.status-badge.status-responded {
    background: #f3e5f5;
    color: #7b1fa2;
}

.status-badge.status-resolved {
    background: #e8f5e9;
    color: #388e3c;
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: var(--primary-color);
    color: white;
}

.empty-cell, .loading-cell {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

.empty-cell i, .loading-cell i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* Feedback Detail Modal */
.feedback-detail {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 6px;
}

.detail-row.full-width {
    flex-direction: column;
}

.detail-row label {
    font-weight: 600;
    color: var(--text-dark);
    min-width: 150px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-row label i {
    color: var(--accent-color);
}

.detail-row span,
.detail-row p {
    flex: 1;
    color: var(--text-dark);
}

.detail-message {
    white-space: pre-wrap;
    line-height: 1.6;
    margin: 0;
}

.detail-small {
    font-size: 0.85rem;
    color: var(--text-light);
    word-break: break-all;
}

.status-select {
    flex: 1;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95rem;
    background: white;
    color: var(--text-dark);
}

.detail-row textarea {
    flex: 1;
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 80px;
}
