/* PIFAA Admin - Static styles */
:root {
  --background: oklch(0.975 0.006 240);
  --foreground: oklch(0.16 0.024 240);
  --card: #ffffff;
  --muted-foreground: oklch(0.52 0.018 240);
  --border: oklch(0.915 0.012 240);
  --primary: oklch(0.54 0.19 262);
  --primary-foreground: #fff;
  --primary-soft: oklch(0.94 0.024 262);
  --chart-2: oklch(0.62 0.18 290);
  --teal: oklch(0.55 0.13 195);
  --teal-soft: oklch(0.95 0.02 195);
  --mint: oklch(0.60 0.15 160);
  --mint-soft: oklch(0.95 0.02 160);
  --lilac: oklch(0.54 0.18 315);
  --lilac-soft: oklch(0.95 0.02 315);
  --coral: oklch(0.58 0.18 20);
  --coral-soft: oklch(0.955 0.02 20);
  --amber-soft: oklch(0.955 0.025 80);
  --warning-foreground: oklch(0.40 0.12 75);
  --success: oklch(0.61 0.16 160);
  --destructive: oklch(0.55 0.18 25);
  --muted: oklch(0.95 0.008 240);
  --secondary: oklch(0.965 0.006 240);
  --shadow-soft: 0 2px 8px -1px rgba(15, 23, 42, 0.03), 0 1px 3px -1px rgba(15, 23, 42, 0.02);
  --shadow-card: 0 10px 30px -10px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.02);
  --shadow-glow: 0 0 24px -4px oklch(0.54 0.19 262 / 0.16);
  --radius: 0.8rem;
  --radius-sm: 0.4rem;
  --radius-md: 0.6rem;
  --radius-lg: 1rem;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  max-width: 100vw;
  scroll-behavior: smooth;
}

/* Custom premium scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: oklch(0.58 0.018 240 / 0.15);
  border-radius: 99px;
  transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: oklch(0.58 0.018 240 / 0.3);
}

body {
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01", "ss03", "cv02";
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  letter-spacing: -0.025em;
  margin: 0;
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input {
  font-family: inherit;
}

/* ===== Layout ===== */
.app {
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
  max-width: 100vw;
}

.sidebar {
  width: 256px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-right: 1px solid var(--border);
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.closed {
  transform: translateX(-100%);
}

@media (min-width: 1024px) {
  .sidebar {
    transform: translateX(0) !important;
  }
}

.sidebar-header {
  height: 64px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.sidebar-header img {
  height: 32px;
  filter: drop-shadow(0 2px 4px rgba(15, 23, 42, 0.05));
}

.close-btn {
  color: var(--muted-foreground);
  display: none;
  font-size: 1.1rem;
  transition: color 0.2s;
}

.close-btn:hover {
  color: var(--foreground);
}

@media (max-width: 1023px) {
  .close-btn {
    display: block;
  }
}

.sidebar-nav {
  padding: 20px 14px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sidebar-nav::-webkit-scrollbar {
  width: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

.nav-section {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
  padding: 12px 12px 6px;
  margin-top: 8px;
}

.nav-section:first-child {
  margin-top: 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 550;
  color: oklch(0.35 0.02 240);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.nav-item:hover {
  background: var(--muted);
  color: var(--primary);
  transform: translateX(4px);
}

.nav-item.active {
  background: linear-gradient(135deg, var(--primary), var(--chart-2));
  color: #fff;
  box-shadow: 0 4px 16px -2px oklch(0.54 0.19 262 / 0.25);
}

.nav-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1.05rem;
}

.nav-item:hover .nav-icon {
  transform: scale(1.1);
}

.nav-item.active .nav-icon {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.tint-primary {
  background: var(--primary-soft);
  color: var(--primary);
}

.tint-teal {
  background: var(--teal-soft);
  color: var(--teal);
}

.tint-coral {
  background: var(--coral-soft);
  color: var(--coral);
}

.tint-mint {
  background: var(--mint-soft);
  color: var(--mint);
}

.tint-lilac {
  background: var(--lilac-soft);
  color: var(--lilac);
}

.tint-amber {
  background: var(--amber-soft);
  color: var(--warning-foreground);
}

.help-card {
  margin: 14px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary-soft), oklch(0.95 0.02 240));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.help-card p {
  margin: 0;
  font-size: 12px;
  color: var(--muted-foreground);
}

.help-card p:first-child {
  font-weight: 600;
  color: oklch(0.32 0.08 250);
  margin-bottom: 4px;
}

/* ===== Main ===== */
.main {
  flex: 1;
  margin-left: 0;
  min-width: 0;
  padding-top: 64px;
}

@media (min-width: 1024px) {
  .main {
    margin-left: 256px;
  }
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px -12px rgba(15, 23, 42, 0.08);
}

@media (min-width: 1024px) {
  .topbar {
    padding: 0 32px;
    left: 256px;
  }
}

.menu-btn {
  display: block;
}

@media (min-width: 1024px) {
  .menu-btn {
    display: none;
  }
}

.search {
  position: relative;
  flex: 1;
  max-width: 28rem;
  display: none;
}

@media (min-width: 768px) {
  .search {
    display: block;
  }
}

.search input {
  width: 100%;
  height: 38px;
  padding: 0 12px 0 38px;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
  color: var(--foreground);
}

.search input:focus {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px oklch(0.54 0.19 262 / 0.12);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-foreground);
  font-size: 0.95rem;
}

.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  color: oklch(0.35 0.02 240);
  transition: all 0.2s ease;
  background: transparent;
  border: 1px solid transparent;
}

.icon-btn:hover {
  background: var(--muted);
  border-color: var(--border);
  color: var(--primary);
}

.dot {
  position: absolute;
  right: 9px;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--destructive);
  border-radius: 50%;
  box-shadow: 0 0 0 2px #fff;
}

.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px 4px 4px;
  border-radius: var(--radius-lg);
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.profile:hover {
  background: var(--muted);
  border-color: var(--border);
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--chart-2));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px -2px oklch(0.54 0.19 262 / 0.3);
}

.profile-info {
  display: none;
  text-align: left;
}

@media (min-width: 640px) {
  .profile-info {
    display: block;
  }
}

.profile-info p {
  margin: 0;
  line-height: 1.2;
}

.profile-info .name {
  font-size: 13px;
  font-weight: 600;
  color: var(--foreground);
}

.profile-info .role {
  font-size: 10px;
  font-weight: 500;
  color: var(--muted-foreground);
}

main.content {
  padding: 16px;
}

@media (min-width: 1024px) {
  main.content {
    padding: 32px;
  }
}

/* ===== Page Header ===== */
.page-header {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
  .page-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
  }
}

.page-header .eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0.4rem;
}

.page-header .eyebrow i {
  font-size: 0.85rem;
}

.page-header h1 {
  font-size: 26px;
  font-weight: 800;
  color: var(--foreground);
  margin: 0;
  letter-spacing: -0.025em;
  font-family: "Plus Jakarta Sans", sans-serif;
  line-height: 1.2;
}

.page-header h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--foreground);
  margin: 0;
  letter-spacing: -0.02em;
  font-family: "Plus Jakarta Sans", sans-serif;
}

.page-header p {
  color: var(--muted-foreground);
  font-size: 16px;
  font-weight: 500;
  margin: 0.35rem 0 0;
  line-height: 1.5;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  outline: none;
  border: 1px solid transparent;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--chart-2));
  color: #fff;
  box-shadow: 0 4px 12px -2px oklch(0.54 0.19 262 / 0.2);
  border: none !important;
}

.btn-primary:hover {
  box-shadow: 0 6px 20px -2px oklch(0.54 0.19 262 / 0.35);
  color: #fff;
}

.btn-delete {
  background: linear-gradient(135deg, var(--destructive), oklch(0.68 0.22 25));
  color: #fff;
  box-shadow: 0 4px 12px -2px oklch(0.55 0.18 25 / 0.2);
  border: none !important;
}

.btn-delete:hover {
  box-shadow: 0 6px 20px -2px oklch(0.55 0.18 25 / 0.35);
  color: #fff;
}

.btn-outline {
  border: 1px solid var(--border);
  background: #fff;
  color: oklch(0.3 0.01 240);
}

.btn-outline:hover {
  background: var(--muted);
  border-color: oklch(0.58 0.018 240 / 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
}

.btn-ghost:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.btn-sm {
  height: 32px;
  padding: 0 12px;
  font-size: 14px;
}

.btn-lg {
  height: 44px;
  padding: 0 32px;
}

.btn-block {
  width: 100%;
}

/* ===== Cards ===== */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

.card-header {
  padding: 24px 24px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background-color: #fff;
  border-bottom: none;
}

.card-header.row {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.card-header.row>a,
.card-header.row>.actions,
.card-header.row>button {
  align-self: center;
  flex-shrink: 0;
}

.card-header .btn {
  width: auto;
  align-self: center;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 0;
}

.card-sub {
  font-size: 12px;
  color: var(--muted-foreground);
}

.card-body {
  padding: 24px;
}

.card-body.tight {
  padding: 20px;
}

.card-body.flush {
  padding: 0;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1280px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-foreground);
}

.stat-value {
  font-size: 30px;
  font-weight: 700;
  margin: 8px 0 0;
  letter-spacing: -0.02em;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: transform .3s;
}

.stat:hover .stat-icon {
  transform: scale(1.1) rotate(3deg);
}

/* Stats card overrides globally across modules */
#membership-stats-grid .card-body,
#event-stats-grid .card-body,
#sponsorship-stats-grid .card-body,
#quiz-stats-grid .card-body,
#enquiry-stats-grid .card-body,
#partner-stats-grid .card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#membership-stats-grid .stat-info,
#event-stats-grid .stat-info,
#sponsorship-stats-grid .stat-info,
#quiz-stats-grid .stat-info,
#enquiry-stats-grid .stat-info,
#partner-stats-grid .stat-info {
  display: flex;
  flex-direction: column;
}

#membership-stats-grid .stat-icon,
#event-stats-grid .stat-icon,
#sponsorship-stats-grid .stat-icon,
#quiz-stats-grid .stat-icon,
#enquiry-stats-grid .stat-icon,
#partner-stats-grid .stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

#membership-stats-grid .card:hover .stat-icon,
#event-stats-grid .card:hover .stat-icon,
#sponsorship-stats-grid .card:hover .stat-icon,
#quiz-stats-grid .card:hover .stat-icon,
#enquiry-stats-grid .card:hover .stat-icon ,
#partner-stats-grid .card:hover .stat-icon{
  transform: scale(1.1) rotate(2deg);
}

#membership-stats-grid .stat-icon.blue,
#event-stats-grid .stat-icon.blue,
#sponsorship-stats-grid .stat-icon.blue,
#quiz-stats-grid .stat-icon.blue,
#enquiry-stats-grid .stat-icon.blue,
 #partner-stats-grid .stat-icon.blue{
  background: linear-gradient(135deg, var(--primary-soft), oklch(0.90 0.05 262));
  color: var(--primary);
}

#membership-stats-grid .stat-icon.emerald,
#event-stats-grid .stat-icon.emerald,
#sponsorship-stats-grid .stat-icon.emerald,
#quiz-stats-grid .stat-icon.emerald,
#enquiry-stats-grid .stat-icon.emerald,
#partner-stats-grid .stat-icon.emerald
 {
  background: linear-gradient(135deg, var(--mint-soft), oklch(0.90 0.05 160));
  color: var(--mint);
}

#membership-stats-grid .stat-icon.amber,
#event-stats-grid .stat-icon.amber,
#sponsorship-stats-grid .stat-icon.amber,
#quiz-stats-grid .stat-icon.amber,
#enquiry-stats-grid .stat-icon.amber,
#partner-stats-grid .stat-icon.amber{
  background: linear-gradient(135deg, var(--amber-soft), oklch(0.91 0.06 80));
  color: var(--warning-foreground);
}

#membership-stats-grid .stat-icon.coral,
#event-stats-grid .stat-icon.coral,
#sponsorship-stats-grid .stat-icon.coral,
#quiz-stats-grid .stat-icon.coral,
#enquiry-stats-grid .stat-icon.coral,
#partner-stats-grid .stat-icon.coral{
  background: linear-gradient(135deg, var(--coral-soft), oklch(0.91 0.06 20));
  color: var(--coral);
}

.stat-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.stat-delta {
  margin-top: 12px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.delta-pos {
  color: var(--success);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.delta-neg {
  color: var(--destructive);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

/* Grid */
.grid-2-1 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
}

@media (min-width: 1024px) {
  .grid-2-1 {
    grid-template-columns: 2fr 1fr;
  }
}

/* Chart placeholders */
.chart-wrap {
  height: 280px;
  padding: 8px 0;
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

thead,
th {
  background: oklch(0.935 0.012 240) !important;
}

th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: oklch(0.35 0.015 240) !important;
  font-weight: 700 !important;
  padding: 12px 24px !important;
  white-space: nowrap;
}

td {
  padding: 12px 24px !important;
  border-top: 1px solid var(--border) !important;
  border-bottom: none;
}

tbody tr {
  transition: background .2s;
}

tbody tr:hover {
  background: oklch(0.95 0.03 250 / 0.4);
}

.member-name {
  font-weight: 500;
}

.member-email {
  font-size: 12px;
  color: var(--muted-foreground);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  text-transform: capitalize;
  border: 1px solid;
  line-height: 13px;
}

.badge-active,
.badge-approved,
.badge-published,
.badge-paid {
  background: oklch(0.7 0.15 160 / 0.15);
  color: var(--success);
  border-color: oklch(0.7 0.15 160 / 0.2);
}

.badge-pending {
  background: oklch(0.78 0.16 75 / 0.15);
  color: var(--warning-foreground);
  border-color: oklch(0.78 0.16 75 / 0.3);
}

.badge-expired,
.badge-rejected,
.badge-expired_unrenewed {
  background: oklch(0.62 0.22 25 / 0.1);
  color: var(--destructive);
  border-color: oklch(0.62 0.22 25 / 0.2);
}

/* Events list */
.event {}

.event+.event {
  margin-top: 16px;
}

.event-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.event-name {
  font-size: 14px;
  font-weight: 600;
}

.event-meta {
  font-size: 12px;
  color: var(--muted-foreground);
}

.event-pct {
  background: var(--primary-soft);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  flex-shrink: 0;
}

.progress {
  margin-top: 8px;
  height: 6px;
  background: var(--muted);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--primary);
  border-radius: 999px;
}

/* Overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  z-index: 35;
  display: none;
}

.overlay.show {
  display: block;
}

@media (min-width: 1024px) {
  .overlay {
    display: none !important;
  }
}

/* ===== LOGIN ===== */
.login {
  min-height: 100vh;
  display: flex;
  background: var(--background);
}

.login-left {
  position: relative;
  width: 50%;
  padding: 48px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary), var(--chart-2), var(--lilac));
}

@media (min-width: 1024px) {
  .login-left {
    display: flex;
  }
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  pointer-events: none;
}

.orb-1 {
  top: -160px;
  right: -160px;
  width: 448px;
  height: 448px;
  background: rgba(255, 255, 255, 0.1);
}

.orb-2 {
  bottom: -192px;
  left: -128px;
  width: 512px;
  height: 512px;
  background: oklch(0.58 0.16 250 / 0.25);
}

.orb-3 {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 640px;
  height: 640px;
  background: oklch(0.72 0.12 195 / 0.2);
}

.shape {
  position: absolute;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
}

.shape-1 {
  top: 12%;
  right: 10%;
  width: 96px;
  height: 96px;
  border-radius: 16px;
  transform: rotate(12deg);
}

.shape-2 {
  top: 35%;
  left: 8%;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: transparent;
  border-width: 2px;
}

.shape-3 {
  bottom: 18%;
  right: 15%;
  width: 128px;
  height: 128px;
  border-radius: 32px;
  transform: rotate(-6deg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
}

.dot-w {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}

.grid-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}

.brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 160px;
  height: auto;
  border-radius: 12px;
  background: rgb(255 255 255);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 34%);
  padding: 5px;
}

.brand-logo img {
  width: 150px;
  height: auto;
  object-fit: contain;
}

.brand-name {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 18px;
}

.brand-sub {
  font-size: 11px;
  opacity: 0.8;
  margin-top: 4px;
}

.hero {
  position: relative;
  max-width: 28rem;
}

.hero h1 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
}

.hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  line-height: 1.6;
  margin-top: 24px;
}

.features {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
}

.copyright {
  position: relative;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.login-right {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(135deg, #f0f9ff, #e0f7fa, #f3e8ff);
}

@media (min-width: 640px) {
  .login-right {
    padding: 40px;
  }
}

.r-shape {
  position: absolute;
  pointer-events: none;
}

.r-1 {
  top: -32px;
  left: -32px;
  width: 160px;
  height: 160px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(186, 230, 253, 0.6), rgba(165, 243, 252, 0.4));
  filter: blur(2px);
  transform: rotate(12deg);
}

.r-2 {
  top: 33%;
  left: 8%;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 4px solid rgba(254, 205, 211, 0.4);
}

.r-3 {
  bottom: -48px;
  left: 48px;
  width: 144px;
  height: 144px;
  border-radius: 50%;
  background: linear-gradient(45deg, rgba(254, 205, 211, 0.5), rgba(254, 215, 170, 0.3));
  filter: blur(2px);
}

.r-4 {
  top: 64px;
  right: 10%;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid rgba(186, 230, 253, 0.4);
}

.r-5 {
  top: 50%;
  right: -40px;
  width: 176px;
  height: 176px;
  border-radius: 40px;
  background: linear-gradient(225deg, rgba(153, 246, 228, 0.5), rgba(167, 243, 208, 0.3));
  filter: blur(2px);
  transform: rotate(-12deg);
}

.r-6 {
  bottom: 48px;
  right: 20%;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 4px solid rgba(153, 246, 228, 0.4);
}

.r-orb-1 {
  top: 25%;
  left: 50%;
  transform: translateX(-50%);
  width: 256px;
  height: 256px;
  border-radius: 50%;
  background: rgba(224, 242, 254, 0.4);
  filter: blur(48px);
}

.r-orb-2 {
  bottom: 25%;
  right: 25%;
  width: 192px;
  height: 192px;
  border-radius: 50%;
  background: rgba(243, 232, 255, 0.3);
  filter: blur(48px);
}

.dot-sm {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-blue {
  background: rgba(125, 211, 252, 0.6);
  top: 55%;
  left: 5%;
}

.dot-purple {
  background: rgba(216, 180, 254, 0.6);
  bottom: 20%;
  right: 8%;
}

.form-card {
  position: relative;
  width: 100%;
  max-width: 28rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  box-shadow: 0 8px 32px -12px rgba(14, 165, 233, 0.2);
  padding: 32px;
}

@media (min-width: 640px) {
  .form-card {
    padding: 40px;
  }
}

.form-card h2 {
  font-size: 28px;
  font-weight: 700;
}

.form-card .lead {
  font-size: 14px;
  color: var(--muted-foreground);
  margin-top: 8px;
}

.form {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label {
  font-size: 14px;
  font-weight: 500;
}

.field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.input-wrap {
  position: relative;
}

.input-wrap .lead-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-foreground);
}

.input-wrap .trail-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-foreground);
}

.input {
  width: 100%;
  height: 44px;
  padding: 0 12px 0 38px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  outline: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--foreground);
}

.input.has-trail {
  padding-right: 40px;
}

.input:focus {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px oklch(0.54 0.19 262 / 0.12);
}

/* Global Form Controls Overrides for Portal consistency */
.form-control,
.form-select,
.form-control-file,
textarea {
  border-radius: var(--radius-sm) !important;
  border: 1px solid var(--border) !important;
  /* padding: 0.625rem 0.875rem !important; */
  font-size: 14px !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  /* background-color: var(--secondary) !important; */
  color: var(--foreground) !important;
  box-shadow: none !important;
}

.form-control:focus,
.form-select:focus,
textarea:focus {
  background-color: #fff !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px oklch(0.54 0.19 262 / 0.12) !important;
  outline: none !important;
}

textarea {
  min-height: 100px;
}

.link {
  color: var(--primary);
  font-size: 12px;
  font-weight: 500;
}

.link:hover {
  text-decoration: underline;
}

.remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted-foreground);
}

.remember input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.form-foot {
  margin-top: 32px;
  text-align: center;
  font-size: 14px;
  color: var(--muted-foreground);
}

.mobile-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}

@media (min-width: 1024px) {
  .mobile-brand {
    display: none;
  }
}

.mobile-brand .logo-pill {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--primary-soft);
  display: grid;
  place-items: center;
}

.mobile-brand .logo-pill img {
  width: 24px;
  height: 24px;
}

/* ===== Tabs ===== */
.tabs-list {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--muted);
  border-radius: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.tab-trigger {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted-foreground);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .2s;
}

.tab-trigger:hover {
  color: var(--foreground);
}

.tab-trigger.active {
  background: #fff;
  color: var(--foreground);
  box-shadow: var(--shadow-soft);
}

.tab-panel {
  display: none;
}

.tab-panel.show {
  display: block;
}

/* ===== Switch ===== */
.switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: oklch(0.85 0.02 250);
  border-radius: 999px;
  transition: .2s;
}

.slider::before {
  content: "";
  position: absolute;
  height: 16px;
  width: 16px;
  left: 2px;
  top: 2px;
  background: #fff;
  border-radius: 50%;
  transition: .2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}

.switch input:checked+.slider {
  background: var(--primary);
}

.switch input:checked+.slider::before {
  transform: translateX(16px);
}

/* ===== Form controls ===== */
.label {
  font-size: 14px;
  font-weight: 500;
  display: block;
  margin-bottom: 6px;
}

.field-input,
textarea.field-input,
select.field-input,
.form-control,
.form-select {
  width: 100%;
  padding: 8px 12px;
  height: 36px;
  background-color: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: border-color .15s;
  color: #364152;
}

/* Restore native select caret (background shorthand above used to wipe Bootstrap's arrow) */
select.field-input,
select.form-select,
.form-select:not([multiple]):not([size]) {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 2.25rem;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
}

.field-input {
  padding: 8px 12px 8px 45px;
}

textarea.field-input,
textarea.form-control {
  height: auto;
  min-height: 80px;
  resize: vertical;
}

select.field-input,
select.form-select {
  height: 36px;
}

.field-input:focus,
.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
}

/* Tier badges */
.tier {
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.tier-Platinum {
  background: oklch(0.94 0.04 230);
  color: oklch(0.32 0.08 250);
}

.tier-Gold {
  background: oklch(0.78 0.16 75 / 0.2);
  color: var(--warning-foreground);
}

.tier-Silver {
  background: var(--muted);
  color: var(--muted-foreground);
}

.tier-Bronze {
  background: var(--secondary);
  color: oklch(0.32 0.06 250);
}

/* Misc */
.muted {
  color: var(--muted-foreground);
}

.divider {
  border-top: 1px solid var(--border);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (min-width: 768px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gap-2 {
  gap: 8px;
}

.gap-3 {
  gap: 12px;
}

.gap-4 {
  gap: 16px;
}

.mt-4 {
  margin-top: 16px;
}

.mt-6 {
  margin-top: 24px;
}

.mb-6 {
  margin-bottom: 24px;
}

.icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.partner-logo {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--chart-2));
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.video-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--primary), var(--chart-2));
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.85);
}

.gallery-tile {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--primary-soft), oklch(0.94 0.04 230), var(--secondary));
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

.qr-box {
  display: grid;
  place-items: center;
  border: 2px dashed var(--border);
  background: oklch(0.965 0.01 250 / 0.5);
  border-radius: 16px;
  padding: 32px;
}

.qr-inner {
  width: 176px;
  height: 176px;
  background: #fff;
  border-radius: 16px;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-soft);
}

.toolbar {
  display: flex;
  gap: 4px;
  padding: 8px;
  border-bottom: 1px solid var(--border);
}

.icon-btn-sm {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  color: var(--muted-foreground);
}

.icon-btn-sm:hover {
  background: var(--muted);
}

.editor-area {
  border: 1px solid var(--border);
  border-radius: 8px;
}

.editor-area textarea {
  border: 0;
  border-radius: 0;
  min-height: 160px;
}

.editor-area textarea:focus {
  box-shadow: none;
}

.stack>*+* {
  margin-top: 12px;
}

.tile-btn {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: background .2s;
}

.tile-btn:hover {
  background: oklch(0.965 0.01 250 / 0.5);
}

/* === Added: stats grid, table wrapper, badge variants, form grid === */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.stat-card .stat-value {
  font-size: 26px;
}

table.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

table.table thead {
  background: oklch(0.965 0.01 250 / 0.5);
}

table.table th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-foreground);
  font-weight: 600;
  padding: 12px 18px;
}

table.table td {
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  vertical-align: middle;
}

table.table tbody tr:hover {
  background: oklch(0.95 0.03 250 / 0.4);
}

.badge.badge-ok {
  background: oklch(0.7 0.15 160 / 0.15);
  color: var(--success);
  border-color: oklch(0.7 0.15 160 / 0.25);
}

.badge.badge-warn {
  background: oklch(0.78 0.16 75 / 0.15);
  color: var(--warning-foreground);
  border-color: oklch(0.78 0.16 75 / 0.35);
}

.badge.badge-err {
  background: oklch(0.62 0.22 25 / 0.12);
  color: var(--destructive);
  border-color: oklch(0.62 0.22 25 / 0.25);
}

.badge.badge-info {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: oklch(0.85 0.07 250 / 0.5);
}

.badge.badge-muted {
  background: var(--muted);
  color: var(--muted-foreground);
  border-color: var(--border);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* extra utilities for detail / form pages */
dl.kv {
  display: grid;
  gap: 10px;
  margin: 0;
}

dl.kv>div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
}

dl.kv>div:last-child {
  border-bottom: none;
}

dl.kv dt {
  color: var(--muted-foreground);
  font-size: 13px;
}

dl.kv dd {
  margin: 0;
  font-weight: 600;
  font-size: 13px;
  text-align: right;
}

ul.activity {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

ul.activity li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--muted);
  border-radius: 8px;
  font-size: 13px;
}

ul.activity .dot-ok,
ul.activity .dot-info,
ul.activity .dot-warn {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

ul.activity .dot-ok {
  background: #16a34a;
}

ul.activity .dot-info {
  background: var(--primary);
}

ul.activity .dot-warn {
  background: #f59e0b;
}

.upload-box {
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 28px;
  text-align: center;
  color: var(--muted-foreground);
  font-size: 13px;
  background: var(--muted);
}

.upload-box a {
  color: var(--primary);
  font-weight: 600;
}

/* Styling for Table Column Search Rows */
tr.search-row th {
  padding: 8px 12px !important;
  background: oklch(0.985 0.005 250) !important;
  /* Soft light background */
  border-bottom: none !important;
}

tr.search-row input,
tr.search-row select {
  background-color: #fff !important;
  border: 1px solid var(--border) !important;
  color: var(--foreground) !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  height: 32px !important;
  padding: 4px 8px !important;
}

tr.search-row select {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  padding-right: 1.75rem !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.5rem center !important;
  background-size: 12px 10px !important;
}
  box-shadow: none !important;
  transition: all 0.15s ease-in-out !important;
}

tr.search-row input:focus,
tr.search-row select:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px var(--primary-soft) !important;
  outline: none !important;
}

tr.search-row input::placeholder {
  color: var(--muted-foreground) !important;
  opacity: 0.65;
}

/* my css */
.table-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
}

.table-toolbar>div:first-child {
  width: 80%;
}

td {
  color: var(--muted-foreground) !important;
  white-space: nowrap;
}

.table-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  font-size: 14px;
  color: #364152;
  font-weight: 500;
}

.pager {
  display: flex;
  align-items: center;
  gap: 0;
}

.pager button.page-btn {
  width: auto !important;
  min-width: 42px;
  height: 38px !important;
  padding: 0 14px;
  border: 1px solid var(--border) !important;
  background: var(--surface) !important;
  color: var(--text-dim) !important;
  transition: .18s ease;
}

.pager button.page-btn:first-child {
  border-radius: 20px 0 0 20px !important;
  padding: 0 16px;
}

.pager button.page-btn:last-child {
  border-radius: 0 20px 20px 0 !important;
  padding: 0 16px;
}

.pager button.page-btn.active {
  background: oklch(0.965 0.01 250 / 0.4) !important;
  color: #364152 !important;
}

.pager button.page-btn:hover:not(:disabled) {
  background: var(--secondary) !important;
  color: #212529 !important;
}

.pager button.page-btn:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed;
}

tr.search-row th {
  font-weight: normal !important;
}

.badge-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  line-height: 14px;
}

.badge-inactive,
.badge-archived {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
}

.badge-submitted {
  display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #b45309;
    background: #ffedd5;
    border: 1px solid #fdba74;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(249, 115, 22, 0.15);
    white-space: nowrap;

}

.badge-maker_review,
.badge-scheduled {
  background: rgba(13, 110, 253, 0.15);
  color: #6ea8fe;
}

.badge-pending_checker,
.badge-draft {
  background: rgba(255, 193, 7, 0.15);
  color: #ffc107;
}

.badge-published {
  background: rgba(40, 180, 99, 0.15);
  color: #28b463;
}

.search-wrap {
  position: relative;
}

/* ===== Dropdown Menus & Actions ===== */
.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-soft);
}

.icon-btn:hover {
  color: var(--primary);
  background: var(--primary-soft);
  border-color: oklch(0.54 0.19 262 / 0.2);
  transform: scale(1.05);
}

.icon-btn:active {
  transform: scale(0.95);
}

.dropdown-menu {
  background: #ffffff !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 16px -6px rgba(15, 23, 42, 0.04) !important;
  border-radius: var(--radius-md) !important;
  padding: 6px !important;
  animation: dropdownFadeIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 140px !important;
  z-index: 1000 !important;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

.dropdown-item {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--foreground) !important;
  padding: 5px 12px !important;
  border-radius: var(--radius-sm) !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  transition: all 0.15s ease !important;
  cursor: pointer;
  background: transparent !important;
  border: none !important;
}

.dropdown-item i {
  font-size: 0.95rem !important;
  color: var(--muted-foreground);
  transition: color 0.15s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: var(--primary-soft) !important;
  color: var(--primary) !important;
}

.dropdown-item:hover i,
.dropdown-item:focus i {
  color: var(--primary) !important;
}

.dropdown-item.text-danger {
  color: var(--destructive) !important;
}

.dropdown-item.text-danger i {
  color: var(--destructive) !important;
}

.dropdown-item.text-danger:hover,
.dropdown-item.text-danger:focus {
  background-color: rgba(239, 68, 68, 0.08) !important;
  color: var(--destructive) !important;
}

.eyebrow {
  font-size: 14px;
}

small {
  font-size: 12px;
}

.card-header {
  border-radius: 12px 12px 0 0 !important;
}

.select2-container--default .select2-selection--single {
  border: 1px solid var(--border) !important;
  height: 36px !important;
  border-radius: 6px !important;
  font-size: 14px;
  background-color: #fff !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 34px !important;
  padding-left: 12px !important;
  padding-right: 28px !important;
  color: #364152 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 34px !important;
  top: 1px !important;
  right: 6px !important;
  width: 24px !important;
  display: block !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: #6b7280 transparent transparent transparent !important;
  border-style: solid !important;
  border-width: 5px 4px 0 4px !important;
  height: 0 !important;
  left: 50% !important;
  margin-left: -4px !important;
  margin-top: -2px !important;
  position: absolute !important;
  top: 50% !important;
  width: 0 !important;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-color: transparent transparent #6b7280 transparent !important;
  border-width: 0 4px 5px 4px !important;
}

.select2-results__option {
  font-size: 14px;
}

.form-switch {
  padding-left: 0;
  font-size: 14px;
}

.modal-content {
  background-color: #fff;
  box-shadow: var(--shadow-card);
}

.modal-content p {
  font-size: 14px;
}

.modal-content h5 {
  font-size: 20px;
}

.font-14 {
  font-size: 14px;
}

table.dataTable {
  width: 100% !important;
}

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

.errorlist {
  font-size: 14px;
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.swal2-icon.swal2-warning.swal2-icon-show,
.swal2-icon.swal2-success.swal2-icon-show {
  display: none !important;
}

h2#swal2-title {
  text-align: left !important;
  font-size: 20px !important;
  color: oklch(0.22 0.04 250) !important;
  padding: 30px 30px 0 !important;
}

div#swal2-html-container {
  text-align: left !important;
  font-size: 14px !important;
  color: var(--bs-secondary-color) !important;
  padding: 10px 30px 30px !important;
  line-height: 20px !important;
}

button.swal2-confirm.swal2-styled,
button.swal2-cancel.swal2-styled {
  color: #fff !important;
  box-shadow: 0 4px 10px -2px oklch(0.58 0.16 250 / 0.2) !important;
  border: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px !important;
  padding: 0 12px !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  transition: all .2s;
  white-space: nowrap !important;
}

button.swal2-cancel.swal2-styled {
  border: 1px solid oklch(0.92 0.015 250) !important;
  background: #ffffff !important;
  color: oklch(0.22 0.04 250) !important;
}

.swal2-actions {
  justify-content: end !important;
  width: 100% !important;
  padding: 0 15px !important;
  margin-top: 0 !important;
}

.swal2-popup.swal2-modal.swal2-icon-warning.swal2-show,
.swal2-popup.swal2-modal.swal2-icon-success.swal2-show {
  padding-bottom: 15px !important;
  border-radius: 0.5rem !important;
  max-width: 500px !important;
}

.swal2-loader+button.swal2-confirm.swal2-styled {
  background: linear-gradient(90deg, var(--primary), var(--chart-2));
}

.ck-placeholder {
  font-size: 14px;
}

.form-switch .form-check-input {
  margin-left: 0 !important;
}

.profile p {
  font-size: 14px;
}

.profile h5,
.profile h4 {
  font-size: 16px;
}

.profile h3 {
  font-size: 18px;
}

.card p {
  font-size: 14px;
}

.list-group-flush>.list-group-item {
  font-size: 14px;
}

.social-card .card-body {
  padding-top: 0px;
}

.bottom-wrap {
  margin: 0 30px 30px 30px;
}

.modal-header .btn-close {
  font-size: 12px;
}

/* ===== Tab Switchers / Pills ===== */
.tabs-list {
  background: oklch(0.96 0.01 240);
  border-radius: 0.6rem;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.tab-trigger {
  text-decoration: none !important;
  border: none;
  background: transparent;
  padding: 6px 14px;
  font-size: 16px;
  font-weight: 600;
  color: var(--muted-foreground) !important;
  border-radius: 0.4rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.tab-trigger:hover {
  color: var(--foreground) !important;
}

.tab-trigger.active {
  background: linear-gradient(135deg, var(--primary), var(--chart-2)) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px -2px oklch(0.55 0.16 262 / 0.25) !important;
}
.flex-space-between{
      display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
    margin-bottom: 10px;
}
.flex-space-between:last-child{
  border-bottom: none;
  margin-bottom: 0px;
}
.alert{
  font-size: 16px;
}
.flex-space-between label,.flex-space-between strong{
  font-size: 14px;
}
.speaker-img{
  max-height: 250px;
    object-fit: cover;
    width: 200px;
    height: 200px;
}
.badge-active, .badge-approved, .badge-published, .badge-paid {
    background: oklch(0.7 0.15 160 / 0.15) !important;
    color: var(--success) !important;
    border-color: oklch(0.7 0.15 160 / 0.2);
    font-size: 12px !important;
}


/* Collapse toggle button — desktop only */
.collapse-btn {
  display: none;
  width: 38px;
  height: 38px;
  /* border-radius: 6px; */
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.collapse-btn:hover {
  background: var(--muted);
  color: var(--primary);
}

.collapse-btn i {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 1024px) {
  .collapse-btn {
    display: inline-flex;
  }
}

.sidebar-header {
  gap: 8px;
}

.sidebar-header .sidebar-logo-link {
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.sidebar-header .sidebar-logo-link img {
  max-width: 100%;
}

@media (min-width: 1024px) {
  .sidebar.collapsed {
    width: 100px;
  }

  .sidebar.collapsed .sidebar-header {
    justify-content: center;
    padding: 0 10px;
  }

  .sidebar.collapsed .sidebar-logo-link {
    display: none;
  }

  .sidebar.collapsed .collapse-btn i {
    transform: rotate(180deg);
  }

  .sidebar.collapsed .nav-section {
    display: none;
  }

  .sidebar.collapsed .sidebar-nav {
    align-items: center;
  }

  .sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 10px;
    width: 44px;
  }

  .sidebar.collapsed .nav-item:hover {
    transform: none;
  }

  .sidebar.collapsed .nav-item span:not(.nav-icon) {
    display: none;
  }

  body.sidebar-collapsed .main {
    margin-left: 100px;
  }

  body.sidebar-collapsed .topbar {
    left: 100px;
  }
}
.anchor-highlight{
  color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1));
}

/* ===== Custom HTML5 validation messages (replaces native browser tooltips) ===== */
.error-message {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 6px;
  margin-bottom: 0;
  color: #b42318;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.35;
  flex: 0 0 100%;
}

.error-message::before {
  content: "\F33A"; /* bootstrap-icons exclamation-circle */
  font-family: "bootstrap-icons" !important;
  font-style: normal;
  font-weight: normal !important;
  font-size: 13px;
  line-height: 1.35;
  flex-shrink: 0;
  color: #d92d20;
}

.error-message[hidden] {
  display: none !important;
}

/* Quiz option radios: message sits under the full options list, not beside a radio */
.options-list > .error-message,
.options-section > .error-message,
.option-row + .error-message {
  margin-top: 4px;
  margin-bottom: 12px;
  padding-left: 2px;
}

.options-list.is-invalid-field,
.options-section.is-invalid-field {
  /* soft cue without breaking row layout */
  outline: none;
}

.form-control.is-invalid-field,
.form-select.is-invalid-field,
input.is-invalid-field,
select.is-invalid-field,
textarea.is-invalid-field {
  border-color: #f04438 !important;
  box-shadow: 0 0 0 3px rgba(240, 68, 56, 0.12);
}

input[type="radio"].is-invalid-field,
input[type="checkbox"].is-invalid-field {
  box-shadow: 0 0 0 3px rgba(240, 68, 56, 0.18);
  border-color: #f04438 !important;
}

/* Select2 / flatpickr visual invalid state */
.select2-container.is-invalid-field .select2-selection,
.flatpickr-input.is-invalid-field {
  border-color: #f04438 !important;
  box-shadow: 0 0 0 3px rgba(240, 68, 56, 0.12);
}

/* Keep Django server-side errors visually aligned with custom client messages */
.form-group .error-text,
.has-error .error-text {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 6px;
  color: #b42318;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.35;
}
/* Upload size hints under file inputs */
.upload-size-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted-foreground, #6b7280);
  line-height: 1.4;
}

.upload-size-error {
  margin-top: 6px;
}

input[type="file"].is-invalid-field {
  border-color: #f04438 !important;
  box-shadow: 0 0 0 3px rgba(240, 68, 56, 0.12);
}

/* Financial reports — invoice upload column */
.payment-invoice-upload-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 200px;
  max-width: 320px;
}

.payment-invoice-upload-controls {
  width: 100%;
}

.payment-invoice-upload-controls .payment-invoice-file-input {
  width: 165px;
  max-width: 100%;
  flex: 1 1 auto;
}

.payment-invoice-upload-meta {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.payment-invoice-upload-meta .upload-size-hint {
  margin-top: 0;
  font-size: 11px;
  line-height: 1.35;
}

.payment-invoice-upload-meta .upload-size-error {
  margin-top: 2px;
  font-size: 11.5px;
  line-height: 1.35;
  white-space: normal;
  word-break: break-word;
}
