/* 
   Travel CRM Design System
   Theme: Premium Orange & White
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color Palette matching the logo */
    --logo-navy: #00205B;
    --logo-navy-hover: #00163F;
    --logo-navy-light: #EBF1FC;

    --logo-orange: #E55B13;
    --logo-orange-hover: #C6490A;
    --logo-orange-light: #FDF2EB;
    --logo-orange-glow: rgba(229, 91, 19, 0.15);

    /* Variable Mapping Aliases */
    --primary-orange: var(--logo-orange);
    --primary-orange-hover: var(--logo-orange-hover);
    --primary-orange-light: var(--logo-orange-light);
    --primary-orange-glow: var(--logo-orange-glow);

    --bg-white: #FFFFFF;
    --bg-light: #F4F6F9;
    /* Off-white background */
    --bg-sidebar: #00205B;
    /* Dark Navy Sidebar matching logo */

    --text-main: #00205B;
    /* Dark Navy main text */
    --text-muted: #4B5E7F;
    --text-light: #7E93B5;

    --border-color: #DDE3EC;
    --border-focus: #E55B13;

    /* Semantic Colors */
    --success: #10B981;
    --success-light: #ECFDF5;
    --warning: #F59E0B;
    --warning-light: #FEF3C7;
    --danger: #EF4444;
    --danger-light: #FEE2E2;
    --info: #3B82F6;
    --info-light: #EFF6FF;

    /* Shadow and Border Radius */
    --shadow-sm: 0 1px 3px rgba(0, 32, 91, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 32, 91, 0.08);
    --shadow-lg: 0 12px 24px rgba(0, 32, 91, 0.12);
    --shadow-orange: 0 8px 16px rgba(229, 91, 19, 0.25);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    scrollbar-width: thin;
    scrollbar-color: var(--logo-orange) var(--border-color);
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    overflow: hidden;
    height: 100vh;
    display: flex;
}

/* Scrollbar customization */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--text-light);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--logo-orange);
}

/* Layout */
.app-container {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar styling */
.sidebar {
    width: 280px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
    z-index: 10;
    flex-shrink: 0;
}

.sidebar-logo {
    background: #ffffff;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(0, 32, 91, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
    position: relative;
    overflow: hidden;
}

.logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo-link:hover {
    transform: scale(1.06);
}

.logo-img {
    max-height: 56px; /* Zoomed in / larger logo height */
    width: auto;
    display: block;
    animation: logoZoomIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes logoZoomIn {
    from {
        transform: scale(0.85);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
}

.logo-text span {
    color: var(--logo-orange);
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.nav-group-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin: 20px 0 8px 12px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.925rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
    margin-bottom: 4px;
}

.nav-link svg {
    width: 20px;
    height: 20px;
    stroke: rgba(255, 255, 255, 0.6);
    stroke-width: 2;
    fill: none;
    transition: var(--transition);
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: white;
}

.nav-link:hover svg {
    stroke: white;
}

.nav-link.active {
    background-color: var(--logo-orange);
    color: white;
    font-weight: 600;
    box-shadow: var(--shadow-orange);
}

.nav-link.active svg {
    stroke: white;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    background-color: var(--logo-orange-light);
    color: var(--logo-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.user-info {
    flex: 1;
    overflow: hidden;
}

.user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.user-role {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Content Area */
.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.main-header {
    height: 70px;
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    flex-shrink: 0;
}

.header-title-area {
    display: flex;
    flex-direction: column;
}

.header-page-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

.header-page-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
}

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

.search-bar {
    position: relative;
    width: 280px;
}

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

.search-input:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px var(--primary-orange-glow);
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    stroke: var(--text-light);
    stroke-width: 2;
    fill: none;
}

.action-btn-circle {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.action-btn-circle:hover {
    background-color: var(--primary-orange-light);
    border-color: var(--primary-orange);
}

.action-btn-circle:hover svg {
    stroke: var(--primary-orange);
}

.action-btn-circle svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-muted);
    stroke-width: 2;
    fill: none;
}

.badge-dot {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary-orange);
    border: 2px solid white;
}

/* Page Containers */
.page-content-container {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
}

.page-view {
    display: none;
    animation: fadeIn 0.25s ease-out forwards;
}

.page-view.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cards & Layout Grid */
.grid-cols-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.grid-cols-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.grid-cols-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.grid-aside {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

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

.card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
}

.card-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: -16px;
    margin-bottom: 16px;
}

/* Stat Cards */
.stat-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-main);
    margin-top: 4px;
}

.stat-value span {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-orange);
}

.stat-change {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.775rem;
    font-weight: 600;
    margin-top: 6px;
}

.stat-change.up {
    color: var(--success);
}

.stat-change.down {
    color: var(--danger);
}

.stat-icon-box {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon-box.orange {
    background-color: var(--primary-orange-light);
    color: var(--primary-orange);
}

.stat-icon-box.green {
    background-color: var(--success-light);
    color: var(--success);
}

.stat-icon-box.amber {
    background-color: var(--warning-light);
    color: var(--warning);
}

.stat-icon-box.blue {
    background-color: var(--info-light);
    color: var(--info);
}

.stat-icon-box svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* Button styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    outline: none;
}

.btn-primary {
    background-color: var(--primary-orange);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--primary-orange-hover);
    box-shadow: var(--shadow-orange);
}

.btn-secondary {
    background-color: white;
    border-color: var(--border-color);
    color: var(--text-main);
}

.btn-secondary:hover {
    background-color: var(--bg-light);
    border-color: var(--text-light);
}

.btn-success {
    background-color: var(--success);
    color: white;
}

.btn-success:hover {
    background-color: #0d9488;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.775rem;
    border-radius: 6px;
}

.btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* Tables */
.table-container {
    overflow-x: auto;
    width: 100%;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.custom-table th {
    padding: 14px 18px;
    background-color: var(--bg-light);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

.custom-table td {
    padding: 16px 18px;
    font-size: 0.875rem;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.custom-table tr:last-child td {
    border-bottom: none;
}

.custom-table tr:hover td {
    background-color: var(--primary-orange-light);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 0.725rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.badge.orange {
    background-color: var(--primary-orange-light);
    color: var(--primary-orange);
}

.badge.green {
    background-color: var(--success-light);
    color: var(--success);
}

.badge.amber {
    background-color: var(--warning-light);
    color: var(--warning);
}

.badge.red {
    background-color: var(--danger-light);
    color: var(--danger);
}

.badge.blue {
    background-color: var(--info-light);
    color: var(--info);
}

/* Forms & Inputs */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    outline: none;
    transition: var(--transition);
    background-color: white;
    color: var(--text-main);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px var(--primary-orange-glow);
}

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

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

/* Modal Popup container */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background-color: white;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transform: scale(0.95);
    transition: var(--transition);
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

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

.modal-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
}

.close-btn {
    background: none;
    border: none;
    cursor: pointer;
    width: 24px;
    height: 24px;
    color: var(--text-muted);
}

.close-btn svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.modal-body {
    padding: 24px;
}

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

/* Kanban / Pipeline View */
.pipeline-board {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 16px;
    height: calc(100vh - 210px);
}

.pipeline-column {
    flex: 0 0 280px;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    max-height: 100%;
}

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

.column-title {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.column-count {
    background-color: var(--border-color);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.column-cards {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.deal-card {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    cursor: grab;
    transition: var(--transition);
}

.deal-card:hover {
    border-color: var(--primary-orange);
    box-shadow: var(--shadow-md);
}

.deal-card:active {
    cursor: grabbing;
}

.deal-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}

.deal-meta {
    font-size: 0.775rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

.deal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--bg-light);
    padding-top: 8px;
    margin-top: 8px;
}

.deal-amount {
    font-weight: 700;
    color: var(--primary-orange);
    font-size: 0.85rem;
}

.deal-agent {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Shared Chat Inbox */
.inbox-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background-color: white;
    height: calc(100vh - 200px);
    overflow: hidden;
}

.inbox-sidebar {
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.inbox-search-container {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.chat-list {
    flex: 1;
    overflow-y: auto;
}

.chat-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--bg-light);
    cursor: pointer;
    transition: var(--transition);
}

.chat-item:hover {
    background-color: var(--primary-orange-light);
}

.chat-item.active {
    background-color: var(--primary-orange-light);
    border-left: 4px solid var(--primary-orange);
}

.chat-item-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background-color: var(--primary-orange-light);
    color: var(--primary-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    position: relative;
    flex-shrink: 0;
}

.channel-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #25D366;
    /* WhatsApp Green */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: 2px solid white;
}

.channel-badge svg {
    width: 10px;
    height: 10px;
    fill: currentColor;
}

.chat-item-details {
    flex: 1;
    overflow: hidden;
}

.chat-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.chat-item-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.chat-item-time {
    font-size: 0.725rem;
    color: var(--text-light);
}

.chat-item-preview {
    font-size: 0.775rem;
    color: var(--text-muted);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.inbox-view {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #F8FAFC;
}

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

.chat-header-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-header-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.chat-header-status {
    font-size: 0.75rem;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-header-status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--success);
    display: inline-block;
}

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

.msg-wrapper {
    display: flex;
    max-width: 70%;
}

.msg-wrapper.received {
    align-self: flex-start;
}

.msg-wrapper.sent {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.msg-bubble {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.received .msg-bubble {
    background-color: white;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-top-left-radius: 2px;
}

.sent .msg-bubble {
    background-color: var(--primary-orange);
    color: white;
    border-top-right-radius: 2px;
}

.msg-meta {
    font-size: 0.675rem;
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.received .msg-meta {
    color: var(--text-light);
}

.sent .msg-meta {
    color: rgba(255, 255, 255, 0.75);
}

.inbox-footer {
    padding: 16px 24px;
    background-color: white;
    border-top: 1px solid var(--border-color);
}

.inbox-quick-replies {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.quick-reply-btn {
    padding: 6px 12px;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.quick-reply-btn:hover {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
    background-color: var(--primary-orange-light);
}

.inbox-input-container {
    display: flex;
    gap: 12px;
    align-items: center;
}

.inbox-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    outline: none;
    font-size: 0.875rem;
    transition: var(--transition);
}

.inbox-input:focus {
    border-color: var(--primary-orange);
}

/* Quote Calculator */
.calc-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.line-items-table th {
    font-size: 0.75rem;
    padding: 8px 12px;
}

.line-items-table td {
    padding: 10px 12px;
}

.line-item-input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    outline: none;
    font-size: 0.825rem;
}

.line-item-input:focus {
    border-color: var(--primary-orange);
}

.summary-card {
    background-color: var(--primary-orange-light);
    border: 1px solid #FFDCD4;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #FFC2B5;
    font-size: 0.875rem;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.total {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-orange);
    border-top: 1px solid #FFC2B5;
    padding-top: 14px;
    margin-top: 10px;
}

/* Itinerary Builder styles */
.itinerary-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}

.itinerary-main {
    min-width: 0;
}

.itinerary-sidebar {
    min-width: 0;
}

.itinerary-days-container {
    min-height: 100px;
    padding: 4px 0;
}

.itinerary-empty-state {
    text-align: center;
    padding: 48px 24px;
}

.itinerary-day-box {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    overflow: hidden;
    background-color: white;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
    position: relative;
}

.itinerary-day-box:hover {
    border-color: var(--primary-orange);
    box-shadow: 0 4px 20px rgba(229, 91, 19, 0.08);
}

.itinerary-day-box.dragging {
    opacity: 0.5;
    border-color: var(--primary-orange);
    transform: scale(0.98);
}

.itinerary-day-box.drag-over {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(229, 91, 19, 0.15);
}

.itinerary-day-header {
    background: linear-gradient(135deg, #f8f9fb 0%, #f1f3f7 100%);
    padding: 14px 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
    cursor: grab;
    user-select: none;
    transition: background-color 0.2s ease;
}

.itinerary-day-header:active {
    cursor: grabbing;
}

.itinerary-day-header:hover {
    background: linear-gradient(135deg, #f1f3f7 0%, #e8ebf0 100%);
}

.itinerary-day-drag-handle {
    display: flex;
    align-items: center;
    color: var(--text-light);
    cursor: grab;
    flex-shrink: 0;
}

.itinerary-day-drag-handle:active {
    cursor: grabbing;
}

.day-badge {
    background: linear-gradient(135deg, var(--primary-orange), #ff7a33);
    color: white;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(229, 91, 19, 0.25);
}

.itinerary-day-title-input {
    border: none;
    background: transparent;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-main);
    flex: 1;
    padding: 4px 8px;
    border-radius: 4px;
    outline: none;
    transition: background-color 0.2s ease;
    min-width: 0;
}

.itinerary-day-title-input:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.itinerary-day-title-input:focus {
    background-color: white;
    box-shadow: 0 0 0 2px rgba(229, 91, 19, 0.2);
}

.itinerary-day-actions {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-shrink: 0;
}

.itinerary-day-actions .btn {
    padding: 4px 8px;
    font-size: 0.72rem;
}

.itinerary-day-collapse-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    color: var(--text-muted);
}

.itinerary-day-collapse-btn:hover {
    background-color: rgba(0,0,0,0.05);
    color: var(--text-main);
}

.itinerary-day-collapse-btn svg {
    transition: transform 0.3s ease;
}

.itinerary-day-collapse-btn.collapsed svg {
    transform: rotate(-90deg);
}

.itinerary-day-body {
    padding: 16px;
    transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.35s ease;
    overflow: hidden;
}

.itinerary-day-body.collapsed {
    max-height: 0 !important;
    padding: 0 16px;
    opacity: 0;
}

/* Day detail fields */
.itinerary-day-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
    padding: 12px;
    background-color: var(--bg-light);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.itinerary-detail-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.itinerary-detail-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.itinerary-detail-input {
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.8rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: white;
}

.itinerary-detail-input:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(229, 91, 19, 0.1);
}

/* Timeline Events */
.itinerary-events-timeline {
    position: relative;
    padding-left: 24px;
}

.itinerary-events-timeline::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-orange) 0%, var(--border-color) 100%);
    border-radius: 2px;
}

.itinerary-event-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin-bottom: 10px;
    background-color: white;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.itinerary-event-card:hover {
    border-color: var(--primary-orange);
    box-shadow: 0 2px 8px rgba(229, 91, 19, 0.08);
}

.itinerary-event-card::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 16px;
    width: 10px;
    height: 10px;
    background-color: var(--primary-orange);
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--primary-orange);
    z-index: 1;
}

.event-time-badge {
    background: linear-gradient(135deg, #00205B, #1a3a72);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.event-details {
    flex: 1;
    min-width: 0;
}

.event-title-input {
    border: none;
    background: transparent;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-main);
    width: 100%;
    padding: 2px 6px;
    border-radius: 4px;
    outline: none;
    transition: background-color 0.2s ease;
}

.event-title-input:hover {
    background-color: var(--bg-light);
}

.event-title-input:focus {
    background-color: var(--bg-light);
    box-shadow: inset 0 0 0 1px rgba(229, 91, 19, 0.3);
}

.event-desc-input {
    border: none;
    background: transparent;
    font-size: 0.775rem;
    color: var(--text-muted);
    width: 100%;
    padding: 2px 6px;
    border-radius: 4px;
    outline: none;
    margin-top: 2px;
    resize: none;
    transition: background-color 0.2s ease;
}

.event-desc-input:hover {
    background-color: var(--bg-light);
}

.event-desc-input:focus {
    background-color: var(--bg-light);
    box-shadow: inset 0 0 0 1px rgba(229, 91, 19, 0.3);
}

.event-time-input {
    border: 1px solid transparent;
    background: transparent;
    font-weight: 700;
    font-size: 0.72rem;
    color: white;
    width: 72px;
    padding: 2px 4px;
    border-radius: 4px;
    outline: none;
    text-align: center;
    transition: background-color 0.2s ease;
}

.event-time-input:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.event-delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    opacity: 0;
}

.itinerary-event-card:hover .event-delete-btn {
    opacity: 1;
}

.event-delete-btn:hover {
    color: var(--danger);
    background-color: rgba(239, 68, 68, 0.08);
}

.itinerary-add-event-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-sm);
    background-color: transparent;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 4px;
}

.itinerary-add-event-btn:hover {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
    background-color: rgba(229, 91, 19, 0.03);
}

/* Content Library cards */
.library-content-card {
    border: 1px solid var(--border-color);
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.library-content-card:hover {
    border-color: var(--primary-orange);
    background-color: rgba(229, 91, 19, 0.03);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.library-content-card .library-category {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-orange);
    margin-bottom: 2px;
}

.library-content-card .library-title {
    font-weight: 700;
    font-size: 0.825rem;
    color: var(--text-main);
    margin-bottom: 3px;
}

.library-content-card .library-desc {
    font-size: 0.725rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.library-content-card .library-add-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.2s ease;
    color: var(--primary-orange);
}

.library-content-card:hover .library-add-icon {
    opacity: 1;
}

/* Stat boxes */
.itinerary-stat-box {
    background: linear-gradient(135deg, var(--bg-light), #f1f3f7);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}

.itinerary-stat-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-orange);
}

.itinerary-stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 2px;
}

/* Notes textarea in day details */
.itinerary-notes-input {
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.8rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: white;
    resize: vertical;
    min-height: 34px;
    font-family: inherit;
}

.itinerary-notes-input:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(229, 91, 19, 0.1);
}

/* Day delete confirmation overlay */
.itinerary-day-delete-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 10;
    border-radius: var(--radius-md);
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 1024px) {
    .itinerary-layout {
        grid-template-columns: 1fr;
    }
    
    .itinerary-sidebar .card {
        position: static !important;
    }
}

@media (max-width: 768px) {
    .itinerary-day-header {
        flex-wrap: wrap;
    }
    
    .itinerary-day-details {
        grid-template-columns: 1fr;
    }
    
    .itinerary-day-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* Dropzone for documents */
.dropzone {
    border: 2px dashed var(--border-color);
    padding: 32px;
    border-radius: var(--radius-md);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background-color: var(--bg-light);
}

.dropzone:hover {
    border-color: var(--primary-orange);
    background-color: var(--primary-orange-light);
}

.dropzone-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    stroke: var(--text-light);
    stroke-width: 1.5;
    fill: none;
}

.dropzone:hover .dropzone-icon {
    stroke: var(--primary-orange);
}

/* Grid columns layout utilities */
.gap-12 {
    gap: 12px;
}

.gap-16 {
    gap: 16px;
}

.gap-24 {
    gap: 24px;
}

.mb-24 {
    margin-bottom: 24px;
}

.w-full {
    width: 100%;
}

.custom-filter-bar {
    display: flex;
    gap: 12px;
    margin: 0 24px 24px 24px;
    flex-wrap: wrap;
    background: var(--bg-light);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    align-items: flex-end;
}

/* Mobile Toggle Elements Styling */
.mobile-toggle-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-right: 12px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.mobile-toggle-btn:hover {
    background-color: var(--primary-orange-light);
}

.mobile-toggle-btn svg {
    width: 24px;
    height: 24px;
    stroke: var(--text-main);
    stroke-width: 2.5;
    fill: none;
}

.mobile-sidebar-close {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.mobile-sidebar-close:hover {
    background-color: var(--primary-orange-light);
}

.mobile-sidebar-close svg {
    width: 24px;
    height: 24px;
    stroke: var(--text-main);
    stroke-width: 2.5;
    fill: none;
}

.mobile-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.mobile-sidebar-overlay.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

/* Responsive adjustments */
@media(max-width: 1200px) {
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 768px) {
    .sidebar {
        display: flex !important;
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        z-index: 1000;
        box-shadow: none;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .sidebar.active {
        transform: translateX(280px);
        box-shadow: var(--shadow-lg);
    }

    .mobile-toggle-btn {
        display: flex !important;
    }

    .mobile-sidebar-close {
        display: block !important;
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
    }

    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4,
    .grid-aside {
        grid-template-columns: 1fr;
    }

    .calc-container {
        grid-template-columns: 1fr;
    }

    .main-header {
        padding: 0 16px;
    }

    .header-page-subtitle {
        display: none;
    }

    .search-bar {
        display: none;
    }

    .header-page-title {
        font-size: 1.05rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 180px;
    }

    .page-content-container {
        padding: 16px 12px;
    }

    .card {
        padding: 16px 12px;
    }

    .custom-filter-bar {
        margin: 0 0 16px 0;
        padding: 12px;
        gap: 8px;
    }
}



/* Navigation Dropdown Menu Styles */
.nav-dropdown {
    margin-bottom: 4px;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.925rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
    user-select: none;
    position: relative;
}

.nav-dropdown-toggle:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: white;
}

.nav-dropdown-toggle .nav-icon {
    width: 20px;
    height: 20px;
    stroke: rgba(255, 255, 255, 0.6);
    stroke-width: 2;
    fill: none;
    transition: var(--transition);
}

.nav-dropdown-toggle:hover .nav-icon {
    stroke: white;
}

.nav-dropdown-toggle .chevron-icon {
    margin-left: auto;
    width: 14px;
    height: 14px;
    stroke: rgba(255, 255, 255, 0.6);
    stroke-width: 2.5;
    fill: none;
    transition: transform 0.25s ease;
}

.nav-dropdown.open .nav-dropdown-toggle .chevron-icon {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding-left: 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-dropdown.open .nav-dropdown-menu {
    max-height: 250px;
    /* Adjust according to items count */
    margin-top: 4px;
    margin-bottom: 4px;
}

.nav-sub-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-sub-link:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.05);
}

.nav-sub-link.active {
    color: var(--logo-orange) !important;
    font-weight: 600;
    background-color: rgba(229, 91, 19, 0.08);
}

.sub-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    transition: var(--transition);
}

.nav-sub-link:hover .sub-dot {
    background-color: white;
}

.nav-sub-link.active .sub-dot {
    background-color: var(--logo-orange);
    box-shadow: 0 0 8px var(--logo-orange);
}

/* AI Generator Card Styles */
.ai-generator-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(229, 91, 19, 0.2);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 24px rgba(229, 91, 19, 0.06);
    overflow: hidden;
    position: relative;
}

.ai-generator-header {
    background: linear-gradient(90deg, rgba(229, 91, 19, 0.05) 0%, rgba(0, 32, 91, 0.03) 100%);
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.ai-badge-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-orange), #ff7a33);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(229, 91, 19, 0.25);
}

.ai-mode-pills {
    display: flex;
    gap: 6px;
    background: white;
    padding: 4px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
}

.ai-pill-btn {
    border: none;
    background: transparent;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.ai-pill-btn.active {
    background: var(--logo-navy);
    color: white;
    box-shadow: 0 2px 6px rgba(0, 32, 91, 0.2);
}

.ai-generator-body {
    padding: 20px;
}

.ai-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.sub-dest-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    background: white;
    border: 1px solid var(--border-color);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.sub-dest-chip:hover {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
}

.sub-dest-chip.active {
    background: linear-gradient(135deg, var(--logo-navy), #1a3a72);
    color: white;
    border-color: var(--logo-navy);
    box-shadow: 0 2px 8px rgba(0, 32, 91, 0.2);
}

.sub-dest-chip .chip-icon {
    font-size: 0.85rem;
}