* {
    font-family: "Playfair Display", serif;
    /* font-family: "Inter", sans-serif; */
}

body {
    background: #f4f7fc;
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    /* font-family: "Inter", sans-serif; */
    font-family: "Playfair Display", serif;
}

p {
    font-family: 13px !important;
}


::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: #eef2f6;
}

::-webkit-scrollbar-thumb {
    background: #9ba2ae;
    border-radius: 12px;
}

/* fixed sidebar */
.sidebar {
    width: 260px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    background: #ffffff;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.04);
    z-index: 1050;
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding: 1.5rem 0;
    border-right: 1px solid rgba(0, 0, 0, 0.03);
}

.sidebar .brand {
    font-weight: 700;
    font-size: 1.5rem;
    padding: 0 1.5rem 1.2rem 1.5rem;
    color: #0d6efd;
    letter-spacing: -0.3px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    margin-bottom: 0.5rem;
}

.sidebar .brand i {
    font-size: 1.8rem;
    margin-right: 10px;
}

.logo-mobile{
    max-width: 170px;
}

.nav-link {
    color: #4a5568;
    font-weight: 500;

    margin: 0.1rem 0.5rem;
    border-radius: 5px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link i {
    font-size: 1.2rem;
    width: 1.6rem;
}

.nav-link:hover,
.nav-link.active {
    background: #eef4ff;
    color: #0d6efd;
    box-shadow: 0 2px 6px rgba(13, 110, 253, 0.08);
}

.nav-link.active {
    background: #eef4ff;
    font-weight: 600;
}

/* main wrapper */
.main-content {
    margin-left: 260px;
    padding: 1rem;
    transition: margin 0.2s;
}

/* top navbar */
.top-nav {
    background: #ffffff;
    border-radius: 5px;
    padding: 0.7rem 1.2rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.02);
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.top-nav .search-box {
    background: #f1f5f9;
    border-radius: 40px;
    padding: 0.3rem 1rem;
    display: flex;
    align-items: center;
    color: #6c7a8a;
    min-width: 200px;
}

.top-nav .search-box input {
    border: none;
    background: transparent;
    padding: 0.4rem 0.6rem;
    outline: none;
    width: 100%;
    font-weight: 400;
}

.profile-dropdown img {
    width: 38px;
    height: 38px;
    border-radius: 40px;
    object-fit: cover;
}

.card-stat {
    border: none;
    border-radius: 5px;
    padding: 1.2rem 1.2rem;
    transition: all 0.25s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.02);
    background: #fff;
    height: 100%;
}

.card-stat:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.08);
}

.card-stat .stat-icon {
    background: #eef4ff;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #0d6efd;
}

.card-stat .growth {
    color: #22b573;
    background: #e3f5ec;
    padding: 0.2rem 0.7rem;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
}

.growth.down {
    color: #dc3545;
    background: #fce9e9;
}

.filter-card {
    background: #fff;
    border-radius: 5px;
    padding: 1rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.02);
    margin-bottom: 1rem;
}

.table-card {
    background: #fff;
    border-radius: 5px;
    padding: 1.2rem 1.2rem 0.2rem 1.2rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.02);
    margin-bottom: 1rem;
}

.table-card .card-title {
    font-weight: 600;
    font-size: 1.1rem;
    padding-bottom: 0.8rem;
}

.table-card table {
    font-size: 0.85rem;
}

.badge-status {
    font-weight: 500;
    padding: 0.3rem 0.8rem;
    border-radius: 40px;
    font-size: 0.7rem;
}


.package-img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 14px;
    background: #eef4ff;
}

.btn-outline-view {
    border-radius: 30px;
    padding: 0.2rem 1rem;
    border: 1px solid #dce3ec;
    color: #2d3a4f;
}

.btn-outline-view:hover {
    background: #f0f5ff;
    border-color: #0d6efd;
}

.quick-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.2rem 1rem;
    text-align: center;
    transition: all 0.2s;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.02);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.02);
    text-decoration: none;
    color: #1a2634;
    display: block;
}

.quick-card:hover {
    transform: scale(1.02);
    background: #fafdff;
    border-color: #d3e2ff;
}

.quick-card i {
    font-size: 2.2rem;
    color: #0d6efd;
    margin-bottom: 0.4rem;
}

.timeline-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    border-left: 2px solid #e2e9f3;
    padding-left: 1.6rem;
    position: relative;
}

.timeline-item:last-child {
    border-left: 2px solid transparent;
}

.timeline-item .dot {
    width: 12px;
    height: 12px;
    background: #0d6efd;
    border-radius: 20px;
    position: absolute;
    left: -7px;
    top: 4px;
}

.timeline-item .time {
    font-size: 0.7rem;
    color: #6c7a8a;
}

.welcome-card {
    background: linear-gradient(145deg, #ffffff, #fbfdff);
    border-radius: 5px;
    padding: 1rem 1.2rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(2px);
    position: relative;
    overflow: hidden;
}

.welcome-illustration {
    font-size: 3.5rem;
    opacity: 0.6;
    color: #0d6efd;
    transform: rotate(6deg);
}

footer {
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    margin-top: 2rem;
    padding: 1.2rem 0;
    color: #5b6b7e;
    font-size: 0.9rem;
}

.action-btn {
    border: none;
    background: transparent;
    color: #6c7a8a;
    padding: 0.2rem 0.4rem;
    transition: 0.15s;
    border-radius: 8px;
}

.action-btn:hover {
    background: #eef4ff;
    color: #0d6efd;
}

.action-btn.danger:hover {
    background: #fee8e8;
    color: #dc3545;
}

.action-btn.success:hover {
    background: #e3f5ec;
    color: #22b573;
}

.action-btn.info:hover {
    background: #e3f0fc;
    color: #0dcaf0;
}

.slider-preview-img { width: 70px; height: 45px; object-fit: cover; border-radius: 10px; background: #eef4ff; }

.empty-state {
    padding: 3rem 1rem;
    text-align: center;
}

.empty-state i {
    /* font-size: 4rem; */
    color: #cbd5e1;
}

#detailContent {
  font-size: 14.5px !important;
}

.timeline-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    border-left: 2px solid #e2e9f3;
    padding-left: 1.6rem;
    position: relative;
}

.timeline-item:last-child {
    border-left: 2px solid transparent;
}

.timeline-item .dot {
    width: 12px;
    height: 12px;
    background: #0d6efd;
    border-radius: 20px;
    position: absolute;
    left: -7px;
    top: 4px;
}

.timeline-item .time {
    font-size: 0.7rem;
    color: #6c7a8a;
}

.modal-content {
    border-radius: 10px;
    border: none;
}

.activity-card {
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.02);
}

.offcanvas-backdrop {
    background: rgba(0, 0, 0, 0.2);
}

/* tweaks */
.bg-soft-primary {
    background: #eef4ff;
}

.text-primary-dark {
    color: #0b5ed7;
}

.avatar-placeholder {
    background: #d9e6f2;
    width: 38px;
    height: 38px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d6efd;
    font-weight: 600;
}



.pagination .page-item {
    margin: 0px 2px !important;
}


/* company info */

.form-card {
    background: #fff;
    border-radius: 5px;
    padding: 1.2rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.02);
    margin-bottom: 1rem;
}

.form-card .card-title {
    font-weight: 600;
    font-size: 1.1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #f0f4fa;
    margin-bottom: 0.5rem;
}

.preview-card {
    background: #fff;
    border-radius: 5px;
    padding: 1.5rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.02);
    position: sticky;
    top: 1.5rem;
}

.preview-card .company-logo {
    width: 80px;
    height: 80px;
    background: #eef4ff;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #0d6efd;
    margin: 0 auto 1rem;
}

.preview-card .map-preview {
    width: 100%;
    height: 120px;
    background: #eef4ff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0b8d9;
    font-size: 0.9rem;
    margin-top: 0.8rem;
}

.preview-card .favicon-preview {
      width: 28px;
      height: 28px;
      background: #eef4ff;
      border-radius: 8px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 1rem;
      color: #0d6efd;
    }
    .upload-area {
      border: 2px dashed #dce3ec;
      border-radius: 16px;
      padding: 1.2rem;
      text-align: center;
      background: #fafcff;
      transition: 0.2s;
      cursor: pointer;
    }

     .banner-preview-img { width: 80px; height: 50px; object-fit: cover; border-radius: 10px; background: #eef4ff; }
    .upload-area:hover { border-color: #0d6efd; background: #f2f7ff; }
    .upload-area i { font-size: 1.8rem; color: #a0b8d9; }
    .toggle-switch .form-check-input { width: 48px; height: 24px; cursor: pointer; }
    .toggle-switch .form-check-input:checked { background-color: #0d6efd; border-color: #0d6efd; }
    .was-validated .form-control:invalid, .form-control.is-invalid { border-color: #dc3545; padding-right: calc(1.5em + .75rem); background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right calc(.375em + .1875rem) center; background-size: calc(.75em + .375rem) calc(.75em + .375rem); }
   
    .alert-banner-limit { border-radius: 18px; border-left: 5px solid #ffc107; }
.preview-banner {
      background: linear-gradient(135deg, #0d6efd, #4b8aff);
      border-radius: 18px;
      padding: 2rem 2.5rem;
      color: #fff;
      min-height: 120px;
      background-size: cover;
      background-position: center;
      position: relative;
    }
    .preview-banner .overlay {
      background: rgba(0,0,0,0.3);
      border-radius: 18px;
      padding: 1.5rem 2rem;
    }
    .rules-card {
      background: #f8faff;
      border-radius: 18px;
      padding: 1.2rem 1.5rem;
      border-left: 4px solid #0d6efd;
    }

.social-icon-preview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #eef4ff;
    border-radius: 40px;
    color: #0d6efd;
    margin: 0.2rem;
    transition: 0.2s;
}

.social-icon-preview:hover {
    background: #0d6efd;
    color: #fff;
}

.map-embed {
    width: 100%;
    height: 200px;
    border: 0;
    border-radius: 16px;
}

.was-validated .form-control:invalid,
.form-control.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + .75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(.375em + .1875rem) center;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}




    /* Simplified extra section */
    .extra-banner-section {
      background: #fff;
      border-radius: 5px;
      padding: 1.2rem;
      box-shadow: 0 6px 18px rgba(0,0,0,0.02);
      margin-bottom: 2rem;
    }
    .extra-banner-section .section-label {
      font-weight: 600;
      color: #1a2634;
      margin-bottom: 0.8rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }
    .extra-banner-section .section-label i { color: #0d6efd; }
    .main-banner-box {
      background: #f8faff;
      border-radius: 20px;
      padding: 1.2rem;
      border: 1px solid #eef2f7;
      display: flex;
      align-items: center;
      gap: 1.5rem;
      flex-wrap: wrap;
    }
    .main-banner-box .placeholder-img {
      width: 120px;
      height: 70px;
      background: #d9e6f2;
      border-radius: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #6c7a8a;
      font-size: 0.8rem;
    }
    .main-banner-box .main-preview-img {
      max-width: 180px;
      max-height: 80px;
      border-radius: 16px;
      object-fit: cover;
      border: 1px solid #dee2e6;
    }
    .mini-card {
      background: #f8faff;
      border-radius: 5px;
      padding: 0.8rem 1rem;
      border: 1px solid #eef2f7;
      display: flex;
      align-items: center;
      gap: 1rem;
      flex: 1 1 200px;
    }
    .mini-card img {
      width: 60px;
      height: 42px;
      object-fit: cover;
      border-radius: 10px;
      background: #d9e6f2;
      cursor: pointer;
    }
    .mini-card .info { font-size: 0.7rem; line-height: 1.2; }
    .mini-card .info .badge-text { font-weight: 600; color: #1a2634; }
    .mini-card .info .link-text { color: #6c7a8a; font-size: 0.6rem; }
    .mini-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 0.8rem;
      margin-top: 0.8rem;
    }
    .btn-add-mini { font-size: 0.8rem; }


    /* gallery */

    
    .gallery-card {
      background: #fff;
      border-radius: 20px;
      overflow: hidden;
      box-shadow: 0 6px 18px rgba(0,0,0,0.02);
      transition: all 0.3s ease;
      height: 100%;
    }
    .gallery-card:hover { transform: translateY(-8px); box-shadow: 0 20px 30px -10px rgba(0,0,0,0.12); }
    .gallery-card .image-wrapper {
      position: relative;
      overflow: hidden;
      aspect-ratio: 4/3;
      background: #eef4ff;
    }
    .gallery-card .image-wrapper img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.4s ease;
    }
    .gallery-card:hover .image-wrapper img { transform: scale(1.05); }
    .gallery-card .image-overlay {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0,0,0,0.4);
      opacity: 0;
      transition: opacity 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 1rem;
    }
    .gallery-card:hover .image-overlay { opacity: 1; }
    .gallery-card .image-overlay .action-btn {
      background: rgba(255,255,255,0.9);
      border: none;
      border-radius: 50%;
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #1a2634;
      transition: 0.2s;
      font-size: 1.1rem;
    }
    .gallery-card .image-overlay .action-btn:hover { background: #fff; transform: scale(1.1); }
    .gallery-card .image-overlay .action-btn.danger:hover { background: #dc3545; color: #fff; }
    .gallery-card .image-overlay .action-btn.primary:hover { background: #0d6efd; color: #fff; }
    .gallery-card .card-body { padding: 1rem 1.2rem; }

     .badge-category { font-weight: 500; padding: 0.2rem 0.8rem; border-radius: 40px; font-size: 0.7rem; }
       .upload-preview-grid .preview-item { position: relative; border-radius: 12px; overflow: hidden; background: #f4f7fc; }
    .upload-preview-grid .preview-item img { width: 100%; height: 100px; object-fit: cover; }
    .upload-preview-grid .preview-item .remove-btn { position: absolute; top: 4px; right: 4px; background: rgba(255,255,255,0.9); border: none; border-radius: 30px; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; color: #dc3545; font-size: 0.8rem; }
    .progress-upload { height: 6px; border-radius: 10px; }



     .gallery-grid .gallery-item { position: relative; border-radius: 16px; overflow: hidden; background: #f4f7fc; }
    .gallery-grid .gallery-item img { width: 100%; height: 100px; object-fit: cover; }
    .gallery-grid .gallery-item .del-btn { position: absolute; top: 6px; right: 6px; background: rgba(255,255,255,0.85); border: none; border-radius: 30px; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; color: #dc3545; font-size: 0.8rem; }
    .dynamic-row { display: flex; gap: 0.75rem; align-items: center; margin-bottom: 0.6rem; }
    .dynamic-row .form-control { flex: 1; }
    .itinerary-card { background: #f8faff; border-radius: 18px; padding: 1rem 1.2rem; margin-bottom: 1rem; border-left: 4px solid #0d6efd; }
    .menu-card { background: #f8faff; border-radius: 18px; padding: 1rem 1.2rem; margin-bottom: 1rem; border-left: 4px solid #f1c40f; }
    .char-counter { font-size: 0.8rem; color: #6c7a8a; text-align: right; }
    .badge-featured { background: #f1c40f; color: #1a2634; font-weight: 600; padding: 0.2rem 0.9rem; border-radius: 40px; font-size: 0.7rem; }
   

    /* profile page  */

    
    .profile-card {
      background: #fff;
      border-radius: 5px;
      padding: 1.2rem;
      box-shadow: 0 6px 18px rgba(0,0,0,0.02);
      margin-bottom: 1rem;
    }
    .profile-avatar {
      width: 130px;
      height: 130px;
      border-radius: 65px;
      background: #eef4ff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 3.5rem;
      color: #0d6efd;
      border: 4px solid #fff;
      box-shadow: 0 8px 24px rgba(0,0,0,0.06);
      position: relative;
      overflow: hidden;
      cursor: pointer;
      margin: 0 auto;
    }
    .profile-avatar img {
      width: 100%;
      height: 100%;
      border-radius: 65px;
      object-fit: cover;
    }
    .profile-avatar .overlay-icon {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      background: rgba(13, 110, 253, 0.85);
      color: #fff;
      padding: 5px 0;
      font-size: 0.7rem;
      text-align: center;
      opacity: 0;
      transition: 0.2s;
    }
    .profile-avatar:hover .overlay-icon {
      opacity: 1;
    }
    .badge-role {
      background: #eef4ff;
      color: #0d6efd;
      padding: 0.2rem 1.2rem;
      border-radius: 40px;
      font-size: 0.75rem;
      font-weight: 500;
    }
    .form-control, .form-select {
      border-radius: 14px;
      border: 1px solid #e2e8f0;
      padding: 0.6rem 1rem;
      font-size: 0.9rem;
    }
    .form-control:focus, .form-select:focus {
      border-color: #0d6efd;
      box-shadow: 0 0 0 3px rgba(13,110,253,0.08);
    }
    .form-label {
      font-weight: 500;
      font-size: 0.85rem;
      color: #1a2634;
    }
    .btn-primary {
      border-radius: 40px;
      padding: 0.5rem 2rem;
      font-weight: 500;
    }
    .btn-outline-secondary {
      border-radius: 40px;
      padding: 0.5rem 2rem;
      font-weight: 500;}


      /* staff */

      
    .staff-card {
      background: #fff;
      border-radius: 5px;
      padding: 1.2rem;
      box-shadow: 0 4px 14px rgba(0,0,0,0.02);
      border: 1px solid #eef2f7;
      transition: all 0.25s ease;
      height: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
    }
    .staff-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 12px 30px rgba(0,0,0,0.06);
      border-color: #dce4ed;
    }
    .staff-avatar {
      width: 80px;
      height: 80px;
      border-radius: 40px;
      background: #eef4ff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 2rem;
      color: #0d6efd;
      margin-bottom: 0.8rem;
      flex-shrink: 0;
    }
    .staff-avatar img {
      width: 100%;
      height: 100%;
      border-radius: 40px;
      object-fit: cover;
    }
    .staff-card .staff-name {
      font-weight: 600;
      font-size: 1rem;
      color: #1a2634;
      margin-bottom: 0.1rem;
    }
    .staff-card .staff-role {
      font-size: 0.75rem;
      color: #6c7a8a;
      margin-bottom: 0.3rem;
    }
    .staff-card .staff-email {
      font-size: 0.7rem;
      color: #6c7a8a;
      margin-bottom: 0.5rem;
      word-break: break-all;
    }
    .staff-card .staff-dept {
      font-size: 0.65rem;
      background: #eef4ff;
      color: #0d6efd;
      padding: 0.15rem 0.8rem;
      border-radius: 40px;
      display: inline-block;
      margin-bottom: 0.8rem;
    }
    .staff-card .staff-actions {
      display: flex;
      gap: 0.5rem;
      margin-top: auto;
      padding-top: 0.8rem;
      border-top: 1px solid #f0f3f8;
      width: 100%;
      justify-content: center;
    }
    .staff-card .staff-actions .btn {
      font-size: 0.7rem;
      padding: 0.2rem 0.8rem;
      border-radius: 40px;
    }
    .btn-add {
      border-radius: 40px;
      padding: 0.5rem 2rem;
      font-weight: 500;
    }

 

/* responsive */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }
}

@media (min-width: 993px) {
    .sidebar-toggle {
        display: none;
    }
}

@media (max-width: 580px) {

    .main-content {
        padding: 10px;
    }

    .top-nav {
        padding: 10px;
    }

    .welcome-card {
        padding: 10px;
    }

    .card-stat {
        padding: 10px;
    }

    .table-card {
        padding: 10px;
    }
}