/* =========================================================
   SAFARIX ADMIN DASHBOARD
   This is the new admin dashboard skin — fixed left sidebar
   + top header layout. All header CSS + all sidebar CSS
   live in this single file (header.html and sidebar.html
   have no <style> tag of their own anymore).
   ========================================================= */

/* =========================================================
   HEADER CSS  (moved here from header.html <style> block)
   ========================================================= */

:root {
    --safarix-primary: #1769d2;
    --safarix-primary-dark: #0f4e9e;
    --safarix-navy: #0d2b50;
    --safarix-text: #263b54;
    --safarix-muted: #7d8da1;
    --safarix-border: #e7edf4;
    --safarix-bg: #f6f9fc;
    --header-height: 72px;
    --sidebar-width: 292px;

    
    --blue: #0878c9;
    --dark-blue: #0c2547;
    --sidebar: 292px;
    --sidebar-collapsed: 78px;
    --header: 74px;
    --bg: #f5f8fc;
    --text: #263b54;
    --muted: #8492a5;

    
    --gutter: 24px;
}

/* GLOBAL RESET (from header block) */

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
}

body {
    font-family: "Nunito", sans-serif;
    background: var(--safarix-bg);
    color: var(--safarix-text);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

/* HEADER */

#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    display: flex;
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid #e8eef5;
    box-shadow: 0 4px 16px rgba(28, 55, 85, 0.06);
    z-index: 1100;
}

/* LEFT: logo + hamburger  */
.header-left {
    width: var(--sidebar-width);
    height: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-left: 18px;
    padding-right: 18px;
    border-right: 1px solid #edf1f5;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    height: 44px;
    max-width: 190px;
    object-fit: contain;
}

/* HAMBURGER: header-left */
.toggle-sidebar-btn {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #4a5568;
    font-size: 19px;
    cursor: pointer;
    transition: 0.2s;
}

.toggle-sidebar-btn:hover {
    background: #f0f6fd;
    color: var(--safarix-primary);
}

/* RIGHT: wallet + profile */
.header-nav {
    margin-left: auto;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 18px;
}

.header-nav > ul {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
}

.header-wallet {
    height: 42px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 12px 5px 5px;
    border: 1px solid #e5edf5;
    border-radius: 12px;
    background: linear-gradient(135deg, #f9fbfd, #f4f8fd);
    transition: 0.2s;
}

.header-wallet:hover {
    border-color: #d0e2f5;
    box-shadow: 0 4px 12px rgba(23, 105, 210, 0.06);
}

.header-wallet-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #eaf5ff;
    color: var(--safarix-primary);
    font-size: 14px;
}

.header-wallet-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.header-wallet-text small {
    color: #8b99aa;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.header-wallet-text strong {
    margin-top: 1px;
    color: #1f3048;
    font-size: 13px;
    font-weight: 800;
}

.header-profile {
    position: relative;
}

.header-profile-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 8px 5px 5px !important;
    border: 1px solid transparent;
    border-radius: 14px;
    color: #344960;
    cursor: pointer;
    transition: 0.2s;
}

.header-profile-link:hover {
    background: #f7fafc;
    border-color: #e7edf4;
}

.header-profile-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #1d78dc, #0d3e7b);
    color: #fff;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(23, 105, 210, 0.2);
}

.header-profile-info {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.header-profile-info small {
    color: #9aa7b6;
    font-size: 9px;
    font-weight: 600;
}

.header-profile-info span {
    margin-top: 2px;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #1f3048;
    font-size: 12px;
    font-weight: 700;
}

.header-profile-chevron {
    margin-left: 2px;
    color: #8a9aab;
    font-size: 11px;
    transition: transform 0.25s ease;
}

.header-profile-link[aria-expanded="true"] .header-profile-chevron {
    transform: rotate(180deg);
}

/* PROFILE DROPDOWN */
.profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 240px;
    padding: 8px;
    background: #fff;
    border: 1px solid #e5ecf3;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(29, 55, 85, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.96);
    transition: 0.2s ease;
    z-index: 1200;
}

.profile-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.profile-dropdown-head {
    padding: 12px 14px 11px;
    margin-bottom: 6px;
    border-bottom: 1px solid #edf1f5;
    background: linear-gradient(135deg, #f8fafd, #f4f7fb);
    border-radius: 12px 12px 0 0;
}

.profile-dropdown-head strong {
    display: block;
    color: #1f3048;
    font-size: 13px;
    font-weight: 800;
}

.profile-dropdown-head small {
    display: block;
    margin-top: 3px;
    color: #8b99aa;
    font-size: 10px;
}

.profile-dropdown .dropdown-item {
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    color: #40536a;
    font-size: 12px;
    font-weight: 600;
    transition: 0.18s ease;
}

.profile-dropdown .dropdown-item i {
    width: 18px;
    text-align: center;
    color: var(--safarix-primary);
    font-size: 14px;
    opacity: 0.8;
}

.profile-dropdown .dropdown-item:hover {
    background: #f2f7fc;
    color: var(--safarix-primary);
}

.profile-dropdown .dropdown-item:hover i {
    opacity: 1;
}

.profile-dropdown .dropdown-item.logout:hover {
    background: #fff3f3;
    color: #d64242;
}

.profile-dropdown .dropdown-item.logout:hover i {
    color: #d64242;
}

@media (max-width: 1199px) {
    .header-left { width: auto; border-right: 0; }
    .header-nav { padding-right: 14px; }
}

@media (max-width: 767px) {
    #header { height: 64px; }
    .logo img { height: 34px; max-width: 130px; }
    .header-wallet-text { display: none; }
    .header-profile-info,
    .header-profile-chevron { display: none; }
    .profile-dropdown { width: 220px; }
}

@media (max-width: 480px) {
    #header { height: 60px; }
    .logo img { height: 30px; max-width: 110px; }
    .header-wallet-icon { width: 26px; height: 26px; font-size: 11px; }
}


html,
body {
    background: var(--bg);
    overflow-x: hidden;
}

body {
    margin: 0;
    color: var(--text);
}

#main {
    margin-left: var(--sidebar);
    padding: calc(var(--header) + 16px) var(--gutter) 24px;
    min-height: 100vh;
    background: var(--bg);
    overflow-x: hidden;
}

.dashboard-container {
    max-width: 1600px;
    width: 100%;
    overflow-x: hidden;
}

@media (max-width: 1199px) {
    #main { margin-left: 0; }
}

@media (max-width: 767px) {
    #main { padding-top: calc(64px + 16px); }
    :root { --gutter: 16px; }
}
/* =========================
   PAGE TITLE
   ========================= */

.dashboard-page-title {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.dashboard-page-title h1 {
    margin: 0;
    color: #123f7a;
    font-size: 28px;
    font-weight: 600;
}

.dashboard-page-title p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.dashboard-eyebrow {
    display: none;
}

.dashboard-page-title .breadcrumb {
    margin: 0;
}

.dashboard-page-title .breadcrumb a {
    color: #2d55ff;
    text-decoration: none;
}

/* =========================
   HERO
   ========================= */

.dashboard-hero {
    position: relative;
    min-height: 265px;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(115deg, #0878c9, #168bd3, #55b8e8);
    box-shadow: 0 12px 30px rgba(24, 91, 137, 0.14);
}

.dashboard-hero::before,
.dashboard-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.dashboard-hero::before {
    width: 300px;
    height: 300px;
    right: 25%;
    top: -190px;
}

.dashboard-hero::after {
    width: 220px;
    height: 220px;
    right: -70px;
    bottom: -120px;
}

.dashboard-hero-content {
    position: relative;
    z-index: 2;
    min-height: 265px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dashboard-hero-text {
    width: 58%;
    padding: 38px 0 38px 42px;
}

.hero-small-title {
    color: rgba(255, 255, 255, 0.82);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.dashboard-hero h2 {
    margin: 10px 0 12px;
    color: white;
    font-size: 31px;
    line-height: 1.2;
    font-weight: 700;
}

.dashboard-hero p {
    max-width: 570px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 13px;
    line-height: 1.7;
}

.hero-actions {
    margin-top: 22px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 17px;
    border-radius: 8px;
    background: white;
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.hero-btn:hover {
    color: var(--blue);
    transform: translateY(-1px);
}

.hero-link {
    color: white;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.hero-link:hover {
    color: white;
    opacity: .85;
}

.dashboard-hero-image {
    width: 42%;
    height: 265px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-right: 30px;
}

.dashboard-hero-image img {
    max-width: 100%;
    max-height: 250px;
    object-fit: contain;
}

/* =========================
   SECTION TITLE
   ========================= */

.dashboard-section-heading {
    margin: 27px 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dashboard-section-heading span {
    color: var(--blue);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.dashboard-section-heading h3 {
    margin: 3px 0 0;
    color: #203b59;
    font-size: 19px;
    font-weight: 700;
}

/* =========================
   STAT CARDS
   ========================= */

.dashboard-stat-row {
    margin-left: -8px;
    margin-right: -8px;
}

.dashboard-stat-row > div {
    padding-left: 8px;
    padding-right: 8px;
}

.travel-stat-card {
    position: relative;
    height: 190px;
    overflow: hidden;
    border: 1px solid #e7edf4;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #f6f9ff 100%);
    box-shadow: 0 5px 18px rgba(29, 57, 88, .06);
}

.travel-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(29, 57, 88, .10);
}

.stat-card-content {
    position: relative;
    z-index: 3;
    width: 61%;
    padding: 16px;
}

.stat-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #eaf6ff;
    color: var(--blue);
    font-size: 14px;
}

.stat-label {
    display: block;
    color: #7c8a9d;
    font-size: 12px;
    font-weight: 600;
}

.stat-value {
    margin-top: 4px;
    color: #243950;
    font-size: 21px;
    line-height: 1.2;
    font-weight: 700;
}

.stat-description {
    display: block;
    margin-top: 4px;
    color: #a1adbb;
    font-size: 10px;
}

.stat-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    padding: 6px 10px;
    border: 1px solid #20b8e8;
    border-radius: 6px;
    background: rgba(255,255,255,0.7);
    color: #16aeda;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.stat-link:hover {
    background: #f3fbff;
    color: #079dcc;
}

.stat-card-image {
    position: absolute;
    right: -4px;
    bottom: -10px;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    z-index: 1;
    pointer-events: none;
}

.stat-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right bottom;
}

/* --- stat card color variants (users / guides / payment / guide-payment) --- */

.users-card .stat-icon {
    background: #eaf6ff;
    color: #0878c9;
}

.users-card {
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
}

.guides-card .stat-icon {
    background: #fff5e9;
    color: #e89118;
}

.guides-card {
    background: linear-gradient(135deg, #ffffff 0%, #fffbf0 100%);
}

.payment-card .stat-icon {
    background: #eaf9f1;
    color: #24935b;
}

.payment-card {
    background: linear-gradient(135deg, #ffffff 0%, #f0fbf5 100%);
}

.guide-payment-card .stat-icon {
    background: #f3edff;
    color: #7952c7;
}

.guide-payment-card {
    background: linear-gradient(135deg, #ffffff 0%, #f5f0ff 100%);
}

.guides-card .stat-link {
    border-color: #f2a300;
    color: #f2a300;
}

.payment-card .stat-link {
    border-color: #31a56d;
    color: #24935b;
}

.guide-payment-card .stat-link {
    border-color: #3f7cff;
    color: #2370ff;
}

/* =========================
   TRAVEL MANAGEMENT
   ========================= */

.travel-management-panel {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    border: 1px solid #e7edf4;
    border-radius: 18px;
    background: linear-gradient(135deg, #ffffff 0%, #f6f9ff 100%);
    box-shadow: 0 5px 18px rgba(29, 57, 88, .06);
}

.travel-management-content {
    position: relative;
    z-index: 2;
    width: 73%;
    padding: 26px 28px;
}

.panel-eyebrow {
    color: var(--blue);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.travel-management-content h3 {
    margin: 7px 0 5px;
    color: var(--text);
    font-size: 19px;
    font-weight: 700;
}

.travel-management-content p {
    margin: 0;
    color: #8b98a8;
    font-size: 12px;
}

.travel-management-links {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.management-link {
    min-width: 170px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 11px;
    border: 1px solid #e8eef4;
    border-radius: 9px;
    background: #fbfdff;
    text-decoration: none;
}

.management-link > span {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #eaf6ff;
    color: var(--blue);
}

.management-link div {
    display: flex;
    flex-direction: column;
}

.management-link strong {
    color: #354960;
    font-size: 11px;
}

.management-link small {
    color: #98a4b2;
    font-size: 9px;
}

.management-link > i {
    margin-left: auto;
    color: #9aa8b7;
    font-size: 10px;
}

.management-image {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 29%;
    height: 100%;
    display: flex;
    align-items: flex-end;
}

.management-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* =========================
   CHARTS
   ========================= */

.dashboard-chart-card {
    min-height: 440px;
    overflow: hidden;
    border: 1px solid #e7edf4;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafd 100%);
    box-shadow: 0 5px 18px rgba(29, 57, 88, .06);
}

.payment-chart-card {
    min-height: 440px;
}

.chart-card-header {
    padding: 20px 21px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #edf1f5;
}

.chart-card-header > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chart-icon {
    width: 39px;
    height: 39px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 16px;
}

.chart-icon.blue {
    background: #eaf6ff;
    color: #0878c9;
}

.chart-icon.orange {
    background: #fff5e8;
    color: #e89420;
}

.chart-icon.green {
    background: #eaf8f0;
    color: #24935b;
}

.chart-card-header h5 {
    margin: 0;
    color: #2b4058;
    font-size: 14px;
}

.chart-card-header p {
    margin: 3px 0 0;
    color: #98a4b2;
    font-size: 10px;
}

.chart-filters {
    padding: 16px 21px;
    background: #fbfcfe;
    border-bottom: 1px solid #edf1f5;
}

.chart-filters label {
    display: block;
    margin-bottom: 6px;
    color: #627286;
    font-size: 10px;
}

.chart-filters .form-select {
    min-height: 36px;
    padding: 7px 11px;
    border: 1px solid #dfe7ef;
    border-radius: 8px;
    color: #43556b;
    font-size: 11px;
    box-shadow: none;
}

.dashboard-filter-btn,
.dashboard-reset-btn {
    min-height: 35px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
}

.dashboard-filter-btn {
    border: 1px solid var(--blue);
    background: var(--blue);
    color: white;
}

.dashboard-reset-btn {
    border: 1px solid #dfe6ee;
    background: white;
    color: #69798c;
}

.chart-area {
    height: 220px;
    padding: 18px 20px 20px;
}

.payment-chart-card .chart-area {
    height: 230px;
}

.chart-area canvas {
    width: 100% !important;
    height: 100% !important;
}

/* =========================
   SIDEBAR
   ========================= */

#sidebar.sidebar {
    position: fixed;
    top: var(--header);
    left: 0;
    bottom: 0;
    width: var(--sidebar);
    z-index: 1000;
    background: #0d2b4e;
}

/* =========================
   SIDEBAR TOGGLE
   ========================= */

@media (min-width: 1200px) {

    body.sidebar-collapsed #sidebar.sidebar {
        width: var(--sidebar-collapsed);
    }

    body.sidebar-collapsed #main {
        margin-left: var(--sidebar-collapsed);
    }

    body.sidebar-collapsed #sidebar .nav-link span,
    body.sidebar-collapsed #sidebar .nav-arrow {
        display: none;
    }

    body.sidebar-collapsed #sidebar .sidebar-nav > .nav-item > .nav-link {
        justify-content: center;
    }

    body.sidebar-collapsed #sidebar .nav-item {
        position: relative;
    }

    body.sidebar-collapsed #sidebar .nav-content.show {
        position: absolute;
        top: 0;
        left: 100%;
        margin-left: 6px;
        width: 210px;
        background: #0d2b4e;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    body.sidebar-collapsed .sidebar-inner {
        overflow: visible;
    }
}

@media (max-width: 1199px) {

    #sidebar.sidebar {
        transform: translateX(-100%);
    }

    body.sidebar-collapsed #sidebar.sidebar {
        transform: translateX(0);
    }
}

.sidebar-inner {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

#sidebar .sidebar-nav {
    margin: 0;
    padding: 8px 6px 10px;
    list-style: none;
}

#sidebar .nav-item {
    margin: 0 0 6px;
    list-style: none;
}

/* main link - normal state */
#sidebar .sidebar-nav > .nav-item > .nav-link {
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 10px;
    background: transparent;
    color: #cfe0f5;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

#sidebar .sidebar-nav > .nav-item > .nav-link > i:first-child {
    width: 34px;
    height: 34px;
    min-width: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    color: #cfe0f5;
    font-size: 16px;
}

#sidebar .nav-arrow {
    margin-left: auto;
    color: #9fb4d0;
    font-size: 10px;
}

/* hover */
#sidebar .sidebar-nav > .nav-item > .nav-link:hover {
    background: rgba(255,255,255,0.08);
    color: #ffffff;
}

/* active page */
#sidebar .sidebar-nav > .nav-item > .nav-link.active {
    background: #2d7bf0;
    color: #ffffff;
}

#sidebar .sidebar-nav > .nav-item > .nav-link.active > i:first-child {
    background: rgba(255,255,255,0.2);
    color: #ffffff;
}

/* submenu open parent */
#sidebar .sidebar-nav > .nav-item > .nav-link:not(.collapsed) {
    background: rgba(255,255,255,0.06);
    color: #ffffff;
}

#sidebar .sidebar-nav > .nav-item > .nav-link:not(.collapsed) .nav-arrow {
    transform: rotate(180deg);
}

/* submenu */
#sidebar .nav-content {
    display: none;
    margin: 0;
    padding: 0 4px 0 54px;
    list-style: none;
}

#sidebar .nav-content.show {
    display: block;
    margin: 3px 0 6px;
}

#sidebar .nav-content li {
    margin: 2px 0;
    list-style: none;
}

#sidebar .nav-content a {
    min-height: 30px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 5px 8px;
    border-radius: 6px;
    color: #b7c8de;
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
}

#sidebar .nav-content a i {
    width: 9px;
    color: #7d93b0;
    font-size: 5px;
}

#sidebar .nav-content a:hover,
#sidebar .nav-content a.active {
    background: rgba(255,255,255,0.08);
    color: #ffffff;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 1199px) {

    #sidebar.sidebar {
        width: 280px;
    }

    .dashboard-hero-text {
        width: 62%;
    }

    .dashboard-hero-image {
        width: 38%;
    }

    .travel-management-content {
        width: 78%;
    }

    .management-image {
        width: 24%;
    }
}

@media (max-width: 991px) {

    .dashboard-page-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-hero-content {
        min-height: 285px;
    }

    .dashboard-hero-text {
        width: 67%;
        padding-left: 30px;
    }

    .dashboard-hero-image {
        width: 33%;
        height: 285px;
    }

    .dashboard-hero h2 {
        font-size: 27px;
    }

    .travel-management-content {
        width: 100%;
    }

    .management-image {
        display: none;
    }

    #sidebar.sidebar {
        width: 280px;
    }
}

@media (max-width: 767px) {

    .dashboard-page-title h1 {
        font-size: 24px;
    }

    .dashboard-hero {
        min-height: auto;
    }

    .dashboard-hero-content {
        display: block;
        min-height: auto;
    }

    .dashboard-hero-text {
        width: 100%;
        padding: 27px 22px 18px;
    }

    .dashboard-hero h2 {
        font-size: 24px;
    }

    .dashboard-hero p {
        font-size: 11px;
    }

    .dashboard-hero-image {
        width: 100%;
        height: 130px;
        padding: 0 20px;
        justify-content: flex-end;
    }

    .dashboard-hero-image img {
        max-width: 70%;
        max-height: 130px;
    }

    .hero-actions {
        flex-wrap: wrap;
    }

    .travel-stat-card {
        height: 210px;
    }

    .stat-card-content {
        width: 62%;
        padding: 19px;
    }

    .stat-card-image {
        width: 150px;
        height: 150px;
    }

    .travel-management-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .management-link {
        min-width: 0;
    }

    .dashboard-chart-card,
    .payment-chart-card {
        min-height: auto;
    }

    #sidebar.sidebar {
        width: 270px;
    }

    #sidebar .sidebar-nav > .nav-item > .nav-link {
        font-size: 10px;
        min-height: 39px;
        height: 39px;
    }
}

@media (max-width: 575px) {

    #sidebar.sidebar {
        width: 260px;
    }

    .dashboard-page-title h1 {
        font-size: 22px;
    }

    .dashboard-hero-text {
        padding: 23px 19px 16px;
    }

    .dashboard-hero h2 {
        font-size: 22px;
    }

    .dashboard-hero-image {
        height: 110px;
    }

    .dashboard-hero-image img {
        max-height: 110px;
    }

    .travel-management-content {
        padding: 20px 18px;
    }

    .travel-management-links {
        grid-template-columns: 1fr;
    }

    .management-link {
        width: 100%;
    }

    .chart-card-header {
        padding: 17px 16px;
    }

    .chart-filters {
        padding: 14px 16px;
    }

    .chart-area {
        height: 250px;
        padding: 15px;
    }

    .payment-chart-card .chart-area {
        height: 260px;
    }

    .travel-stat-card {
        height: 205px;
    }

    .stat-card-content {
        width: 64%;
        padding: 18px;
    }

    .stat-card-image {
        width: 130px;
        height: 130px;
    }

    #sidebar .sidebar-nav > .nav-item > .nav-link {
        font-size: 9.5px;
        min-height: 37px;
        height: 37px;
    }

    #sidebar .nav-content a {
        font-size: 8.5px;
        min-height: 25px;
        height: 25px;
    }
}


/* =========================================================
   LOGIN PAGE
    ========================================================= */

.login-section {
    min-height: 100vh;
    min-height: 100dvh; 
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 16px;

    
    background-color: #bcd4ef;

    background-image: url("/img/dashboard/admin-login-background.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;  
}

.login-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-box {
    width: 100%;
    max-width: 460px;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(13, 43, 80, 0.18);
}

/* HEADER: logo */
.login-box-header {
    padding: 28px 30px 20px;
    text-align: center;
    border-bottom: 1px solid #eef2f7;
}

.login-logo {
    height: 46px;
    object-fit: contain;
}

/* BODY */
.login-box-body {
    padding: 28px 34px 8px;
    text-align: center;
}

.login-welcome {
    margin: 0 0 6px;
    color: var(--safarix-navy);
    font-size: 24px;
    font-weight: 700;
}

.login-subtitle {
    margin: 0 0 22px;
    color: var(--safarix-muted);
    font-size: 13px;
}

.login-box-body form {
    text-align: left;
}

.login-input-group {
    position: relative;
    display: flex;
    align-items: stretch;
    margin-bottom: 16px;
    border: 1px solid #dfe7f0;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
}

.login-input-group:focus-within {
    border-color: var(--safarix-primary);
    box-shadow: 0 0 0 3px rgba(23, 105, 210, 0.12);
}

.login-input-icon {
    flex-shrink: 0;
    width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eaf2fb;
    color: var(--safarix-primary);
    font-size: 17px;
}

.login-input-group input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    padding: 12px 14px;
    font-size: 14px;
    color: var(--safarix-text);
    background: transparent;
}

.login-input-group input:-webkit-autofill,
.login-input-group input:-webkit-autofill:hover,
.login-input-group input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--safarix-text);
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset;
    box-shadow: 0 0 0 1000px #ffffff inset;
    transition: background-color 9999s ease-in-out 0s;
}

/* password field */
.login-input-group.password-wrapper input {
    padding-right: 40px;
}

.login-input-group.password-wrapper .toggle-password {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 17px;
    color: #8a99ab;
}

/* recaptcha  */
.login-recaptcha-wrap {
    margin: 6px 0 20px;
    display: flex;
    justify-content: center;
}

.login-recaptcha-wrap .g-recaptcha {
    border: 1px solid #dfe7f0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(13, 43, 80, 0.06);
}

/* forgot password */
.login-forgot {
    text-align: right;
    margin-bottom: 16px;
}

.login-forgot a {
    color: var(--safarix-primary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.login-forgot a:hover {
    text-decoration: underline;
}

/* login button */
.login-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 13px;
    margin-bottom: 6px;
    border: 0;
    border-radius: 10px;
    background: var(--safarix-primary);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.2px;
    transition: background 0.2s ease, transform 0.15s ease;
}

.login-btn:hover:not(:disabled) {
    background: var(--safarix-primary-dark);
    transform: translateY(-1px);
}

.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* forgot-password page: "back to login" link */
.login-back {
    margin-top: 4px;
    text-align: center;
}

.login-back a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--safarix-muted);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.login-back a:hover {
    color: var(--safarix-primary);
}

/* RESPONSIVE */
@media (max-width: 480px) {

    .login-section {
        padding: 16px 12px;
    }

    .login-box-header {
        padding: 22px 20px 16px;
    }

    .login-box-body {
        padding: 22px 20px 4px;
    }

    .login-welcome {
        font-size: 20px;
    }
}

/* =========================================================
   ADMIN PAGE SKIN
   Shared styling for users, guides, availability and payment pages.
   ========================================================= */

:root {
    --admin-radius: 12px;
    --admin-shadow: 0 8px 24px rgba(29, 57, 88, 0.07);
}

#main > .pagetitle {
    max-width: 1600px;
    margin: 0 auto 20px;
    padding: 0 2px;
}

#main > .pagetitle h1 {
    margin: 0;
    color: #123f7a;
    font-size: 26px;
    font-weight: 800;
}

#main > .pagetitle nav {
    margin-top: 7px;
}

#main > .pagetitle .breadcrumb {
    margin: 0;
    padding: 0;
    font-size: 11px;
}

#main > .pagetitle .breadcrumb-item a {
    color: var(--safarix-primary);
    font-weight: 700;
}

#main > .section {
    max-width: 1600px;
    margin: 0 auto;
}

#main > .section > .row {
    --bs-gutter-x: 20px;
    --bs-gutter-y: 20px;
}

#main > .section .card,
#main > .section > .row > [class*="col-"] > form,
#main > .section > .row > [class*="col-"] > table {
    border: 1px solid var(--safarix-border);
    border-radius: var(--admin-radius);
    background: #ffffff;
    box-shadow: var(--admin-shadow);
}

#main > .section > .row > [class*="col-"] > form {
    padding: 24px;
}

/* Tables without a template wrapper still scroll instead of breaking the page. */
#main > .section > .row > [class*="col-"] > table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-collapse: separate;
    border-spacing: 0;
}

#main .card-header {
    min-height: 58px;
    display: flex;
    align-items: center;
    padding: 15px 20px;
}

#main .card-header .card-title,
#main .card-header h3,
#main .card-header h4,
#main .card-header h5 {
    margin: 0;
    padding: 0;
    color: #244766;
    font-family: "Nunito", sans-serif;
    font-size: 15px;
    font-weight: 800;
}

#main .card-body {
    padding: 22px;
}

#main .card-body.pt-3 {
    padding-top: 22px !important;
}

#main .form-label {
    margin-bottom: 7px;
    color: #52677c;
    font-size: 12px;
    font-weight: 800;
}

#main form > .mb-3,
#main form .row > [class*="col-"] {
    margin-bottom: 17px !important;
}

#main .form-control,
#main .form-select {
    min-height: 40px;
    border-color: #dfe7ef;
    border-radius: 8px;
    color: #43556b;
    box-shadow: none;
}

#main .form-control:focus,
#main .form-select:focus {
    border-color: #6ba7e8;
    box-shadow: 0 0 0 3px rgba(23, 105, 210, 0.12);
}

#main textarea.form-control {
    min-height: 104px;
    resize: vertical;
}

#main input[type="file"].form-control {
    padding: 8px 11px;
    background: #fbfcfe;
}

#main .alert {
    border: 0;
    margin-bottom: 18px;
    padding: 12px 15px;
    font-size: 12px;
    font-weight: 600;
}

#main .alert-success {
    background: #eaf8f0;
    color: #237348;
}

#main .alert-danger {
    background: #fff0f1;
    color: #a43d4a;
}

#main .table {
    min-width: 640px;
    margin-bottom: 0;
    color: var(--safarix-text);
    vertical-align: middle;
}

#main .table thead th {
    padding: 12px 14px;
    border-bottom: 0;
    background: #eef5fc;
    color: #315273;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.35px;
    text-transform: uppercase;
    white-space: nowrap;
}

#main .table tbody td {
    padding: 12px 14px;
    border-color: #edf1f5;
    color: #52657a;
}

#main .table tbody tr:hover td {
    background: #f8fbff;
}

#main .table td .btn,
#main .table td form,
#main .table td form .btn {
    margin: 2px;
}

#main .table img {
    object-fit: cover;
    border: 1px solid #dce6ef;
}

#main .badge {
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 10px;
    font-weight: 800;
}

#main .btn {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

#main .btn-primary,
#main .btn-info,
#main .btn-success,
#main .btn-warning {
    border-color: var(--safarix-primary);
    background: var(--safarix-primary);
    color: #ffffff;
}

#main .btn-primary:hover,
#main .btn-info:hover,
#main .btn-success:hover,
#main .btn-warning:hover {
    border-color: var(--safarix-primary-dark);
    background: var(--safarix-primary-dark);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(23, 105, 210, 0.18);
}

#main .btn-danger {
    border-color: #d95362;
    background: #d95362;
    color: #ffffff;
}

#main .btn-secondary {
    border-color: #c8d8e8;
    background: #eef5fc;
    color: #32618d;
}

#main .btn-secondary:hover {
    border-color: #a9c9e8;
    background: #e2effb;
    color: #174e80;
}

#main .pagination {
    gap: 5px;
    margin: 22px 0 2px;
}

#main .pagination .page-link {
    min-width: 34px;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dfe7ef;
    border-radius: 7px !important;
    color: #58708a;
    font-size: 11px;
    font-weight: 700;
}

#main .pagination .page-item.active .page-link {
    border-color: var(--safarix-primary);
    background: var(--safarix-primary);
    color: #ffffff;
}

#main .modal-content {
    overflow: hidden;
    border: 1px solid var(--safarix-border);
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(13, 43, 80, 0.18);
}

#main .modal-header,
#main .modal-footer {
    border-color: var(--safarix-border);
    background: #fbfcfe;
}

#main .repeater-item {
    padding: 16px 12px 0;
    border: 1px solid #e5edf4;
    border-radius: 10px;
    background: #fbfcfe;
}

.chart-filters .row:last-child {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px !important;
}

.chart-filters .row:last-child > [class*="col-"] {
    flex: 1 1 160px;
    width: auto;
    padding: 0;
}

@media (max-width: 767px) {
    #main > .pagetitle h1 {
        font-size: 22px;
    }

    #main > .section > .row > [class*="col-"] > form,
    #main .card-body {
        padding: 16px;
    }

    #main .card-header {
        min-height: 52px;
        padding: 13px 16px;
    }

    #main .table {
        min-width: 720px;
    }

    .chart-filters .row:last-child > [class*="col-"] {
        flex-basis: 100%;
    }
}

/* =========================================================
   DROPDOWNS
   Native selects, Select2 controls and guide tag pickers.
   ========================================================= */

#main select.form-control:not([multiple]),
#main select.form-select:not([multiple]) {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 40px;
    cursor: pointer;
    background-color: #ffffff;
    background-image: linear-gradient(45deg, transparent 50%, #66819b 50%),
        linear-gradient(135deg, #66819b 50%, transparent 50%);
    background-position: calc(100% - 17px) 17px, calc(100% - 12px) 17px;
    background-repeat: no-repeat;
    background-size: 5px 5px, 5px 5px;
}

#main select.form-control:not([multiple]):hover,
#main select.form-select:not([multiple]):hover {
    border-color: #aac9e8;
    background-color: #fbfdff;
}

#main select.form-control:not([multiple]):focus,
#main select.form-select:not([multiple]):focus {
    background-image: linear-gradient(45deg, transparent 50%, var(--safarix-primary) 50%),
        linear-gradient(135deg, var(--safarix-primary) 50%, transparent 50%);
}

#main select[multiple].form-control,
#main select[multiple].form-select {
    min-height: 112px;
    padding: 8px 10px;
    background-image: none;
}

#main select[multiple] option {
    padding: 7px 9px;
    border-radius: 5px;
}

#main select[multiple] option:checked {
    background: #e7f2ff linear-gradient(0deg, #e7f2ff, #e7f2ff);
    color: #145b9e;
    font-weight: 700;
}

/* Select2 is used on a few admin forms. */
#main .select2-container {
    width: 100% !important;
}

#main .select2-container--default .select2-selection--single {
    height: 40px;
    display: flex;
    align-items: center;
    border: 1px solid #dfe7ef;
    border-radius: 8px;
    background: #ffffff;
}

#main .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-left: 12px;
    color: #43556b;
    font-size: 13px;
    line-height: 38px;
}

#main .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px;
    right: 7px;
}

#main .select2-container--default.select2-container--open .select2-selection--single,
#main .select2-container--default .select2-selection--single:focus {
    border-color: #6ba7e8;
    box-shadow: 0 0 0 3px rgba(23, 105, 210, 0.12);
}

.select2-container--default .select2-dropdown {
    overflow: hidden;
    border: 1px solid #dfe7ef;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(29, 57, 88, 0.14);
}

.select2-container--default .select2-results__option {
    padding: 9px 12px;
    color: #52677c;
    font-size: 12px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: #eaf3fc;
    color: #145b9e;
}

/* Custom guide tag dropdown. !important is needed because its page has inline CSS. */
#main .tag-dropdown-wrapper {
    position: relative;
    z-index: 4;
}

#main .tag-box {
    min-height: 42px !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 6px 9px !important;
    border: 1px solid #dfe7ef !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

#main .tag-box:focus-within {
    border-color: #6ba7e8 !important;
    box-shadow: 0 0 0 3px rgba(23, 105, 210, 0.12) !important;
}

#main .tag-input {
    min-width: 140px !important;
    padding: 3px 4px !important;
    color: #43556b !important;
    font-size: 13px !important;
}

#main .tag-input::placeholder {
    color: #9aaabd;
}

#main .tag-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px !important;
    border-radius: 999px !important;
    background: #eaf3fc !important;
    color: #145b9e !important;
    font-size: 11px !important;
    font-weight: 700;
}

#main .tag-item .tag-remove {
    color: #50799d;
    font-size: 14px;
}

#main .tag-dropdown-list {
    top: calc(100% + 6px) !important;
    max-height: 220px !important;
    overflow-y: auto !important;
    padding: 5px !important;
    border: 1px solid #dfe7ef !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    box-shadow: 0 12px 28px rgba(29, 57, 88, 0.14) !important;
}

#main .tag-dropdown-item {
    padding: 9px 11px !important;
    border-radius: 6px;
    color: #52677c;
    font-size: 12px !important;
    transition: background 0.15s ease, color 0.15s ease;
}

#main .tag-dropdown-item:hover,
#main .tag-dropdown-item.selected {
    background: #eaf3fc !important;
    color: #145b9e !important;
}

#main .tag-dropdown-item.add-new {
    margin-top: 4px;
    border-top: 1px solid #edf1f5 !important;
    border-radius: 0 0 6px 6px;
    color: var(--safarix-primary) !important;
    font-style: normal !important;
    font-weight: 700;
}

#main .tag-no-results {
    padding: 10px 11px !important;
    color: #8b9bad !important;
    font-size: 12px !important;
}

@media (max-width: 767px) {
    #main .tag-input {
        min-width: 90px !important;
    }

    #main .tag-dropdown-list {
        max-height: 180px !important;
    }
}

/* =========================================================
   DATATABLES
   Shared list controls: entries, search and pagination.
   ========================================================= */

#main .dataTables_wrapper {
    width: 100%;
    padding: 20px;
    border: 1px solid var(--safarix-border);
    border-radius: var(--admin-radius);
    background: #ffffff;
    box-shadow: var(--admin-shadow);
    overflow-x: auto;
}

#main .dataTables_wrapper .dataTables_length,
#main .dataTables_wrapper .dataTables_filter {
    display: flex;
    align-items: center;
    min-height: 40px;
    margin-bottom: 18px;
    color: #687c91;
    font-size: 12px;
    font-weight: 700;
}

#main .dataTables_wrapper .dataTables_length {
    float: left;
    gap: 8px;
}

#main .dataTables_wrapper .dataTables_filter {
    float: right;
    gap: 8px;
}

#main .dataTables_wrapper .dataTables_length select,
#main .dataTables_wrapper .dataTables_filter input {
    height: 38px;
    margin: 0;
    border: 1px solid #dfe7ef;
    border-radius: 8px;
    outline: 0;
    background: #fbfdff;
    color: #43556b;
    font-size: 12px;
    font-weight: 600;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

#main .dataTables_wrapper .dataTables_length select {
    min-width: 68px;
    padding: 0 28px 0 10px;
    cursor: pointer;
}

#main .dataTables_wrapper .dataTables_filter input {
    width: 220px;
    padding: 0 12px;
}

#main .dataTables_wrapper .dataTables_length select:focus,
#main .dataTables_wrapper .dataTables_filter input:focus {
    border-color: #6ba7e8;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(23, 105, 210, 0.12);
}

#main .dataTables_wrapper .dataTables_filter input::placeholder {
    color: #9aaabd;
}

#main .dataTables_wrapper .dataTables_scroll,
#main .dataTables_wrapper table.dataTable {
    clear: both;
    width: 100% !important;
}

#main .dataTables_wrapper table.dataTable {
    margin: 0 0 18px !important;
}

#main .dataTables_wrapper table.dataTable thead th {
    border-bottom: 0;
}

#main .dataTables_wrapper .dataTables_info {
    padding-top: 12px;
    color: #8b9bad;
    font-size: 11px;
}

#main .dataTables_wrapper .dataTables_paginate {
    float: none;
    clear: both;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 4px auto 0;
    padding-top: 7px;
}

#main .dataTables_wrapper .dataTables_paginate .paginate_button {
    min-width: 34px;
    height: 34px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 8px !important;
    border: 1px solid #dfe7ef !important;
    border-radius: 7px !important;
    background: #ffffff !important;
    color: #58708a !important;
    font-size: 11px;
    font-weight: 700;
}

#main .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    border-color: #aac9e8 !important;
    background: #eef5fc !important;
    color: #145b9e !important;
}

#main .dataTables_wrapper .dataTables_paginate .paginate_button.current,
#main .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    border-color: var(--safarix-primary) !important;
    background: var(--safarix-primary) !important;
    color: #ffffff !important;
}

#main .dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
#main .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f7f9fb !important;
    color: #9aaabd !important;
}

/* Guide list: keep the action column compact and every action button equal. */
#main .card:has(#dataTable) {
    border: 0;
    background: transparent;
    box-shadow: none;
}

#main .card:has(#dataTable) > .card-body {
    padding: 0;
}

#main #dataTable tbody td:last-child {
    min-width: 270px;
    white-space: nowrap;
    vertical-align: middle;
}

#main #dataTable tbody td:last-child > .btn,
#main #dataTable tbody td:last-child > form,
#main #dataTable tbody td:last-child > form .btn {
    width: 82px;
    min-width: 82px;
    height: 34px;
    min-height: 34px;
    margin: 2px !important;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    font-size: 11px;
    line-height: 1;
}

#main #dataTable tbody td:last-child > form {
    border: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

#main #dataTable tbody td:last-child > .btn-info {
    background: #2b83c6;
    border-color: #2b83c6;
}

#main #dataTable tbody td:last-child > .btn-primary {
    background: var(--safarix-primary);
    border-color: var(--safarix-primary);
}

#main #dataTable tbody td:last-child > form .btn-danger {
    background: #d95362;
    border-color: #d95362;
}

#main #dataTable tbody td:last-child > .btn:hover,
#main #dataTable tbody td:last-child > form .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(29, 57, 88, 0.16);
}

#main #dataTable tbody td .badge.bg-info {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    margin: 2px 0 !important;
    padding: 5px 9px;
    border: 1px solid #b9d5ea;
    border-radius: 999px;
    background: #eaf3fc !important;
    color: #185b91 !important;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

/* Career guide list: status and action cells need stronger visual hierarchy. */
#main #dataTable:has(thead th:nth-child(8)) tbody td:nth-child(5) {
    display: table-cell;
    color: #8a5a08;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

#main #dataTable:has(thead th:nth-child(8)) tbody td:last-child {
    min-width: 120px;
    text-align: center;
}

#main #dataTable:has(thead th:nth-child(8)) tbody td:last-child .btn {
    width: 82px;
    min-width: 82px;
    height: 34px;
    min-height: 34px;
}

@media (max-width: 767px) {
    #main #dataTable tbody td:last-child {
        min-width: 250px;
    }

    #main #dataTable tbody td:last-child > .btn,
    #main #dataTable tbody td:last-child > form,
    #main #dataTable tbody td:last-child > form .btn {
        width: 76px;
        min-width: 76px;
    }
}

@media (max-width: 575px) {
    #main .dataTables_wrapper {
        padding: 14px;
    }

    #main .dataTables_wrapper .dataTables_length,
    #main .dataTables_wrapper .dataTables_filter {
        float: none;
        justify-content: space-between;
        width: 100%;
        margin-bottom: 10px;
    }

    #main .dataTables_wrapper .dataTables_filter input {
        width: min(220px, 58vw);
    }

    #main .dataTables_wrapper .dataTables_info,
    #main .dataTables_wrapper .dataTables_paginate {
        float: none;
        justify-content: center;
        text-align: center;
    }
}

/* Keep the fixed back-to-top control clear of DataTables pagination. */
body:has(#main .dataTables_wrapper) .back-to-top {
    right: 18px;
    bottom: 18px;
    width: 42px;
    height: 42px;
    border-radius: 9px;
    background: var(--safarix-primary);
    box-shadow: 0 8px 18px rgba(23, 105, 210, 0.22);
}

body:has(#main .dataTables_wrapper) .back-to-top:hover {
    background: var(--safarix-primary-dark);
}

@media (max-width: 575px) {
    body:has(#main .dataTables_wrapper) .back-to-top {
        right: auto;
        left: 14px;
        bottom: 18px;
    }
}

/* =========================================================
   ADD GUIDE FORM
   Stronger contrast for the long multi-section guide form.
   ========================================================= */

#main:has(form[action="/submitguide"]) {
    color: #263b54;
}

#main:has(form[action="/submitguide"]) form[action="/submitguide"] .card {
    border-color: #c9d6e2;
    background: #ffffff;
    box-shadow: 0 7px 20px rgba(24, 55, 86, 0.08);
}

#main:has(form[action="/submitguide"]) form[action="/submitguide"] .card-header {
    min-height: 56px;
    border-bottom: 1px solid #c9d6e2;
    background: #eaf2fb;
}

#main:has(form[action="/submitguide"]) form[action="/submitguide"] .card-header .card-title {
    color: #173f68;
    font-size: 15px;
    letter-spacing: 0.1px;
}

#main:has(form[action="/submitguide"]) form[action="/submitguide"] .card-body {
    background: #ffffff;
}

#main:has(form[action="/submitguide"]) form[action="/submitguide"] .form-label {
    color: #304e6b;
    font-size: 12px;
}

#main:has(form[action="/submitguide"]) form[action="/submitguide"] .form-control,
#main:has(form[action="/submitguide"]) form[action="/submitguide"] .form-select {
    border: 1px solid #b8c8d8;
    background-color: #f8fbfe;
    color: #263b54;
}

#main:has(form[action="/submitguide"]) form[action="/submitguide"] .form-control:hover,
#main:has(form[action="/submitguide"]) form[action="/submitguide"] .form-select:hover {
    border-color: #91abc2;
    background-color: #ffffff;
}

#main:has(form[action="/submitguide"]) form[action="/submitguide"] .form-control:focus,
#main:has(form[action="/submitguide"]) form[action="/submitguide"] .form-select:focus {
    border-color: #347fbe;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(23, 105, 210, 0.15);
}

#main:has(form[action="/submitguide"]) form[action="/submitguide"] .form-control::placeholder {
    color: #788da1;
}

#main:has(form[action="/submitguide"]) form[action="/submitguide"] .form-check-label {
    color: #405b73;
    font-size: 12px;
    font-weight: 600;
}

#main:has(form[action="/submitguide"]) form[action="/submitguide"] .form-check-input {
    width: 16px;
    height: 16px;
    border-color: #8fa7bb;
}

#main:has(form[action="/submitguide"]) form[action="/submitguide"] .form-check-input:checked {
    border-color: #1769d2;
    background-color: #1769d2;
}

#main:has(form[action="/submitguide"]) form[action="/submitguide"] .tag-box {
    border-color: #b8c8d8 !important;
    background: #f8fbfe !important;
}

#main:has(form[action="/submitguide"]) form[action="/submitguide"] .tag-box:hover,
#main:has(form[action="/submitguide"]) form[action="/submitguide"] .tag-box:focus-within {
    border-color: #347fbe !important;
    background: #ffffff !important;
}

#main:has(form[action="/submitguide"]) form[action="/submitguide"] .tag-dropdown-list {
    border-color: #b8c8d8 !important;
}

#main:has(form[action="/submitguide"]) form[action="/submitguide"] .tag-item {
    background: #dcecf9 !important;
    color: #174e80 !important;
    border: 1px solid #b8d3ea;
}

#main:has(form[action="/submitguide"]) form[action="/submitguide"] .text-muted,
#main:has(form[action="/submitguide"]) form[action="/submitguide"] .form-text {
    color: #71869a !important;
}

#main:has(form[action="/submitguide"]) form[action="/submitguide"] > .text-center {
    padding: 4px 0 24px;
}

#main:has(form[action="/submitguide"]) form[action="/submitguide"] > .text-center .btn-primary {
    min-width: 150px;
    min-height: 44px;
    border-color: #145cae;
    background: #1769d2;
    box-shadow: 0 7px 16px rgba(23, 105, 210, 0.2);
}

/* =========================================================
   GUIDE DETAIL PAGE
   Turn the long detail stack into a scannable information grid.
   ========================================================= */

#main > .section > .row > .col-lg-12:has(> .card:first-child > .card-body > img) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

#main > .section > .row > .col-lg-12:has(> .card:first-child > .card-body > img) > .card {
    min-width: 0;
    margin-bottom: 0 !important;
    border-color: #c9d6e2;
    box-shadow: 0 7px 20px rgba(24, 55, 86, 0.08);
}

#main > .section > .row > .col-lg-12:has(> .card:first-child > .card-body > img) > .card:nth-child(1),
#main > .section > .row > .col-lg-12:has(> .card:first-child > .card-body > img) > .card:nth-child(2) {
    grid-column: 1 / -1;
}

#main > .section > .row > .col-lg-12:has(> .card:first-child > .card-body > img) > .card:first-child .card-body {
    padding: 26px;
    background: linear-gradient(135deg, #eaf2fb 0%, #f8fbfe 100%);
}

#main > .section > .row > .col-lg-12:has(> .card:first-child > .card-body > img) > .card:first-child img {
    width: 240px;
    height: 240px;
    max-width: 240px !important;
    border: 5px solid #ffffff;
    border-radius: 50% !important;
    object-fit: cover;
    box-shadow: 0 8px 22px rgba(29, 57, 88, 0.18);
}

/* Career guide detail: make the pending approval area unmistakable. */
#main:has(#chargesPerDay) > .section .card:has(#chargesPerDay) {
    border-color: #b9d4c4;
    box-shadow: 0 8px 22px rgba(35, 115, 72, 0.1);
}

#main:has(#chargesPerDay) > .section .card:has(#chargesPerDay) .card-header {
    background: #eaf8f0;
    border-bottom-color: #c5e1cf;
}

#main:has(#chargesPerDay) > .section .card:has(#chargesPerDay) .card-header .card-title {
    color: #236b43;
}

#main:has(#chargesPerDay) > .section .card:has(#chargesPerDay) .form-control {
    border-color: #a9c8b4;
    background: #fbfffc;
}

#main:has(#chargesPerDay) > .section .card:has(#chargesPerDay) .form-control:focus {
    border-color: #3b9861;
    box-shadow: 0 0 0 3px rgba(35, 115, 72, 0.14);
}

#main:has(#chargesPerDay) > .section .card:has(#chargesPerDay) .d-flex {
    align-items: center;
    flex-wrap: wrap;
    gap: 10px !important;
}

#main:has(#chargesPerDay) > .section .card:has(#chargesPerDay) .d-flex form {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

#main:has(#chargesPerDay) > .section .card:has(#chargesPerDay) .d-flex .btn {
    width: 112px;
    min-width: 112px;
    height: 40px;
    min-height: 40px;
}

#main:has(#chargesPerDay) > .section .card:has(#chargesPerDay) .btn-success {
    border-color: #237348;
    background: #237348;
}

#main:has(#chargesPerDay) > .section .card:has(#chargesPerDay) .btn-danger {
    border-color: #c44555;
    background: #c44555;
}

#main > .section > .row > .col-lg-12:has(> .card:first-child > .card-body > img) > .card .card-header {
    min-height: 52px;
    padding: 13px 18px;
    background: #eaf2fb;
    border-bottom-color: #c9d6e2;
}

#main > .section > .row > .col-lg-12:has(> .card:first-child > .card-body > img) > .card .card-header .card-title {
    color: #173f68;
    font-size: 14px;
}

#main > .section > .row > .col-lg-12:has(> .card:first-child > .card-body > img) > .card .card-body {
    padding: 18px;
}

#main > .section > .row > .col-lg-12:has(> .card:first-child > .card-body > img) > .card .card-body p {
    min-height: 34px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    padding: 9px 0;
    border-bottom: 1px solid #e5edf4;
    color: #52677c;
    font-size: 12px;
    line-height: 1.55;
}

#main > .section > .row > .col-lg-12:has(> .card:first-child > .card-body > img) > .card .card-body p:last-child {
    border-bottom: 0;
}

#main > .section > .row > .col-lg-12:has(> .card:first-child > .card-body > img) > .card .card-body p strong {
    flex: 0 0 170px;
    color: #294b69;
    font-weight: 800;
}

#main > .section > .row > .col-lg-12:has(> .card:first-child > .card-body > img) > .card .card-body p:not(:has(strong)) {
    display: block;
}

@media (max-width: 767px) {
    #main > .section > .row > .col-lg-12:has(> .card:first-child > .card-body > img) {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    #main > .section > .row > .col-lg-12:has(> .card:first-child > .card-body > img) > .card:nth-child(1),
    #main > .section > .row > .col-lg-12:has(> .card:first-child > .card-body > img) > .card:nth-child(2) {
        grid-column: auto;
    }

    #main > .section > .row > .col-lg-12:has(> .card:first-child > .card-body > img) > .card .card-body p {
        display: block;
    }

    #main > .section > .row > .col-lg-12:has(> .card:first-child > .card-body > img) > .card .card-body p strong {
        display: block;
        margin-bottom: 3px;
    }

    #main > .section > .row > .col-lg-12:has(> .card:first-child > .card-body > img) > .card:first-child img {
        width: 190px;
        height: 190px;
        max-width: 190px !important;
    }
}

@media (max-width: 767px) {
    #main:has(form[action="/submitguide"]) form[action="/submitguide"] .card-header {
        min-height: 52px;
    }

    #main:has(form[action="/submitguide"]) form[action="/submitguide"] .card-body {
        padding: 16px;
    }
}

/* Make every select use the same surface as the text inputs. */
#main select.form-control,
#main select.form-select,
#main .dataTables_wrapper .dataTables_length select {
    min-height: 40px;
    border: 1px solid #b8c8d8 !important;
    border-radius: 8px !important;
    background-color: #f8fbfe;
    color: #263b54;
    font-size: 13px;
    line-height: 1.35;
    box-shadow: none;
}

#main select.form-control:hover,
#main select.form-select:hover,
#main .dataTables_wrapper .dataTables_length select:hover {
    border-color: #91abc2 !important;
    background-color: #ffffff;
}

#main select.form-control:focus,
#main select.form-select:focus,
#main .dataTables_wrapper .dataTables_length select:focus {
    border-color: #347fbe !important;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(23, 105, 210, 0.15) !important;
    outline: 0;
}

#main select.form-control option,
#main select.form-select option,
#main .dataTables_wrapper .dataTables_length select option {
    padding: 8px 10px;
    background: #ffffff;
    color: #263b54;
}

#main select.form-control option:checked,
#main select.form-select option:checked,
#main .dataTables_wrapper .dataTables_length select option:checked {
    background: #eaf2fb;
    color: #145b9e;
}

/* Keep Select2's visible control identical to native text boxes. */
#main .select2-container--default .select2-selection--single,
#main .select2-container--default .select2-selection--multiple {
    min-height: 40px;
    border: 1px solid #b8c8d8;
    border-radius: 8px;
    background: #f8fbfe;
}

#main .select2-container--default .select2-selection--multiple {
    padding: 3px 7px;
}

.select2-container {
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

.select2-container--open {
    z-index: 1200;
}

.select2-dropdown {
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    z-index: 1201;
    background: #ffffff;
}

.select2-results__options {
    max-height: 220px;
    margin: 0;
    padding: 5px;
    overflow-y: auto;
    list-style: none;
}

.select2-results__option[aria-selected="true"] {
    background: #eaf2fb;
    color: #145b9e;
}

.select2-search--dropdown {
    padding: 7px;
}

.select2-search--dropdown .select2-search__field {
    width: 100%;
    min-height: 34px;
    padding: 6px 9px;
    border: 1px solid #b8c8d8;
    border-radius: 7px;
    outline: 0;
}

/* Blog form: group metadata fields while giving description full width. */
#main:has(form[action="/blog/add"]) > .section .col-lg-8 {
    width: min(100%, 980px);
}

#main:has(form[action="/blog/add"]) form[action="/blog/add"] {
    padding: 24px;
    border-color: #c9d6e2;
    box-shadow: 0 8px 24px rgba(29, 57, 88, 0.08);
}

#main:has(form[action="/blog/add"]) #faqRepeater {
    display: grid;
    gap: 16px;
}

#main:has(form[action="/blog/add"]) .faq-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
    gap: 16px;
    margin: 0 !important;
    padding: 18px !important;
    border: 1px solid #b8c8d8 !important;
    border-radius: 10px !important;
    background: #f8fbfe;
}

#main:has(form[action="/blog/add"]) .faq-group .mb-3 {
    margin: 0 !important;
}

#main:has(form[action="/blog/add"]) .faq-group .mb-3:nth-child(5),
#main:has(form[action="/blog/add"]) .faq-group .remove-faq {
    grid-column: 1 / -1;
}

#main:has(form[action="/blog/add"]) .faq-group .form-label {
    color: #304e6b;
    font-size: 12px;
    font-weight: 800;
}

#main:has(form[action="/blog/add"]) .faq-group .form-control,
#main:has(form[action="/blog/add"]) .faq-group .form-select {
    min-height: 42px;
    border-color: #b8c8d8;
    background: #ffffff;
}

#main:has(form[action="/blog/add"]) .faq-group textarea.form-control {
    min-height: 118px;
    line-height: 1.55;
}

#main:has(form[action="/blog/add"]) .faq-group .remove-faq {
    width: 100px;
    min-width: 100px;
    height: 40px;
    min-height: 40px;
    justify-self: end;
    margin: 0;
}

#main:has(form[action="/blog/add"]) #addFaqBtn {
    min-width: 118px;
    margin-top: 18px;
}

#main:has(form[action="/blog/add"]) form[action="/blog/add"] > .btn-primary {
    min-width: 150px;
    min-height: 42px;
    margin-top: 2px;
}

/* Blog category form: keep repeatable category rows compact and clear. */
#main:has(form[action="/vlogcategory/add"]) > .section .col-lg-8 {
    width: min(100%, 760px);
}

#main:has(form[action="/vlogcategory/add"]) form[action="/vlogcategory/add"] {
    padding: 24px;
    border-color: #c9d6e2;
    box-shadow: 0 8px 24px rgba(29, 57, 88, 0.08);
}

#main:has(form[action="/vlogcategory/add"]) #vlogCategoryRepeater {
    display: grid;
    gap: 16px;
}

#main:has(form[action="/vlogcategory/add"]) .vlog-category-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 100px;
    align-items: end;
    gap: 16px;
    margin: 0 !important;
    padding: 18px !important;
    border: 1px solid #b8c8d8 !important;
    border-radius: 10px !important;
    background: #f8fbfe;
}

#main:has(form[action="/vlogcategory/add"]) .vlog-category-group .mb-3 {
    margin: 0 !important;
}

#main:has(form[action="/vlogcategory/add"]) .vlog-category-group .form-label {
    color: #304e6b;
    font-size: 12px;
    font-weight: 800;
}

#main:has(form[action="/vlogcategory/add"]) .vlog-category-group .form-control {
    min-height: 42px;
    border-color: #b8c8d8;
    background: #ffffff;
}

#main:has(form[action="/vlogcategory/add"]) .vlog-category-group .remove-category {
    width: 100px;
    min-width: 100px;
    height: 40px;
    min-height: 40px;
    margin: 0;
}

#main:has(form[action="/vlogcategory/add"]) #addCategoryBtn {
    min-width: 118px;
    margin-top: 18px;
}

#main:has(form[action="/vlogcategory/add"]) form[action="/vlogcategory/add"] > .btn-primary {
    min-width: 160px;
    min-height: 42px;
    margin-top: 2px;
}

/* Dashboard surface: align summary cards, chart panels and filter controls. */
#main:has(.dashboard-stat-row) > .dashboard-page-title {
    max-width: 1600px;
    margin-bottom: 24px;
    padding: 0 2px 16px;
    border-bottom: 1px solid #dfe7ef;
}

#main:has(.dashboard-stat-row) > .dashboard-page-title h1 {
    color: #123f7a;
    font-size: 28px;
    font-weight: 800;
}

#main:has(.dashboard-stat-row) > .dashboard-page-title p {
    color: #687c91;
    font-size: 12px;
}

#main:has(.dashboard-stat-row) .dashboard-container > .row {
    --bs-gutter-x: 18px;
    --bs-gutter-y: 18px;
}

#main:has(.dashboard-stat-row) .dashboard-stat-row > [class*="col-"] {
    display: flex;
}

#main:has(.dashboard-stat-row) .travel-stat-card {
    width: 100%;
    min-height: 190px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

#main:has(.dashboard-stat-row) .travel-stat-card:hover {
    border-color: #c2d7ea;
}

#main:has(.dashboard-stat-row) .stat-link {
    min-height: 32px;
    padding: 7px 11px;
    border-radius: 7px;
    font-weight: 700;
}

#main:has(.dashboard-stat-row) .dashboard-container > .row:not(.dashboard-stat-row) {
    margin-top: 2px;
}

#main:has(.dashboard-stat-row) .dashboard-chart-card {
    height: calc(100% - 16px);
    min-height: 440px;
    border-color: #d8e3ed;
    box-shadow: 0 7px 22px rgba(29, 57, 88, 0.07);
}

#main:has(.dashboard-stat-row) .chart-card-header {
    min-height: 74px;
}

#main:has(.dashboard-stat-row) .chart-filters .form-select {
    min-height: 40px;
    border-color: #b8c8d8;
    background-color: #ffffff;
}

#main:has(.dashboard-stat-row) .dashboard-filter-btn,
#main:has(.dashboard-stat-row) .dashboard-reset-btn {
    min-height: 40px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

#main:has(.dashboard-stat-row) .dashboard-filter-btn:hover,
#main:has(.dashboard-stat-row) .dashboard-reset-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(29, 57, 88, 0.12);
}

@media (max-width: 767px) {
    #main:has(.dashboard-stat-row) > .dashboard-page-title {
        margin-bottom: 18px;
        padding-bottom: 12px;
    }

    #main:has(.dashboard-stat-row) > .dashboard-page-title h1 {
        font-size: 23px;
    }

    #main:has(.dashboard-stat-row) .dashboard-chart-card {
        height: auto;
        min-height: 0;
    }

    #main:has(form[action="/vlogcategory/add"]) form[action="/vlogcategory/add"] {
        padding: 16px;
    }

    #main:has(form[action="/vlogcategory/add"]) .vlog-category-group {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    #main:has(form[action="/vlogcategory/add"]) .vlog-category-group .remove-category {
        width: 100%;
    }
}

/* Blog category list: keep names prominent and actions equal. */
#main #dataTable:has(tbody td form[action^="/vlog-category/edit"]) tbody td:nth-child(2) {
    min-width: 280px;
    color: #315273;
    font-size: 13px;
    font-weight: 800;
}

#main #dataTable:has(tbody td form[action^="/vlog-category/edit"]) tbody td:last-child {
    min-width: 190px;
    text-align: center;
    white-space: nowrap;
}

#main #dataTable:has(tbody td form[action^="/vlog-category/edit"]) tbody td:last-child form {
    display: inline-flex;
    margin: 2px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

@media (max-width: 767px) {
    #main:has(form[action="/blog/add"]) form[action="/blog/add"] {
        padding: 16px;
    }

    #main:has(form[action="/blog/add"]) .faq-group {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    #main:has(form[action="/blog/add"]) .faq-group .mb-3:nth-child(5),
    #main:has(form[action="/blog/add"]) .faq-group .remove-faq {
        grid-column: auto;
    }

    #main:has(form[action="/blog/add"]) .faq-group .remove-faq {
        width: 100%;
        justify-self: stretch;
    }
}

#main .select2-container--default .select2-selection--multiple .select2-selection__choice {
    margin-top: 3px;
    border: 1px solid #b8d3ea;
    border-radius: 999px;
    background: #dcecf9;
    color: #174e80;
    font-size: 11px;
}

#main .select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #347fbe;
    box-shadow: 0 0 0 3px rgba(23, 105, 210, 0.15);
}

/* Coupon form: group related fields into a clear, compact admin form. */
#main:has(form[action="/createcoupon"]) > .section .col-lg-6 {
    width: min(100%, 760px);
}

#main:has(form[action="/createcoupon"]) form[action="/createcoupon"] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
    padding: 26px;
    border-color: #c9d6e2;
    box-shadow: 0 8px 24px rgba(29, 57, 88, 0.08);
}

#main:has(form[action="/createcoupon"]) form[action="/createcoupon"] > .mb-3 {
    margin: 0 !important;
}

#main:has(form[action="/createcoupon"]) form[action="/createcoupon"] > .mb-3:first-child,
#main:has(form[action="/createcoupon"]) form[action="/createcoupon"] > .mb-3:last-of-type,
#main:has(form[action="/createcoupon"]) form[action="/createcoupon"] > .btn {
    grid-column: 1 / -1;
}

#main:has(form[action="/createcoupon"]) form[action="/createcoupon"] label {
    display: block;
    margin-bottom: 7px;
    color: #304e6b;
    font-size: 12px;
    font-weight: 800;
}

#main:has(form[action="/createcoupon"]) form[action="/createcoupon"] .form-control {
    min-height: 42px;
    border: 1px solid #b8c8d8;
    border-radius: 8px;
    background: #f8fbfe;
    color: #263b54;
}

#main:has(form[action="/createcoupon"]) form[action="/createcoupon"] .form-control:hover {
    border-color: #91abc2;
    background: #ffffff;
}

#main:has(form[action="/createcoupon"]) form[action="/createcoupon"] .form-control:focus {
    border-color: #347fbe;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(23, 105, 210, 0.15);
}

#main:has(form[action="/createcoupon"]) form[action="/createcoupon"] .btn-success {
    min-height: 42px;
    border-color: #237348;
    background: #237348;
    box-shadow: 0 6px 14px rgba(35, 115, 72, 0.16);
}

@media (max-width: 767px) {
    #main:has(form[action="/createcoupon"]) form[action="/createcoupon"] {
        grid-template-columns: 1fr;
        padding: 18px;
    }
}

/* Coupon list: emphasize code, discount value, status and the destructive action. */
#main #dataTable:has(tbody td form[action^="/deleteCoupon"]) tbody td:nth-child(2) {
    color: #174e80;
    font-weight: 800;
    letter-spacing: 0.35px;
}

#main #dataTable:has(tbody td form[action^="/deleteCoupon"]) tbody td:nth-child(3) {
    color: #52677c;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

#main #dataTable:has(tbody td form[action^="/deleteCoupon"]) tbody td:nth-child(4) {
    color: #185b91;
    font-weight: 800;
    white-space: nowrap;
}

#main #dataTable:has(tbody td form[action^="/deleteCoupon"]) tbody td:nth-child(7) {
    color: #237348;
    font-size: 11px;
    font-weight: 800;
    text-transform: capitalize;
}

#main #dataTable:has(tbody td form[action^="/deleteCoupon"]) tbody td:last-child {
    min-width: 105px;
    text-align: center;
}

#main #dataTable:has(tbody td form[action^="/deleteCoupon"]) tbody td:last-child form {
    display: inline-flex;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

#main #dataTable:has(tbody td form[action^="/deleteCoupon"]) tbody td:last-child .btn-danger {
    width: 84px;
    min-width: 84px;
    height: 34px;
    min-height: 34px;
}

/* Payment transactions: use clearer financial and status hierarchy. */
#main #dataTable:has(tbody span.badge.bg-success):has(thead th:nth-child(9)) tbody td:nth-child(2),
#main #dataTable:has(tbody span.badge.bg-success):has(thead th:nth-child(9)) tbody td:nth-child(3) {
    color: #315273;
    font-weight: 800;
    white-space: nowrap;
}

#main #dataTable:has(tbody span.badge.bg-success):has(thead th:nth-child(9)) tbody td:nth-child(4),
#main #dataTable:has(tbody span.badge.bg-success):has(thead th:nth-child(9)) tbody td:nth-child(5) {
    color: #687c91;
    font-size: 11px;
    font-family: "Nunito", sans-serif;
    white-space: nowrap;
}

#main #dataTable:has(tbody span.badge.bg-success):has(thead th:nth-child(9)) tbody td:nth-child(6) {
    color: #185b91;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

#main #dataTable:has(tbody span.badge.bg-success):has(thead th:nth-child(9)) tbody td:nth-child(7) .badge {
    min-width: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    font-size: 10px;
}

#main #dataTable:has(tbody span.badge.bg-success):has(thead th:nth-child(9)) tbody td:nth-child(7) .badge.bg-success {
    border-color: #b9ddc7;
    background: #eaf8f0 !important;
    color: #237348 !important;
}

#main #dataTable:has(tbody span.badge.bg-success):has(thead th:nth-child(9)) tbody td:nth-child(7) .badge.bg-warning {
    border-color: #f1d99b;
    background: #fff6df !important;
    color: #8a5a08 !important;
}

#main #dataTable:has(tbody span.badge.bg-success):has(thead th:nth-child(9)) tbody td:nth-child(7) .badge.bg-danger {
    border-color: #edbbc2;
    background: #fff0f1 !important;
    color: #a43d4a !important;
}

#main #dataTable:has(tbody span.badge.bg-success):has(thead th:nth-child(9)) tbody td:nth-child(7) .badge.bg-info {
    border-color: #b9d5ea;
    background: #eaf3fc !important;
    color: #185b91 !important;
}

#main #dataTable:has(tbody span.badge.bg-success):has(thead th:nth-child(9)) tbody td:nth-child(7) .badge.bg-secondary {
    border-color: #d4dce4;
    background: #f1f4f7 !important;
    color: #687c91 !important;
}

/* Booking table: distinguish service, status, amount and booking identity. */
#main #dataTable:has(tbody td:nth-child(4) .badge.bg-info) tbody td:nth-child(2),
#main #dataTable:has(tbody td:nth-child(4) .badge.bg-info) tbody td:nth-child(3) {
    color: #315273;
    font-weight: 800;
    white-space: nowrap;
}

#main #dataTable:has(tbody td:nth-child(4) .badge.bg-info) tbody td:nth-child(4) .badge,
#main #dataTable:has(tbody td:nth-child(4) .badge.bg-info) tbody td:nth-child(5) .badge {
    min-width: 78px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    text-transform: capitalize;
}

#main #dataTable:has(tbody td:nth-child(4) .badge.bg-info) tbody td:nth-child(4) .badge.bg-info {
    border-color: #b9d5ea;
    background: #eaf3fc !important;
    color: #185b91 !important;
}

#main #dataTable:has(tbody td:nth-child(4) .badge.bg-info) tbody td:nth-child(5) .badge.bg-success {
    border-color: #b9ddc7;
    background: #eaf8f0 !important;
    color: #237348 !important;
}

#main #dataTable:has(tbody td:nth-child(4) .badge.bg-info) tbody td:nth-child(5) .badge.bg-warning {
    border-color: #f1d99b;
    background: #fff6df !important;
    color: #8a5a08 !important;
}

#main #dataTable:has(tbody td:nth-child(4) .badge.bg-info) tbody td:nth-child(5) .badge.bg-danger {
    border-color: #edbbc2;
    background: #fff0f1 !important;
    color: #a43d4a !important;
}

#main #dataTable:has(tbody td:nth-child(4) .badge.bg-info) tbody td:nth-child(5) .badge.bg-secondary {
    border-color: #d4dce4;
    background: #f1f4f7 !important;
    color: #687c91 !important;
}

#main #dataTable:has(tbody td:nth-child(4) .badge.bg-info) tbody td:nth-child(6) {
    color: #185b91;
    font-weight: 800;
    white-space: nowrap;
}

#main #dataTable:has(tbody td:nth-child(4) .badge.bg-info) tbody td:nth-child(7) {
    color: #687c91;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Banner form: make each repeatable upload block easy to scan and edit. */
#main:has(form[action="/banner/add"]) > .section .col-lg-8 {
    width: min(100%, 920px);
}

#main:has(form[action="/banner/add"]) form[action="/banner/add"] {
    padding: 24px;
    border-color: #c9d6e2;
    box-shadow: 0 8px 24px rgba(29, 57, 88, 0.08);
}

#main:has(form[action="/banner/add"]) #bannerRepeater {
    display: grid;
    gap: 16px;
}

#main:has(form[action="/banner/add"]) .banner-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 100px;
    align-items: end;
    gap: 16px;
    margin: 0 !important;
    padding: 18px !important;
    border: 1px solid #b8c8d8 !important;
    border-radius: 10px !important;
    background: #f8fbfe;
}

#main:has(form[action="/banner/add"]) .banner-group .mb-3 {
    margin: 0 !important;
}

#main:has(form[action="/banner/add"]) .banner-group .form-label {
    color: #304e6b;
    font-size: 12px;
    font-weight: 800;
}

#main:has(form[action="/banner/add"]) .banner-group .form-control {
    min-height: 42px;
    border-color: #b8c8d8;
    background: #ffffff;
}

#main:has(form[action="/banner/add"]) .banner-group input[type="file"] {
    padding: 8px 10px;
}

#main:has(form[action="/banner/add"]) .banner-group .remove-banner {
    width: 100px;
    min-width: 100px;
    height: 40px;
    min-height: 40px;
    margin: 0;
}

#main:has(form[action="/banner/add"]) #addBannerBtn {
    min-width: 118px;
    margin-top: 18px;
}

#main:has(form[action="/banner/add"]) form[action="/banner/add"] > .btn-primary {
    min-width: 142px;
    min-height: 42px;
    margin-top: 2px;
}

@media (max-width: 767px) {
    #main:has(form[action="/banner/add"]) form[action="/banner/add"] {
        padding: 16px;
    }

    #main:has(form[action="/banner/add"]) .banner-group {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    #main:has(form[action="/banner/add"]) .banner-group .remove-banner {
        width: 100%;
    }
}

/* Banner list: give previews and row actions a consistent visual rhythm. */
#main #dataTable:has(tbody td form[action^="/banner/edit"]) tbody td:nth-child(2) {
    width: 180px;
    text-align: center;
}

#main #dataTable:has(tbody td form[action^="/banner/edit"]) tbody td:nth-child(2) img {
    width: 150px;
    height: 68px !important;
    display: block;
    margin: 0 auto;
    border: 1px solid #c4d4e2;
    border-radius: 8px;
    background: #f1f6fb;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(29, 57, 88, 0.1);
}

#main #dataTable:has(tbody td form[action^="/banner/edit"]) tbody td:nth-child(3) {
    min-width: 240px;
    color: #315273;
    font-weight: 700;
}

#main #dataTable:has(tbody td form[action^="/banner/edit"]) tbody td:last-child {
    min-width: 190px;
    text-align: center;
    white-space: nowrap;
}

#main #dataTable:has(tbody td form[action^="/banner/edit"]) tbody td:last-child form {
    display: inline-flex;
    margin: 2px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

/* Testimonial form: keep the repeater compact while giving the description room. */
#main:has(form[action="/testimonial/add"]) > .section .col-lg-8 {
    width: min(100%, 980px);
}

#main:has(form[action="/testimonial/add"]) form[action="/testimonial/add"] {
    padding: 24px;
    border-color: #c9d6e2;
    box-shadow: 0 8px 24px rgba(29, 57, 88, 0.08);
}

#main:has(form[action="/testimonial/add"]) #testimonialRepeater {
    display: grid;
    gap: 16px;
}

#main:has(form[action="/testimonial/add"]) .testimonial-group {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr) minmax(120px, 0.6fr);
    align-items: end;
    gap: 16px;
    margin: 0 !important;
    padding: 18px !important;
    border: 1px solid #b8c8d8 !important;
    border-radius: 10px !important;
    background: #f8fbfe;
}

#main:has(form[action="/testimonial/add"]) .testimonial-group .mb-3 {
    margin: 0 !important;
}

#main:has(form[action="/testimonial/add"]) .testimonial-group .mb-3:nth-child(3),
#main:has(form[action="/testimonial/add"]) .testimonial-group .remove-testimonial {
    grid-column: 1 / -1;
}

#main:has(form[action="/testimonial/add"]) .testimonial-group .form-label {
    color: #304e6b;
    font-size: 12px;
    font-weight: 800;
}

#main:has(form[action="/testimonial/add"]) .testimonial-group .form-control {
    min-height: 42px;
    border-color: #b8c8d8;
    background: #ffffff;
}

#main:has(form[action="/testimonial/add"]) .testimonial-group .remove-testimonial {
    width: 100px;
    min-width: 100px;
    height: 40px;
    min-height: 40px;
    margin: 0;
    justify-self: end;
}

#main:has(form[action="/testimonial/add"]) #addTestimonialBtn {
    min-width: 118px;
    margin-top: 18px;
}

#main:has(form[action="/testimonial/add"]) form[action="/testimonial/add"] > .btn-primary {
    min-width: 160px;
    min-height: 42px;
    margin-top: 2px;
}

@media (max-width: 767px) {
    #main:has(form[action="/testimonial/add"]) form[action="/testimonial/add"] {
        padding: 16px;
    }

    #main:has(form[action="/testimonial/add"]) .testimonial-group {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    #main:has(form[action="/testimonial/add"]) .testimonial-group .mb-3:nth-child(3),
    #main:has(form[action="/testimonial/add"]) .testimonial-group .remove-testimonial {
        grid-column: auto;
    }

    #main:has(form[action="/testimonial/add"]) .testimonial-group .remove-testimonial {
        width: 100%;
        justify-self: stretch;
    }
}

/* Testimonial list: balance the image, copy, rating and row actions. */
#main #dataTable:has(tbody td form[action^="/testimonial/edit"]) tbody td:nth-child(2) {
    width: 150px;
    text-align: center;
}

#main #dataTable:has(tbody td form[action^="/testimonial/edit"]) tbody td:nth-child(2) img {
    width: 96px;
    height: 96px !important;
    display: block;
    margin: 0 auto;
    border: 4px solid #ffffff;
    border-radius: 50% !important;
    background: #f1f6fb;
    object-fit: cover;
    box-shadow: 0 0 0 1px #c4d4e2, 0 5px 12px rgba(29, 57, 88, 0.14);
}

#main #dataTable:has(tbody td form[action^="/testimonial/edit"]) tbody td:nth-child(3) {
    min-width: 150px;
    color: #315273;
    font-weight: 800;
}

#main #dataTable:has(tbody td form[action^="/testimonial/edit"]) tbody td:nth-child(4) {
    min-width: 300px;
    max-width: 480px;
    color: #52677c;
    line-height: 1.55;
}

#main #dataTable:has(tbody td form[action^="/testimonial/edit"]) tbody td:nth-child(5) {
    min-width: 110px;
    color: #c28a16;
    white-space: nowrap;
}

#main #dataTable:has(tbody td form[action^="/testimonial/edit"]) tbody td:nth-child(5) .fa-star,
#main #dataTable:has(tbody td form[action^="/testimonial/edit"]) tbody td:nth-child(5) .fas {
    color: #e0a528 !important;
    font-size: 12px;
}

#main #dataTable:has(tbody td form[action^="/testimonial/edit"]) tbody td:nth-child(5) .far {
    color: #c5d0db !important;
}

#main #dataTable:has(tbody td form[action^="/testimonial/edit"]) tbody td:last-child {
    min-width: 190px;
    text-align: center;
    white-space: nowrap;
}

#main #dataTable:has(tbody td form[action^="/testimonial/edit"]) tbody td:last-child form {
    display: inline-flex;
    margin: 2px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

/* FAQ form: give each question and answer a calm, readable repeater panel. */
#main:has(form[action="/faq/add"]) > .section .col-lg-8 {
    width: min(100%, 900px);
}

#main:has(form[action="/faq/add"]) form[action="/faq/add"] {
    padding: 24px;
    border-color: #c9d6e2;
    box-shadow: 0 8px 24px rgba(29, 57, 88, 0.08);
}

#main:has(form[action="/faq/add"]) #faqRepeater {
    display: grid;
    gap: 16px;
}

#main:has(form[action="/faq/add"]) .faq-group {
    display: grid;
    gap: 14px;
    margin: 0 !important;
    padding: 18px !important;
    border: 1px solid #b8c8d8 !important;
    border-radius: 10px !important;
    background: #f8fbfe;
}

#main:has(form[action="/faq/add"]) .faq-group .mb-3 {
    margin: 0 !important;
}

#main:has(form[action="/faq/add"]) .faq-group .form-label {
    color: #304e6b;
    font-size: 12px;
    font-weight: 800;
}

#main:has(form[action="/faq/add"]) .faq-group .form-control {
    border-color: #b8c8d8;
    background: #ffffff;
}

#main:has(form[action="/faq/add"]) .faq-group textarea.form-control {
    min-height: 118px;
    line-height: 1.55;
}

#main:has(form[action="/faq/add"]) .faq-group .remove-faq {
    width: 100px;
    min-width: 100px;
    height: 40px;
    min-height: 40px;
    justify-self: end;
    margin: 0;
}

#main:has(form[action="/faq/add"]) #addFaqBtn {
    min-width: 118px;
    margin-top: 18px;
}

#main:has(form[action="/faq/add"]) form[action="/faq/add"] > .btn-primary {
    min-width: 130px;
    min-height: 42px;
    margin-top: 2px;
}

@media (max-width: 767px) {
    #main:has(form[action="/faq/add"]) form[action="/faq/add"] {
        padding: 16px;
    }

    #main:has(form[action="/faq/add"]) .faq-group .remove-faq {
        width: 100%;
        justify-self: stretch;
    }
}

/* FAQ list: give the question and answer columns room to breathe. */
#main #dataTable:has(tbody td form[action^="/faq/edit"]) tbody td:nth-child(2) {
    min-width: 260px;
    color: #315273;
    font-weight: 800;
    line-height: 1.5;
}

#main #dataTable:has(tbody td form[action^="/faq/edit"]) tbody td:nth-child(3) {
    min-width: 420px;
    max-width: 680px;
    color: #52677c;
    line-height: 1.6;
    white-space: normal;
}

#main #dataTable:has(tbody td form[action^="/faq/edit"]) tbody td:last-child {
    min-width: 190px;
    text-align: center;
    white-space: nowrap;
}

#main #dataTable:has(tbody td form[action^="/faq/edit"]) tbody td:last-child form {
    display: inline-flex;
    margin: 2px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

#main #dataTable:has(tbody td form:is([action^="/vlog-category/edit"], [action^="/banner/edit"], [action^="/testimonial/edit"], [action^="/faq/edit"])) tbody td:last-child .btn {
    width: 82px;
    min-width: 82px;
    height: 34px;
    min-height: 34px;
    margin: 0;
}

