:root {
    --primary-yellow: #FFC107;
    --primary-yellow-hover: #F1C40F;
    --indigo: #4338CA;
    --indigo-light: #EEF2FF;
    --dark-grey: #1A1D20;
    --darker-grey: #111315;
    --light-grey: #F8F9FA;
    --white: #FFFFFF;
    --text-dark: #1E293B;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    --success: #10B981;
    --danger: #EF4444;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --zellij-bg: url('https://www.transparenttextures.com/patterns/moroccan-flower.png');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light-grey);
    color: var(--text-dark);
    font-size: 0.9rem; /* Ajustement global pour compenser le retrait du zoom */
    line-height: 1.5;
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 240px;
    background-color: var(--dark-grey);
    color: var(--white);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-yellow);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-nav {
    list-style: none;
    padding: 12px 0;
    flex: 1;
}

.sidebar-nav li {
    margin: 4px 16px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: #ADB5BD;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.85rem;
}

.sidebar-nav a:hover, .sidebar-nav li.active a {
    background-color: var(--indigo);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(67, 56, 202, 0.3);
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: auto;
}

.logout-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: #ff4d4d !important;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    font-weight: 600;
    font-size: 0.85rem;
}

.logout-link:hover {
    background-color: rgba(255, 77, 77, 0.1);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 240px;
    padding: 20px 24px;
}

/* Header */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    background: var(--white);
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
}

.header-left h1 {
    font-size: 1.25rem;
    font-weight: 700;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.date-filter {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    background-color: #F8F9FA;
    border: 1px solid #E9ECEF;
    border-radius: 12px;
    font-size: 0.95rem;
    color: #444;
    cursor: pointer;
    transition: var(--transition);
}

.date-filter:hover {
    border-color: var(--primary-yellow);
}

.date-filter i {
    color: #6C757D;
    font-size: 1.1rem;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    position: relative;
    padding: 4px 8px;
    border-radius: 8px;
    transition: var(--transition);
}

.user-profile:hover {
    background-color: var(--light-grey);
}

.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-yellow);
}

.user-profile span {
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

/* Zellij Section */
.zellij-pattern {
    background-image: var(--zellij-bg);
    background-color: rgba(255, 255, 255, 0.05); /* Utilisation de RGBA au lieu de background-opacity */
}

/* Dropdown Menu */
.profile-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 200px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 8px;
    display: none;
    flex-direction: column;
    z-index: 1000;
    border: 1px solid var(--border-color);
}

.profile-dropdown.active .dropdown-menu {
    display: flex;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 6px;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: var(--light-grey);
}

.dropdown-item i {
    width: 16px;
    text-align: center;
    color: var(--text-muted);
}

.dropdown-item.logout {
    color: var(--danger);
    border-top: 1px solid var(--border-color);
    margin-top: 4px;
    padding-top: 14px;
}

.dropdown-item.logout i {
    color: var(--danger);
}

/* Dashboard Grid */
.dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* KPIs */
.kpi-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.kpi-card {
    background: var(--white);
    padding: 16px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-top: 4px solid transparent;
    transition: var(--transition);
}

.kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.kpi-card.highlight {
    border-top-color: var(--primary-yellow);
}

.kpi-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(255, 193, 7, 0.15);
    color: var(--primary-yellow);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.kpi-details h3 {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kpi-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.kpi-trend {
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.kpi-trend.positive {
    color: var(--success);
}

/* Content Row */
.content-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
}

.btn-sm {
    padding: 6px 12px;
    background-color: rgba(255, 193, 7, 0.1);
    color: #e0a800;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-sm:hover {
    background-color: var(--primary-yellow);
    color: var(--dark-grey);
}

/* Leaderboard Table */
.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard-table th, .leaderboard-table td {
    padding: 12px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.leaderboard-table th {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
}

.leaderboard-table tbody tr:hover {
    background-color: rgba(248, 249, 250, 0.5);
}

.rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--light-grey);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.rank.gold { background-color: #FFD700; color: #856404; }
.rank.silver { background-color: #E0E0E0; color: #424242; }
.rank.bronze { background-color: #CD7F32; color: #FFF; }

.client-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.client-info img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.trend.positive {
    color: var(--success);
    background-color: rgba(40, 167, 69, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* Summary Content */
.summary-content {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
}

.activity-item {
    margin-bottom: 16px;
}

.activity-item:last-child {
    margin-bottom: 0;
}

.activity-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.activity-value {
    color: var(--text-muted);
}

.progress-bar {
    height: 8px;
    background-color: var(--light-grey);
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: var(--primary-yellow);
    border-radius: 4px;
}

.recent-activity {
    padding: 24px;
}

.recent-activity h3 {
    font-size: 1rem;
    margin-bottom: 16px;
}

.activity-list {
    list-style: none;
}

.activity-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    position: relative;
}

.activity-list li:last-child {
    margin-bottom: 0;
}

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 193, 7, 0.15);
    color: #d39e00;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    z-index: 2;
}

.activity-text {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.activity-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
    .content-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .main-content {
        margin-left: 0;
    }
    .menu-toggle {
        display: block;
    }
}

/* =========================================================================
   NEW PAGES STYLES (Users List & Add User)
   ========================================================================= */

/* Utilities */
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-dark { color: var(--text-dark); }
.text-sm { font-size: 0.85rem; }
.text-primary { color: #007bff; }
.text-warning { color: #ffc107; }
.text-danger { color: var(--danger); }
.d-block { display: block; }
.mt-3 { margin-top: 16px; }

/* Page Layout */
.page-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.page-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.page-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.title-icon {
    font-size: 1.8rem;
    color: var(--dark-grey); /* Similar to the screenshot */
}

.page-title-group h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-grey);
}

.page-actions {
    display: flex;
    gap: 12px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background-color: var(--dark-grey); /* The "Nouvelle Caisse" button in screenshot is dark blue/grey */
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--darker-grey);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
}

.btn-outline:hover {
    background-color: var(--light-grey);
}

.btn-dark {
    background-color: var(--dark-grey);
    color: var(--white);
    border: 1px solid var(--dark-grey);
}

.btn-dark:hover {
    background-color: var(--darker-grey);
}

.btn-icon {
    background: none;
    border: none;
    padding: 6px;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-icon:hover {
    background-color: var(--light-grey);
}

/* Action Buttons Group */
.action-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 4px;
}

/* Tables */
.table-card {
    padding: 0; /* Remove internal padding for edge-to-edge table */
    overflow: hidden;
}

.table-toolbar {
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.search-box {
    position: relative;
    width: 300px;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-box input {
    width: 100%;
    padding: 10px 16px 10px 36px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.1);
}

.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th, .data-table td {
    padding: 16px 24px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.data-table th {
    background-color: var(--dark-grey);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table tbody tr:hover {
    background-color: rgba(248, 249, 250, 0.8);
}

/* Forms */
.form-card {
    padding: 32px;
}

.form-row {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.half {
    flex: 1 1 calc(50% - 12px);
    min-width: 250px;
}

.form-group.full {
    flex: 1 1 100%;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
}

.required {
    color: var(--danger);
}

.form-control {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-dark);
    outline: none;
    transition: var(--transition);
    background-color: #FAFAFA;
}

.form-control:focus {
    border-color: var(--primary-yellow);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Profile Specific */
.profile-avatar-section {
    display: flex;
    align-items: center;
    gap: 32px;
    background: var(--white);
    padding: 32px;
    border-radius: var(--border-radius);
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
}

.profile-avatar-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
}

/* =========================================================================
   ENHANCED DASHBOARD STYLES (Analytics & Trending)
   ========================================================================= */

.analytics-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    margin-top: 24px;
}

.analytics-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.report-analytics-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow-md);
}

.report-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.report-header-flex h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 600;
}

.filter-pills {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.pill {
    padding: 8px 18px;
    background: #f1f3f5;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.pill.active {
    background: var(--dark-grey);
    color: var(--white);
}

.pill:hover:not(.active) {
    background: #e9ecef;
}

.chart-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.chart-stat-box h4 {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: 500;
}

.chart-stat-box .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-grey);
}

.chart-stat-box .growth {
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 8px;
}

/* Trending List Styles */
.trending-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
}

.trending-list {
    list-style: none;
    padding: 0;
}

.trending-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.trending-item:last-child {
    border-bottom: none;
}

.trending-item:hover {
    background-color: #fafafa;
}

.item-img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
}

.item-details {
    flex: 1;
}

.item-details h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.item-details span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.item-count {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark-grey);
}

@media (max-width: 1200px) {
    .analytics-layout {
        grid-template-columns: 1fr;
    }
}

.profile-avatar-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white);
    box-shadow: var(--shadow-sm);
}

.avatar-edit-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 36px;
    height: 36px;
    background: var(--primary-yellow);
    color: var(--dark-grey);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.avatar-edit-btn:hover {
    transform: scale(1.1);
}

.profile-info-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.profile-info-header p {
    color: var(--text-muted);
}

.form-section-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.form-section-head h3 {
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    animation: modalFadeIn 0.3s ease-out;
}

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

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* =========================================================================
   AI AGENT & TRIP PLANNER STYLES
   ========================================================================= */

.ai-assistant-wrapper {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 24px;
    height: calc(100vh - 160px);
}

.chat-container {
    background: var(--white);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.chat-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

.ai-avatar-circle {
    width: 40px;
    height: 40px;
    background: var(--primary-yellow);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-grey);
    font-size: 1.2rem;
}

.chat-messages {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.message {
    max-width: 80%;
    padding: 16px;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.message.ai {
    align-self: flex-start;
    background: #F8FAFC;
    color: var(--text-dark);
    border-bottom-left-radius: 4px;
}

.message.user {
    align-self: flex-end;
    background: var(--dark-grey);
    color: var(--white);
    border-bottom-right-radius: 4px;
}

.chat-input-area {
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
}

.chat-input {
    flex: 1;
    padding: 12px 18px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    outline: none;
    font-family: inherit;
    transition: var(--transition);
}

.chat-input:focus {
    border-color: var(--primary-yellow);
}

.trip-generator-panel {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}

.itinerary-card {
    background: #F8FAFC;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #E2E8F0;
    transition: var(--transition);
    cursor: pointer;
}

.itinerary-card:hover {
    border-color: var(--primary-yellow);
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
}

.itinerary-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.itinerary-title {
    font-weight: 700;
    font-size: 1rem;
}

.points-badge {
    padding: 4px 10px;
    background: rgba(255, 193, 7, 0.15);
    color: #d39e00;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.route-step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.route-step i {
    width: 20px;
    text-align: center;
}

.ai-pulse {
    display: inline-flex;
    gap: 4px;
}

.ai-pulse span {
    width: 6px;
    height: 6px;
    background: #CBD5E1;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.ai-pulse span:nth-child(2) { animation-delay: 0.2s; }
.ai-pulse span:nth-child(3) { animation-delay: 0.4s; }

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.5); opacity: 1; }
}

/* AI Personality & Profile Styles */
.ai-profile-summary {
    background: var(--dark-grey);
    color: var(--white);
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.ai-profile-summary img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary-yellow);
}

.ai-profile-stats {
    flex: 1;
}

.ai-profile-stats h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.ai-profile-stats .points {
    color: var(--primary-yellow);
    font-weight: 700;
    font-size: 0.85rem;
}

.interest-filters {
    margin-bottom: 20px;
}

.interest-filters h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    font-weight: 600;
}

.filter-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.interest-pill {
    padding: 6px 14px;
    background: #F1F5F9;
    color: var(--text-muted);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.interest-pill:hover {
    background: #E2E8F0;
}

.interest-pill.active {
    background: rgba(255, 193, 7, 0.15);
    color: #d39e00;
    border-color: var(--primary-yellow);
}
