/* ============================================
   ITINERARYPRO — GLOBAL STYLES
   ============================================ */
:root {
    --primary: #667eea;
    --primary-dark: #5a6fd6;
    --secondary: #764ba2;
    --gradient: linear-gradient(135deg, #667eea, #764ba2);
    --gradient-soft: linear-gradient(135deg, #f0f2ff, #f5f0ff);
    --success: #38a169;
    --danger: #e53e3e;
    --warning: #d69e2e;
    --text-dark: #1a202c;
    --text-mid: #4a5568;
    --text-light: #718096;
    --text-muted: #a0aec0;
    --border: #e2e8f0;
    --bg-light: #f7fafc;
    --bg-page: #f0f4f8;
    --sidebar-w: 260px;
    --topbar-h: 72px;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.10);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; color: var(--text-dark); }

/* ===========================
   AUTH PAGES
   =========================== */
.auth-body {
    min-height: 100vh;
    background: var(--gradient);
    background-attachment: fixed;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.auth-body::before {
    content: '';
    position: fixed; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.auth-wrapper {
    width: 100%; max-width: 560px;
    position: relative; z-index: 1;
}

.auth-card {
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.25);
}

.auth-brand { text-align: center; margin-bottom: 32px; }
.auth-logo {
    font-size: 3rem;
    width: 80px; height: 80px;
    background: var(--gradient);
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 8px 24px rgba(102,126,234,0.4);
}
.auth-brand h1 { font-size: 1.8rem; font-weight: 800; color: var(--text-dark); margin-bottom: 6px; }
.auth-brand p { color: var(--text-light); font-size: 0.9rem; }

.form-label { font-size: 0.82rem; font-weight: 600; color: var(--text-mid); margin-bottom: 6px; }

.input-group-auth {
    position: relative; display: flex; align-items: center;
}
.input-group-auth > i:first-child {
    position: absolute; left: 14px;
    color: var(--text-muted); font-size: 1rem; z-index: 2; pointer-events: none;
}
.auth-input {
    padding: 12px 14px 12px 42px !important;
    border: 2px solid var(--border) !important;
    border-radius: 10px !important;
    font-size: 0.9rem !important;
    transition: all 0.2s;
    background: var(--bg-light) !important;
}
.auth-input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.12) !important;
    background: #fff !important;
    outline: none;
}
.btn-eye {
    position: absolute; right: 12px;
    background: none; border: none; color: var(--text-muted);
    cursor: pointer; padding: 4px; z-index: 2;
    transition: color 0.2s;
}
.btn-eye:hover { color: var(--primary); }

.btn-auth-primary {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 13px 24px; border-radius: 10px;
    background: var(--gradient); color: #fff;
    font-weight: 600; font-size: 0.95rem;
    border: none; cursor: pointer; text-decoration: none;
    transition: all 0.2s; box-shadow: 0 4px 15px rgba(102,126,234,0.35);
}
.btn-auth-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(102,126,234,0.45); color: #fff; }
.btn-auth-primary:active { transform: translateY(0); }

.btn-auth-link { color: var(--primary); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.btn-auth-link:hover { color: var(--secondary); }

.auth-footer-text {
    text-align: center; margin-top: 24px; margin-bottom: 0;
    font-size: 0.88rem; color: var(--text-light);
}
.auth-footer-text a { color: var(--primary); font-weight: 600; text-decoration: none; }
.auth-footer-text a:hover { color: var(--secondary); }

/* Alerts */
.alert-success-custom {
    background: #f0fff4; border: 1px solid #9ae6b4; color: #276749;
    border-radius: 10px; padding: 14px 18px; font-size: 0.88rem;
    display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px;
}
.alert-success-custom i { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }

.alert-danger-custom {
    background: #fff5f5; border: 1px solid #feb2b2; color: #c53030;
    border-radius: 10px; padding: 14px 18px; font-size: 0.88rem;
    display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px;
}
.alert-danger-custom i { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }

/* Verify page icons */
.verify-icon {
    width: 90px; height: 90px;
    border-radius: 50%; margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.8rem;
}
.verify-icon.success { background: #f0fff4; color: #38a169; }
.verify-icon.info    { background: #ebf8ff; color: #3182ce; }
.verify-icon.warning { background: #fffff0; color: #d69e2e; }
.verify-icon.danger  { background: #fff5f5; color: #e53e3e; }

/* ===========================
   DASHBOARD LAYOUT
   =========================== */
.dashboard-body {
    background: var(--bg-page);
    min-height: 100vh;
    display: flex;
}

/* SIDEBAR */
.sidebar {
    width: var(--sidebar-w);
    min-height: 100vh;
    background: linear-gradient(180deg, #1a1f3a 0%, #2d3561 100%);
    position: fixed; top: 0; left: 0; bottom: 0;
    z-index: 200;
    display: flex; flex-direction: column;
    transition: transform 0.3s ease;
    overflow-y: auto; overflow-x: hidden;
}

.sidebar-brand {
    display: flex; align-items: center; gap: 12px;
    padding: 24px 20px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-logo {
    width: 42px; height: 42px;
    background: var(--gradient); border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(102,126,234,0.4);
}
.brand-title { font-weight: 800; font-size: 1.05rem; color: #fff; display: block; }
.brand-sub { font-size: 0.7rem; color: rgba(255,255,255,0.5); display: block; }

.sidebar-user {
    display: flex; align-items: center; gap: 12px;
    padding: 20px; border-bottom: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
}
.sidebar-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--gradient); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; font-weight: 700; flex-shrink: 0;
    overflow: hidden; border: 2px solid rgba(255,255,255,0.2);
}
.sidebar-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-user-name { font-size: 0.85rem; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
.sidebar-user-company { font-size: 0.72rem; color: rgba(255,255,255,0.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }

.sidebar-nav { flex: 1; padding: 16px 12px; }
.nav-section-label {
    font-size: 0.65rem; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; color: rgba(255,255,255,0.3);
    padding: 0 8px; margin-bottom: 6px;
}
.nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 14px; border-radius: 10px; color: rgba(255,255,255,0.65);
    text-decoration: none; font-size: 0.88rem; font-weight: 500;
    transition: all 0.2s; margin-bottom: 2px;
}
.nav-item:hover { background: rgba(255,255,255,0.08); color: #fff; }
.nav-item.active {
    background: var(--gradient); color: #fff;
    box-shadow: 0 4px 12px rgba(102,126,234,0.35);
}
.nav-item i { font-size: 1.1rem; width: 20px; text-align: center; }
.logout-item:hover { background: rgba(229,62,62,0.15) !important; color: #fc8181 !important; }

.sidebar-footer {
    padding: 16px 20px; border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.72rem; color: rgba(255,255,255,0.3); text-align: center;
}

/* Overlay for mobile */
.sidebar-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.5); z-index: 190;
}

/* MAIN CONTENT */
.dashboard-main {
    margin-left: var(--sidebar-w);
    min-height: 100vh;
    flex: 1;
    display: flex; flex-direction: column;
    transition: margin-left 0.3s ease;
}

/* TOPBAR */
.topbar {
    height: var(--topbar-h);
    background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 28px; position: sticky; top: 0; z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.topbar-left { display: flex; align-items: center; gap: 16px; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar h5 { font-size: 1rem; font-weight: 700; color: var(--text-dark); }
.sidebar-toggle {
    background: none; border: none; font-size: 1.4rem;
    color: var(--text-mid); cursor: pointer; display: none;
    padding: 4px;
}

.user-avatar {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--gradient); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; font-weight: 700; cursor: pointer;
    overflow: hidden; border: 2px solid var(--border);
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* DASHBOARD CONTENT */
.dashboard-content { padding: 28px; flex: 1; }

/* ===========================
   COMPONENTS
   =========================== */
/* Content Card */
.content-card {
    background: #fff; border-radius: var(--radius-lg);
    padding: 28px; border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

/* Section Titles */
.section-title {
    font-size: 0.82rem; font-weight: 700; letter-spacing: 1px;
    text-transform: uppercase; color: var(--primary);
    margin-bottom: 20px; padding-bottom: 12px;
    border-bottom: 2px solid #eef0ff;
    display: flex; align-items: center;
}

/* Buttons */
.btn-primary-dash {
    display: inline-flex; align-items: center;
    padding: 10px 20px; background: var(--gradient);
    color: #fff; border: none; border-radius: 10px;
    font-size: 0.88rem; font-weight: 600;
    cursor: pointer; text-decoration: none;
    transition: all 0.2s; box-shadow: 0 3px 12px rgba(102,126,234,0.3);
    white-space: nowrap;
}
.btn-primary-dash:hover { transform: translateY(-1px); box-shadow: 0 5px 18px rgba(102,126,234,0.4); color: #fff; }
.btn-primary-dash.btn-sm { padding: 7px 14px; font-size: 0.82rem; }

.btn-outline-dash {
    display: inline-flex; align-items: center;
    padding: 10px 20px; background: #fff;
    color: var(--text-mid); border: 1.5px solid var(--border);
    border-radius: 10px; font-size: 0.88rem; font-weight: 600;
    cursor: pointer; text-decoration: none;
    transition: all 0.2s;
}
.btn-outline-dash:hover { border-color: var(--primary); color: var(--primary); background: #f8f9ff; }
.btn-outline-dash.btn-sm { padding: 7px 14px; font-size: 0.82rem; }

.btn-danger-dash {
    display: inline-flex; align-items: center;
    padding: 10px 20px; background: var(--danger);
    color: #fff; border: none; border-radius: 10px;
    font-size: 0.88rem; font-weight: 600; cursor: pointer;
    text-decoration: none; transition: all 0.2s;
}
.btn-danger-dash:hover { background: #c53030; color: #fff; }

/* Form Controls */
.form-control-dash {
    border: 1.5px solid var(--border) !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    font-size: 0.88rem !important;
    background: var(--bg-light) !important;
    transition: all 0.2s !important;
    color: var(--text-dark) !important;
}
.form-control-dash:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1) !important;
    background: #fff !important;
    outline: none !important;
}
.form-select.form-control-dash { appearance: auto; }

/* Stats Cards */
.stats-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 20px; margin-bottom: 24px;
}
.stat-card {
    background: #fff; border-radius: var(--radius-lg);
    padding: 24px; display: flex; align-items: center; gap: 16px;
    border: 1px solid var(--border); box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; flex-shrink: 0;
}
.stat-card.total .stat-icon   { background: #ebf8ff; color: #3182ce; }
.stat-card.published .stat-icon { background: #f0fff4; color: #38a169; }
.stat-card.draft .stat-icon    { background: #fffff0; color: #d69e2e; }
.stat-number { font-size: 1.8rem; font-weight: 800; color: var(--text-dark); display: block; line-height: 1; }
.stat-label  { font-size: 0.78rem; color: var(--text-light); font-weight: 500; margin-top: 4px; display: block; }

/* Search Bar */
.search-input-wrap { position: relative; }
.search-input-wrap i {
    position: absolute; left: 12px; top: 50%;
    transform: translateY(-50%); color: var(--text-muted); z-index: 1;
}
.search-input-wrap .form-control { padding-left: 38px !important; }

/* Table */
.dash-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.88rem; }
.dash-table thead th {
    background: var(--bg-light); color: var(--text-mid);
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.5px;
    text-transform: uppercase; padding: 12px 16px;
    border-bottom: 2px solid var(--border); white-space: nowrap;
}
.dash-table tbody td {
    padding: 14px 16px; border-bottom: 1px solid #f0f4f8;
    color: var(--text-mid); vertical-align: middle;
}
.dash-table tbody tr:last-child td { border-bottom: none; }
.dash-table tbody tr:hover td { background: #f9f9ff; }

.dest-cell { display: flex; align-items: center; gap: 10px; }
.dest-icon { font-size: 1rem; }

/* Badges */
.status-badge {
    display: inline-flex; align-items: center;
    padding: 4px 12px; border-radius: 20px;
    font-size: 0.75rem; font-weight: 600;
}
.status-badge.published { background: #f0fff4; color: #276749; }
.status-badge.draft     { background: #fffff0; color: #744210; }
.badge-days {
    display: inline-block; background: #ebf8ff; color: #2c5282;
    padding: 3px 10px; border-radius: 12px;
    font-size: 0.75rem; font-weight: 600;
}

/* Action Buttons */
.action-btns { display: flex; gap: 6px; }
.action-btn {
    width: 32px; height: 32px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    border: none; cursor: pointer; font-size: 0.85rem;
    transition: all 0.15s; text-decoration: none;
}
.action-btn.view   { background: #ebf8ff; color: #3182ce; }
.action-btn.edit   { background: #fffff0; color: #d69e2e; }
.action-btn.delete { background: #fff5f5; color: #e53e3e; }
.action-btn:hover { transform: scale(1.1); }

/* Pagination */
.pagination-wrap { display: flex; gap: 8px; justify-content: center; padding-top: 20px; }
.page-btn {
    width: 36px; height: 36px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    border: 1.5px solid var(--border); color: var(--text-mid);
    font-size: 0.85rem; font-weight: 600; text-decoration: none;
    transition: all 0.15s;
}
.page-btn:hover, .page-btn.active {
    background: var(--gradient); color: #fff; border-color: transparent;
    box-shadow: 0 3px 10px rgba(102,126,234,0.3);
}

/* Empty State */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-icon { font-size: 4rem; margin-bottom: 16px; }
.empty-state h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }

/* Modal */
.modal-custom { border-radius: var(--radius-lg); border: none; }
.modal-custom .modal-header { padding: 24px 28px 0; }
.delete-icon { font-size: 3.5rem; }

/* Multi-step form */
.form-steps {
    display: flex; align-items: center; justify-content: center;
    gap: 0; margin-bottom: 28px;
    background: #fff; border-radius: var(--radius-lg);
    padding: 20px 28px; border: 1px solid var(--border);
    box-shadow: var(--shadow); flex-wrap: wrap; gap: 8px;
}
.step {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.82rem; font-weight: 600;
    color: var(--text-muted); cursor: default;
    padding: 6px 12px; border-radius: 8px;
    transition: all 0.2s;
}
.step span {
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--border); color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.78rem; font-weight: 700; transition: all 0.2s;
}
.step.active { color: var(--primary); }
.step.active span { background: var(--gradient); color: #fff; box-shadow: 0 2px 8px rgba(102,126,234,0.4); }
.step.completed { color: var(--success); }
.step.completed span { background: var(--success); color: #fff; }
.step-line { width: 40px; height: 2px; background: var(--border); border-radius: 2px; }

.form-step-panel { display: none; }
.form-step-panel.active { display: block; }

/* Day and Hotel Cards in form */
.day-card {
    border: 1.5px solid var(--border); border-radius: var(--radius);
    margin-bottom: 20px; overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: border-color 0.2s;
}
.day-card:hover { border-color: #c5cef9; }
.day-card-header {
    background: linear-gradient(135deg, #f0f2ff, #f5f0ff);
    padding: 14px 20px; display: flex;
    justify-content: space-between; align-items: center;
    border-bottom: 1px solid var(--border);
}
.day-card .row { padding: 20px; }
.day-number-badge {
    background: var(--gradient); color: #fff;
    padding: 4px 14px; border-radius: 20px;
    font-size: 0.78rem; font-weight: 700;
}
.btn-remove-day {
    background: none; border: none; color: var(--danger);
    cursor: pointer; font-size: 1rem; padding: 4px 8px;
    border-radius: 6px; transition: background 0.15s;
}
.btn-remove-day:hover { background: #fff5f5; }

.hotel-card {
    border: 1.5px solid var(--border); border-radius: var(--radius);
    margin-bottom: 16px; overflow: hidden;
}
.hotel-card-header {
    background: #f8f9ff; padding: 12px 20px;
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem; font-weight: 700; color: var(--text-mid);
}
.hotel-card .row { padding: 16px 20px; }

/* File Upload Zone */
.file-upload-zone {
    border: 2px dashed var(--border); border-radius: var(--radius);
    background: var(--bg-light); position: relative;
    cursor: pointer; transition: all 0.2s; min-height: 120px;
    display: flex; align-items: center; justify-content: center;
}
.file-upload-zone:hover { border-color: var(--primary); background: #f8f9ff; }
.file-upload-input {
    position: absolute; inset: 0; opacity: 0;
    cursor: pointer; width: 100%; height: 100%;
}
.file-upload-placeholder { text-align: center; color: var(--text-muted); padding: 24px; pointer-events: none; }
.file-upload-placeholder i { font-size: 2rem; display: block; margin-bottom: 8px; }
.file-upload-placeholder p { font-size: 0.88rem; margin: 0; }
.file-upload-placeholder small { font-size: 0.75rem; }

/* Profile Page */
.logo-upload-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.logo-preview {
    width: 100px; height: 100px; border-radius: 50%;
    border: 3px solid var(--border); overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-light);
}
.logo-preview img { width: 100%; height: 100%; object-fit: cover; }
.logo-placeholder { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text-muted); font-size: 0.75rem; }
.logo-placeholder i { font-size: 2rem; }
.logo-upload-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 18px; background: var(--bg-light);
    border: 1.5px solid var(--border); border-radius: 20px;
    font-size: 0.82rem; font-weight: 600; cursor: pointer;
    color: var(--text-mid); transition: all 0.2s;
}
.logo-upload-btn:hover { border-color: var(--primary); color: var(--primary); }

.account-info-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 0; border-bottom: 1px solid #f0f4f8;
}
.account-info-item:last-child { border-bottom: none; }
.ai-label { font-size: 0.8rem; color: var(--text-light); font-weight: 500; }
.ai-value { font-size: 0.85rem; color: var(--text-dark); font-weight: 600; }

/* ===========================
   RESPONSIVE
   =========================== */
/*@media (max-width: 992px) {*/
/*    .sidebar { transform: translateX(-100%); }*/
/*    .sidebar.open { transform: translateX(0); }*/
/*    .sidebar-overlay.show { display: block; }*/
/*    .sidebar-toggle { display: flex !important; }*/
/*    .dashboard-main { margin-left: 0; }*/
/*    .stats-grid { grid-template-columns: 1fr 1fr; }*/
/*}*/

/*@media (max-width: 640px) {*/
/*    .stats-grid { grid-template-columns: 1fr; }*/
/*    .topbar { padding: 0 16px; }*/
/*    .dashboard-content { padding: 16px; }*/
/*    .content-card { padding: 20px; }*/
/*    .auth-card { padding: 28px 20px; }*/
/*    .form-steps { padding: 14px 16px; gap: 4px; }*/
/*    .step-line { width: 20px; }*/
/*    .topbar-right .btn-primary-dash span { display: none; }*/
/*}*/
