/* Global Variables */
:root {
    --primary-color: #0951a2;
    /* Primary brand blue */
    --sidebar-bg: #001f3f;
    /* Original Deep Navy for Sidebar */
    --secondary-color: #ff851b;
    /* Vibrant Orange */
    --accent-color: #0074d9;
    /* Bright Blue */
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.text-accent {
    color: var(--accent-color) !important;
}

/* Base Styles */
body {
    font-family: 'Ubuntu', sans-serif;
    font-weight: 300;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 500;
    color: var(--primary-color);
}

/* Premium Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Navbar Styling */
.navbar {
    background: #ffffff !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    transition: var(--transition-smooth);
    z-index: 1000;
}

.navbar-brand img {
    height: 32px;
}

.nav-link {
    font-weight: 500;
    color: var(--primary-color) !important;
    margin: 0 10px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition-smooth);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, #001f3f 0%, #003366 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 133, 27, 0.05) 0%, transparent 60%);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #ff851b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* View pages: all buttons 14px */
.view-page .btn {
    font-size: 14px;
}

/* Custom Buttons */
.btn-premium {
    background: var(--secondary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 500;
    border: none;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(255, 133, 27, 0.2);
}

.btn-premium:hover {
    background: var(--secondary-color);
    box-shadow: 0 6px 20px rgba(255, 133, 27, 0.4);
    transform: translateY(-1px);
    color: white;
}

.btn-outline-premium {
    color: var(--accent-color);
    background-color: transparent;
    border: 1px solid var(--accent-color);
    border-radius: 5px;
    transition: var(--transition-smooth);
}

.btn-outline-premium:hover {
    background-color: var(--accent-color);
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-premium-blue {
    background: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 500;
    border: none;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(9, 81, 162, 0.2);
}

.btn-premium-blue:hover {
    background: #08458a;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(9, 81, 162, 0.3);
    color: white;
}

.btn-premium-outline {
    background: transparent;
    border: 1px solid #ddd;
    color: #666 !important;
    padding: 11px 30px;
    border-radius: 5px;
    font-weight: 500;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-premium-outline:hover {
    background-color: #f8f9fa;
    border-color: #ccc;
    color: #333 !important;
}

.btn-outline-premium {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.btn-outline-premium:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Feature Cards */
.feature-card {
    background: white;
    padding: 40px;
    border-radius: 5px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Admin Layout */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 20%;
    background-color: var(--sidebar-bg);
    color: white;
    position: fixed;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.sidebar-header {
    padding: 10px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header img {
    height: 32px;
}

.sidebar-menu {
    flex-grow: 1;
    padding: 1rem 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.sidebar-link:hover,
.sidebar-link.active {
    color: white;
    background: rgba(255, 133, 27, 0.1);
    color: var(--secondary-color);
}

.sidebar-link i {
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

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

.logout-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
}

.logout-link:hover {
    color: #ff4d4d;
}

.main-content {
    width: 80%;
    margin-left: 20%;
    padding: 0.5rem;
    background-color: var(--bg-light);
}

@media (max-width: 992px) {
    .sidebar {
        width: 250px;
        left: -250px;
        transition: var(--transition-smooth);
    }

    .sidebar.active {
        left: 0;
    }

    .main-content {
        width: 100%;
        margin-left: 0;
    }
}


/* Data Display Components */

/* Tabs */
.nav-tabs-premium {
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 30px;
}

.nav-tabs-premium .nav-link {
    border: none;
    color: #666;
    font-weight: 500;
    padding: 10px 20px;
    position: relative;
    background: transparent !important;
}

.nav-tabs-premium .nav-link.active {
    color: var(--accent-color);
}

.nav-tabs-premium .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
}

/* Data Cards */
.data-card {
    background: white;
    padding: 25px;
    border-radius: 5px;
    border: 1px solid #eee;
    height: 100%;
    transition: var(--transition-smooth);
}

.data-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* List page: card height follows content, no stretch to page end */
.data-card.data-card-list {
    height: auto;
}

.data-card-title {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-card-value {
    font-size: 2rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.data-card-label {
    font-size: 0.85rem;
    color: #888;
}

/* Premium Table */
.table-premium {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

.table-premium th {
    background: #fcfcfc;
    color: #888;
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    padding: 10px 5px;
    border-bottom: 1px solid #eee;
    word-break: break-word;
    overflow-wrap: break-word;
}

.table-premium td {
    padding: 10px 5px;
    border-bottom: 1px solid #f5f5f5;
    vertical-align: top;
    color: #444;
    font-size: 0.9rem;
    word-break: break-word;
    overflow-wrap: break-word;
}

.table-premium th.text-end,
.table-premium td.text-end {
    white-space: nowrap;
    width: 8%;
}

.table-premium tr:hover td {
    background-color: #fafafa;
}

/* Setting Cards */
.setting-card {
    background: white;
    border-radius: 5px;
    border: 1px solid #edf2f7;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.setting-card-header {
    background: #d8ecff;
    border-bottom: 1px solid #c2e2ff;
    padding: 10px 25px;
}

.setting-card-body {
    background: white;
    padding: 25px;
}

.setting-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0;
}

.setting-card-desc {
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 0;
    line-height: 1.5;
}

.setting-card-body {
    background: white;
}

.setting-card-item {
    border-top: 1px solid #edf2f7;
    padding: 15px 30px;
    transition: var(--transition-smooth);
}

.setting-card-item:hover {
    background-color: #f7fafc;
}

.setting-card-link {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.setting-card-link:hover {
    color: var(--primary-color);
}

.setting-card-link i {
    font-size: 0.8rem;
    transition: var(--transition-smooth);
}

.setting-card-link:hover i {
    transform: translateX(5px);
}

/* Badges */
.badge-ready {
    background-color: #e6f7ed;
    color: #28a745;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Search & Filter */
.search-wrapper {
    display: flex;
}

.search-wrapper .position-relative i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    pointer-events: none;
    z-index: 2;
}

.search-input {
    padding-left: 40px;
    border-radius: 5px;
    border: 1px solid #ddd;
    height: 45px;
    width: 100%;
    outline: none;
    transition: var(--transition-smooth);
}

.search-input-joined {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.btn-search-joined {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-radius: 0 5px 5px 0 !important;
    height: 45px;
}

.search-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 116, 217, 0.1);
}

.filter-select {
    height: 45px;
    border-radius: 5px;
    border: 1px solid #ddd;
    padding: 0 15px;
    color: #666;
    background-color: white;
}

/* Advanced Search Panel */
.advanced-search-panel {
    display: none;
    padding: 20px;
    background-color: #fcfcfc;
    border-bottom: 1px solid #eee;
    animation: slideDown 0.3s ease-out;
}

.advanced-search-panel.active {
    display: block;
}

.advanced-search-field {
    margin-bottom: 0;
}

.advanced-search-label {
    display: block;
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 5px;
}

.lead-detail-row {
    display: flex;
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

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

.lead-detail-label {
    min-width: 180px;
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 0;
    flex-shrink: 0;
}

.lead-detail-value {
    color: #334155;
    font-weight: 500;
    margin-bottom: 0;
    font-size: 0.95rem;
}

.advanced-search-input {
    width: 100%;
    height: 40px;
    border-radius: 5px;
    border: 1px solid #ddd;
    padding: 0 12px;
    font-size: 0.9rem;
    color: #444;
    outline: none;
    transition: var(--transition-smooth);
    font-family: 'Ubuntu', sans-serif;
}

.advanced-search-input::placeholder {
    color: #999;
    opacity: 1;
}

.date-input-wrapper {
    position: relative;
    width: 100%;
}

.date-input-wrapper .advanced-search-input {
    padding-right: 35px;
}

.date-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    pointer-events: none;
    font-size: 0.9rem;
}

.advanced-search-input:focus {
    border-color: var(--primary-color);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

/* Select2 Premium Customization */
.select2-container--default .select2-selection--single {
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
    display: flex;
    align-items: center;
    position: relative !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #444;
    font-size: 0.9rem;
    padding-left: 12px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px;
    right: 10px;
}

/* Clear button styling */
.select2-container--default .select2-selection--single .select2-selection__clear {
    cursor: pointer !important;
    position: absolute !important;
    right: 35px !important;
    /* Position before arrow */
    left: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-weight: bold !important;
    color: #999 !important;
    font-size: 1.2rem !important;
    line-height: 1 !important;
    height: 20px !important;
    width: 20px !important;
    text-align: center !important;
    z-index: 10 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.select2-container--default .select2-selection--single .select2-selection__clear:hover {
    color: #333 !important;
}

.select2-dropdown {
    border: 1px solid #eee;
    border-radius: 5px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 1060;
}

.select2-results__option {
    padding: 8px 15px;
    font-size: 0.9rem;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--primary-color);
}

.select2-search--dropdown .select2-search__field {
    border-radius: 5px;
    border: 1px solid #ddd;
    padding: 6px 10px;
}

/* Pagination */
.table-footer {
    padding: 10px 10px;
    background-color: #fcfcfc;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-footer-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.records-info {
    font-size: 0.9rem;
    color: #666;
}

.records-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #666;
}

.records-select {
    height: 32px;
    padding: 0 5px;
    border-radius: 5px;
    border: 1px solid #ddd;
    outline: none;
    font-size: 0.85rem;
}

.pagination-premium {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 5px;
}

.pagination-premium .page-item .page-link {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    border: 1px solid #ddd;
    color: #444;
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.pagination-premium .page-item .page-link:hover {
    background-color: #f0f0f0;
    border-color: #ccc;
}

.pagination-premium .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination-premium .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Footer */
footer {
    background: #001122;
    color: rgba(255, 255, 255, 0.6);
    padding: 40px 0 20px;
}

footer h5 {
    color: white;
    margin-bottom: 25px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    transition: var(--transition-smooth);
}

.footer-link:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

/* Service Type Badges */
.badge-service {
    padding: 6px 14px;
    border-radius: 5px;
    font-weight: 400;
    font-size: 0.85rem;
    border: 1px solid transparent;
}

.badge-tour {
    background-color: #eef2ff;
    color: #4338ca;
    border-color: #c7d2fe;
}

.badge-hotel {
    background-color: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
}

.badge-flight {
    background-color: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.badge-cab {
    background-color: #fffbeb;
    color: #b45309;
    border-color: #fde68a;
}

.badge-visa {
    background-color: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}