/* color Variables */
:root {
  --primary-color: #06245B;
  --primary-color-hover: #294984;
  --secondary-color: #71C5F3;
  --tertiary-color: #E6F6FF;
  --light-color: #F8F8F8;
  --light-dark-color: #94A3B8;
  --white-color: #FFFFFF;
  --accent: #71C5F3;
  --accent-soft: rgba(113, 197, 243, .15);
  --accent-glow: rgba(113, 197, 243, .35);
  --sidebar-width: 260px;
  --sidebar-collapsed: 72px;
  --topbar-h: 64px;
  --text-muted-sb: rgba(255, 255, 255, .45);
  --text-sb: rgba(255, 255, 255, .82);
  --transition: 0.26s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Fonts - Inter  */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-VariableFont_opsz\,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Italic-VariableFont_opsz\,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
}

/* ======================================== Universal Classes Start======================================== */
* {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--light-color);
}

.bg-primary-custom {
  background-color: var(--primary-color);
}

.text-primary-custom {
  color: var(--primary-color);
}

.text-secondary-custom {
  color: var(--secondary-color);
}

.bg-soft-primary-custom {
  background-color: var(--tertiary-color);
}

.bg-secondary-custom {
  background-color: var(--secondary-color);
}

/* ========= Layout css ============ */
/* Main Content area */
.main-content {
  padding-left: 10%;
  padding-right: 10%;
}

/****Right panel cards*****/
.right-cards {
  max-height: 300px;
  overflow-y: auto;
}

/***** Card Border Common******/
.card-border-soft {
  border: 1px solid #4544441a;
}

/******Text Classes*****/
.text-xs {
  font-size: .75rem;
}

.text-sm {
  font-size: .875rem;
}

.text-base {
  font-size: 1rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-2xl {
  font-size: 1.5rem;
}

.text-3xl {
  font-size: 1.875rem;
}

/*******Custom Button********/
.btn-primary-custom {
  background-color: var(--primary-color);
  color: var(--white-color);
  border: 1px solid var(--primary-color);
  transition: all .2s ease-in-out;
  font-weight: 500;
}

/* Hover */
.btn-primary-custom:hover {
  background-color: var(--primary-color-hover);
  border-color: var(--primary-color-hover);
  color: var(--white-color);
}

.bg-secondary-custom:hover {
  background-color: var(--white-color);
  color: var(--primary-color);
}

/* Focus */
.btn-primary-custom:focus {
  border: .5px solid var(--primary-color);
}

/*******Custom Input Focus System***********/
.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color-hover);
  box-shadow: 0 0 0 0;
  /* customize */
}

/* Optional: remove ugly blue outline */
.form-control:focus-visible,
.form-select:focus-visible {
  outline: none;
}

/****Custom Scrollbar*******/
.scrollbar-custom {
  overflow: auto;
  scroll-behavior: smooth;

  /* Firefox */
  scrollbar-width: thin;
  scrollbar-color: #94a3b899 transparent;
}

/* Chrome, Edge, Safari */
.scrollbar-custom::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

.scrollbar-custom::-webkit-scrollbar-track {
  background: transparent;
  margin: 4px;
  /* prevents edge sticking */
}

.scrollbar-custom::-webkit-scrollbar-thumb {
  background: #94a3b899;
  border-radius: 999px;
  border: 1px solid transparent;
  background-clip: padding-box;
  transition: background .2s ease;
}

.scrollbar-custom::-webkit-scrollbar-thumb:hover {
  background: #64748bcc;
}

/* Apply hover ONLY when radio is NOT selected */
.btn-check:not(:checked)+.btn-primary-custom:hover {
  background-color: var(--primary-color-hover);
  border-color: var(--primary-color-hover);
  color: var(--white-color);
}

/* When selected → keep selected style even on hover */
.btn-check:checked+.btn-primary-custom:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white-color);
}

/* ======================================== Universal Classes End======================================== */

.top-15 {
  position: relative;
  top: -15px;
}

.campaign-card img {
  height: 170px;
  object-fit: cover;
}

/* Active tab card */
.nav-pills .nav-link.active.card {
  background-color: var(--tertiary-color);
  /* soft active bg */
  border: 2px solid var(--secondary-color) !important;
  /* primary border */
}

/* Active text */
.nav-pills .nav-link.active .fw-medium {
  color: var(--primary-color) !important;
}

/* Active icon */
.nav-pills .nav-link.active i {
  color: var(--primary-color) !important;
}

/* ============Button Tabs Start============= */
/* pill base */
.custom-pills .nav-link {
  position: relative;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  padding: 8px 18px 8px 38px;
  font-size: 14px;
  color: var(--light-dark-color);
  background-color: var(--light-color);
  transition: all 0.2s ease;
}

/* radio outer circle */
.custom-pills .nav-link::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border: 1px solid var(--light-dark-color);
  border-radius: 50%;
  background: var(--white-color);
  color: var(--light-dark-color);
}

/* radio inner dot (hidden by default) */
.custom-pills .nav-link::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 6px;
  height: 6px;
  background: var(--primary-color);
  border-radius: 50%;
  transition: 0.2s ease;

}

/* active state */
.custom-pills .nav-link.active {
  background-color: var(--primary-color);
  color: var(--white-color);
  border-color: var(--primary-color);
}

/* show inner dot when active */
.custom-pills .nav-link.active::after {
  transform: translateY(-50%) scale(1);
}

/* active border color */
.custom-pills .nav-link.active::before {
  border-color: var(--white-color);
}


/* ============Button Ends============= */


.border-secondary-custom {
  border-color: var(--secondary-color) !important;
}

.img-card {
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: #f8f9fa;
}

.img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

/* 🔥 overlay */
.img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: all .3s ease;
}

/* hover effects */
.img-card:hover .img-overlay {
  opacity: 1;
}

.img-card:hover img {
  transform: scale(1.08);
}

.media-frame {
  height: 350px;
}

.media-frame img,
.media-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* black overlay */
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
}

/* play button */
.play-btn {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  cursor: pointer;
}

.auth-container {
  max-width: 500px;
  width: 100%;
}


/* =======Media Queries==== */
/* Tablet */
@media (min-width: 768px) {
  .main-content {
    padding-left: 6%;
    padding-right: 6%;
  }
}

/* Desktop */
@media (min-width: 1200px) {
  .main-content {
    padding-left: 10%;
    padding-right: 10%;
  }
}


/* ==========================================Admin========================================= */
    /* ===========Sidebar=========== */
    #sidebar {
      position: fixed;
      top: 0;
      left: 0;
      width: var(--sidebar-width);
      height: 100vh;
      background: var(--primary-color);
      z-index: 1040;
      display: flex;
      flex-direction: column;
      transition: width var(--transition), transform var(--transition);
      overflow: hidden;
    }

    /* Collapsed state (icon-only) */
    body.sidebar-collapsed #sidebar {
      width: var(--sidebar-collapsed);
    }

    body.sidebar-collapsed #sidebar .nav-label,
    body.sidebar-collapsed #sidebar .logo-text,
    body.sidebar-collapsed #sidebar .sidebar-section-title,
    body.sidebar-collapsed #sidebar .nav-badge {
      opacity: 0;
      width: 0;
      overflow: hidden;
      white-space: nowrap;
    }

    body.sidebar-collapsed #sidebar .logo-wrap {
      justify-content: center;
      padding: 0 16px;
    }

    body.sidebar-collapsed #sidebar .admin-sidebar .nav-link {
      justify-content: center;
      padding: 12px 0;
    }

    body.sidebar-collapsed #sidebar .admin-sidebar .nav-link .nav-icon {
      margin: 0;
    }

    body.sidebar-collapsed #sidebar .sidebar-section-title {
      height: 0;
      margin: 0;
      padding: 0;
    }

    body.sidebar-collapsed #sidebar .admin-sidebar .nav-link[data-bs-toggle="collapse"] .bi-chevron-down {
      display: none;
    }

    body.sidebar-collapsed #sidebar .collapse {
      display: none !important;
    }

    /* Hidden (mobile) */
    @media (max-width: 991.98px) {
      #sidebar {
        transform: translateX(-100%);
        width: var(--sidebar-width) !important;
      }

      body.sidebar-open #sidebar {
        transform: translateX(0);
      }
    }

    /* Logo area — sticky */
    .sidebar-logo {
      padding: 10px 10px 5px 10px;
      position: sticky;
      top: 0;
      z-index: 2;
      background: var(--primary-color);
      flex-shrink: 0;
    }

    .logo-wrap {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 0 20px;
      height: var(--topbar-h);
      text-decoration: none;
    }

    /* Scrollable nav area */
    .sidebar-nav {
      flex: 1;
      overflow-y: auto;
      overflow-x: hidden;
      padding: 16px 0 24px;
      scrollbar-width: thin;
      scrollbar-color: rgba(255, 255, 255, .12) transparent;
    }

    .sidebar-nav::-webkit-scrollbar {
      width: 4px;
    }

    .sidebar-nav::-webkit-scrollbar-track {
      background: transparent;
    }

    .sidebar-nav::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, .15);
      border-radius: 4px;
    }

    .sidebar-section-title {
      font-size: 9.5px;
      font-weight: 600;
      letter-spacing: 1.4px;
      text-transform: uppercase;
      color: var(--secondary-color);
      padding: 10px 22px 10px;
      transition: opacity var(--transition), height var(--transition), margin var(--transition), padding var(--transition);
    }

    .nav-item-wrap {
      padding: 1px 10px;
    }

    .admin-sidebar .nav-link {
      display: flex;
      align-items: center;
      gap: 11px;
      padding: 10px 12px;
      border-radius: 9px;
      color: var(--text-sb);
      font-size: 16px;
      font-weight: 500;
      text-decoration: none;
      transition: background var(--transition), color var(--transition), padding var(--transition);
      white-space: nowrap;
      position: relative;
    }

    .admin-sidebar .nav-link:hover {
      background: rgba(255, 255, 255, .08);
      color: #fff;
    }

    .admin-sidebar .nav-link.active {
      background: var(--accent-soft);
      color: #fff;
      box-shadow: inset 3px 0 0 var(--accent);
    }

    .nav-icon {
      font-size: 17px;
      flex-shrink: 0;
      width: 22px;
      text-align: center;
      transition: margin var(--transition);
    }

    .nav-label {
      transition: opacity var(--transition), width var(--transition);
      flex: 1;
    }

    .nav-badge {
      font-size: 10px;
      font-weight: 700;
      background: var(--accent);
      color: var(--primary);
      border-radius: 20px;
      padding: 1px 7px;
      transition: opacity var(--transition);
    }

    .admin-sidebar .nav-link[data-bs-toggle="collapse"] .bi-chevron-down {
      font-size: 11px;
      transition: transform var(--transition);
      color: var(--text-muted-sb);
    }

    .admin-sidebar .nav-link[aria-expanded="true"] .bi-chevron-down {
      transform: rotate(180deg);
      color: var(--accent);
    }

    .sub-menu {
      padding-left: 22px;
    }

    .admin-sidebar .sub-menu  .nav-link {
      font-size: 12.5px;
      font-weight: 400;
      padding: 8px 12px;
      color: var(--text-muted-sb);
    }

    .admin-sidebar .sub-menu  .nav-link:hover {
      color: #fff;
    }

    .admin-sidebar .sub-menu  .nav-link.active {
      color: var(--accent);
      background: transparent;
      box-shadow: none;
    }

    .admin-sidebar .sub-menu  .nav-link::before {
      content: '';
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: currentColor;
      opacity: .5;
      flex-shrink: 0;
    }

    .admin-sidebar .sub-menu  .nav-link.active::before {
      background: var(--accent);
      opacity: 1;
    }

    .sidebar-user {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 8px 12px;
      border-radius: 9px;
      cursor: pointer;
      transition: background var(--transition);
    }

    .sidebar-user:hover {
      background: rgba(255, 255, 255, .08);
    }

    .sidebar-user-avatar {
      width: 34px;
      height: 34px;
      border-radius: 50%;
      background: var(--accent);
      color: var(--primary);
      font-weight: 700;
      font-size: 13px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .sidebar-user-info .name {
      font-size: 12.5px;
      font-weight: 600;
      color: #fff;
    }

    .sidebar-user-info .role {
      font-size: 10.5px;
      color: var(--text-muted-sb);
    }

    body.sidebar-collapsed .sidebar-user-info,
    body.sidebar-collapsed .sidebar-user .bi-three-dots-vertical {
      display: none;
    }

    body.sidebar-collapsed .sidebar-user {
      justify-content: center;
      padding: 8px;
    }

    body.sidebar-collapsed #sidebar .admin-sidebar .nav-link .nav-label {
      display: none;
    }
    body.sidebar-collapsed #sidebar .sidebar-logo .logo-wrap .logo {
      display: none;
    }

    /* ========= OVERLAY (mobile)========== */
    #sidebar-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(6, 36, 91, .45);
      backdrop-filter: blur(2px);
      z-index: 1039;
    }

    body.sidebar-open #sidebar-overlay {
      display: block;
    }

    /* ===========MAIN WRAPPER========== */
    #main-wrapper {
      margin-left: var(--sidebar-width);
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      transition: margin-left var(--transition);
    }

    body.sidebar-collapsed #main-wrapper {
      margin-left: var(--sidebar-collapsed);
    }

    @media (max-width: 991.98px) {
      #main-wrapper {
        margin-left: 0 !important;
      }
    }

    /* ═══════════════════════════════
       TOPBAR
    ═══════════════════════════════ */
    #topbar {
      position: sticky;
      top: 0;
      z-index: 1030;
      height: var(--topbar-h);
      background: #fff;
      border-bottom: 1px solid #e8edf7;
      display: flex;
      align-items: center;
      padding: 0 24px;
      gap: 12px;
      box-shadow: 0 1px 10px rgba(6, 36, 91, .06);
    }

    .topbar-toggle {
      width: 38px;
      height: 38px;
      border: none;
      background: transparent;
      border-radius: 9px;
      color: var(--primary);
      font-size: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: background var(--transition);
      flex-shrink: 0;
    }

    .topbar-toggle:hover {
      background: #f0f4fb;
    }


    @media (max-width: 575.98px) {
      .topbar-search {
        display: none;
      }
    }

    .topbar-actions {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .icon-btn {
      position: relative;
      width: 38px;
      height: 38px;
      border: none;
      background: transparent;
      border-radius: 9px;
      color: #4a5878;
      font-size: 19px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: background var(--transition), color var(--transition);
    }

    .icon-btn:hover {
      background: #f0f4fb;
      color: var(--primary);
    }

    .icon-btn .badge-dot {
      position: absolute;
      top: 7px;
      right: 7px;
      width: 8px;
      height: 8px;
      background: #e74c3c;
      border-radius: 50%;
      border: 2px solid #fff;
    }

    .topbar-profile {
      display: flex;
      align-items: center;
      gap: 9px;
      padding: 4px 10px 4px 4px;
      border-radius: 40px;
      border: none;
      background: transparent;
      cursor: pointer;
      transition: background var(--transition);
    }

    .topbar-profile:hover {
      background: #f0f4fb;
    }

    .profile-avatar {
      width: 34px;
      height: 34px;
      border-radius: 50%;
      background: var(--primary);
      color: var(--accent);
      font-size: 13px;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .profile-info {
      text-align: left;
    }

    .profile-info .pname {
      font-size: 12.5px;
      font-weight: 600;
      color: var(--primary);
      line-height: 1.2;
    }

    .profile-info .prole {
      font-size: 10.5px;
      color: #8a97b5;
    }

    @media (max-width: 767.98px) {
      .profile-info {
        display: none;
      }
    }

    /* ═══════════════════════════════
       CONTENT AREA
    ═══════════════════════════════ */
    #content {
      flex: 1;
      padding: 28px 28px 20px;
    }

    @media (max-width: 575.98px) {
      #content {
        padding: 18px 14px;
      }
    }

    /* Tooltip on collapsed sidebar */
    body.sidebar-collapsed #sidebar .admin-sidebar .nav-link {
      position: relative;
    }
