/* ==================== CSS GUIDE ==================== */
/* Global variables: color, spacing, and shared theme tokens. */
/* Layout sections: header, navigation, hero, content cards, forms, footer. */
/* Responsive blocks: media queries are kept near the related component. */
/* ==================== CSS GUIDE END ==================== */

:root {
  --home-hero-surface: var(--theme-body-bg, #ffffff);
  --home-hero-surface-2: var(--theme-light-gray, #f8fafc);
  --home-hero-surface-3: var(--theme-section-bg, #eef2f6);
  --home-section-surface: rgba(255, 255, 255, 0.78);
  --home-hero-ink: var(--theme-dark-navy, #0f172a);
  --home-hero-muted: var(--theme-gray, #334155);
  --home-hero-border: rgba(148, 163, 184, 0.38);
  --home-party-red: var(--theme-saffron, #A52a2a);
  --home-party-red-deep: #A52a2a;
  --home-party-red-soft: rgba(255, 107, 0, 0.12);
  --ticker-red: var(--theme-saffron, #A52a2a);
  --ticker-green: var(--theme-green, #138808);
  --ticker-light-green: rgba(19, 136, 8, 0.3);
  --ticker-black: var(--theme-dark-navy, #0B1220);
  --primary-green: var(--theme-green, #138808);
  --accent-green: var(--theme-green, #138808);
  --gold-accent: var(--theme-gold, #FFB300);
  --light-bg: var(--theme-body-bg, #FFFFFF);
  --brand-red: var(--theme-saffron, #A52a2a);
  --brand-green: var(--theme-green, #138808);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--light-bg);
  color: #1e293b;
}

.section-block {
  padding: 70px 0;
}

.panel-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 25px rgba(2, 6, 23, 0.04);
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #065f46;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.2);
}


/* Join us page css  */

.hero {
  background: linear-gradient(120deg, rgba(6, 78, 59, 0.9), rgba(16, 185, 129, 0.4)),
    url('https://images.unsplash.com/photo-1521737711867-e3b97375f902?auto=format&fit=crop&w=1400&q=80');
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 80px 0;
  text-align: center;
}

.fee-badge {
  background: rgba(251, 146, 60, 0.15);
  color: #9a3412;
  border: 1px solid rgba(251, 146, 60, 0.3);
  font-weight: 700;
  border-radius: 999px;
  padding: 6px 14px;
}

.qr-box {
  border: 2px dashed #cbd5f5;
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  color: #64748b;
  background: #f8fafc;
}

/* End ofn join us css */

/* Shared admin theme */
.dashboard-page {
  min-height: calc(100vh - 80px);
  background:
    radial-gradient(circle at top left, rgba(72, 127, 255, 0.08), transparent 26%),
    linear-gradient(180deg, #f8fbff 0%, #f1f5f9 100%);
}

[data-theme="dark"] .dashboard-page {
  background:
    radial-gradient(circle at top left, rgba(72, 127, 255, 0.16), transparent 30%),
    linear-gradient(180deg, #111827 0%, #0f172a 100%);
}

.main-body-bg{
    background: radial-gradient(circle at top left, rgba(72, 127, 255, 0.08), transparent 26%),
    linear-gradient(180deg, #f8fbff 0%, #f1f5f9 100%);
}
[data-theme="dark"] .main-body-bg{
  background: radial-gradient(circle at top left, rgba(72, 127, 255, 0.16), transparent 30%),
    linear-gradient(180deg, #111827 0%, #0f172a 100%);
}

.dashboard-page__title {
  color: #111827;
}

.dashboard-page__subtitle {
  color: #6b7280;
}

[data-theme="dark"] .dashboard-page__title {
  color: #f8fafc;
}

[data-theme="dark"] .dashboard-page__subtitle {
  color: #94a3b8;
}

.dashboard-page__crumbs {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dashboard-page__crumbs a {
  color: #64748b;
}

[data-theme="dark"] .dashboard-page__crumbs a {
  color: #cbd5e1;
}

.admin-surface-card {
  border: 0;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

[data-theme="dark"] .admin-surface-card {
  background: rgba(30, 41, 59, 0.96);
  border-color: rgba(255, 255, 255, 0.05) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
}

.admin-surface-card__header {
  padding: 22px 24px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(248, 250, 252, 0.85);
}

.admin-surface-card__body {
  padding: 24px;
}

.admin-surface-card__footer {
  padding: 18px 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(248, 250, 252, 0.8);
}

[data-theme="dark"] .admin-surface-card__header,
[data-theme="dark"] .admin-surface-card__footer {
  background: rgba(15, 23, 42, 0.65);
}

.admin-form-control,
.admin-form-select,
.admin-search-control {
  min-height: 48px;
  border: 1px solid #d9e2ef;
  border-radius: 14px;
  background: #fbfdff;
  color: #0f172a;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-search-control {
  padding-left: 40px;
}

[data-theme="dark"] .admin-form-control,
[data-theme="dark"] .admin-form-select,
[data-theme="dark"] .admin-search-control {
  background: #0f172a;
  border-color: #334155;
  color: #f1f5f9;
}

.admin-form-control::placeholder,
.admin-search-control::placeholder {
  color: #94a3b8;
}

.admin-form-control:focus,
.admin-form-select:focus,
.admin-search-control:focus {
  border-color: #0d6efd;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.12);
}

[data-theme="dark"] .admin-form-control:focus,
[data-theme="dark"] .admin-form-select:focus,
[data-theme="dark"] .admin-search-control:focus {
  background: #0f172a;
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.admin-toolbar-icon {
  color: #94a3b8;
}

.admin-stat-tile {
  height: 100%;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

[data-theme="dark"] .admin-stat-tile {
  background: rgba(30, 41, 59, 0.92);
  border-color: rgba(255, 255, 255, 0.05);
}

.admin-action-tile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(248, 250, 252, 0.88);
  text-decoration: none;
  height: 100%;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-action-tile:hover {
  transform: translateY(-3px);
  border-color: #0d6efd;
  box-shadow: 0 14px 30px rgba(13, 110, 253, 0.1);
}

[data-theme="dark"] .admin-action-tile {
  background: rgba(15, 23, 42, 0.82);
  border-color: rgba(255, 255, 255, 0.05);
}

.admin-action-tile__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-table-wrap {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.admin-table {
  margin-bottom: 0;
}

.admin-table thead th {
  background: rgba(248, 250, 252, 0.92);
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom-width: 1px;
  padding: 16px 18px;
  white-space: nowrap;
}

.admin-table tbody td {
  padding: 18px;
  vertical-align: middle;
  border-color: rgba(226, 232, 240, 0.8);
}

[data-theme="dark"] .admin-table thead th {
  background: rgba(15, 23, 42, 0.72);
  color: #94a3b8;
}

[data-theme="dark"] .admin-table tbody td {
  border-color: rgba(51, 65, 85, 0.9);
  color: #e2e8f0;
}

[data-theme="dark"] .dashboard-page .text-dark {
  color: #f1f5f9 !important;
}

[data-theme="dark"] .dashboard-page .text-secondary-light,
[data-theme="dark"] .dashboard-page .text-muted {
  color: #94a3b8 !important;
}

[data-theme="dark"] .dashboard-page hr {
  border-top-color: rgba(255, 255, 255, 0.1);
}

/* Admin post composer */
.post-create-page {
  min-height: calc(100vh - 80px);
  background:
    radial-gradient(circle at top left, rgba(72, 127, 255, 0.08), transparent 26%),
    linear-gradient(180deg, #f8fbff 0%, #f1f5f9 100%);
}

.post-create-page__title {
  color: #111827;
}

.post-create-page__subtitle {
  color: #6b7280;
}

[data-theme="dark"] .post-create-page {
  background:
    radial-gradient(circle at top left, rgba(72, 127, 255, 0.16), transparent 30%),
    linear-gradient(180deg, #111827 0%, #0f172a 100%);
}

[data-theme="dark"] .post-create-page__title {
  color: #f8fafc;
}

[data-theme="dark"] .post-create-page__subtitle {
  color: #94a3b8;
}

.composer-card--side {
  position: sticky;
  top: 24px;
}

[data-theme="dark"] .composer-card {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.05) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.composer-input,
.composer-select {
  min-height: 54px;
  border: 1px solid #d9e2ef;
  border-radius: 16px;
  background: #fbfdff;
  color: #0f172a;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

[data-theme="dark"] .composer-input,
[data-theme="dark"] .composer-select {
  background: #0f172a;
  border-color: #334155;
  color: #f1f5f9;
}

.composer-input::placeholder,
[data-theme="dark"] .composer-input::placeholder {
  color: #94a3b8;
}

.composer-input:focus,
.composer-select:focus {
  border-color: #0d6efd;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.12);
}

[data-theme="dark"] .composer-input:focus,
[data-theme="dark"] .composer-select:focus {
  background: #0f172a;
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.composer-input--muted {
  background: #f2f6fb;
}

[data-theme="dark"] .composer-input--muted {
  background: #1a2332;
  color: #64748b;
}

.quill-wrapper {
  border: 1px solid #d9e2ef;
  background: #fff;
  transition: none;
}

.ql-toolbar>* {
  border: 0 !important;
}

[data-theme="dark"] .quill-wrapper {
  background: #0f172a;
  border-color: #334155;
}

.ql-toolbar.ql-snow {
  border: 0 !important;
  border-bottom: 1px solid #f1f5f9 !important;
  padding: 12px 16px !important;
  background: #f8fbff;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

[data-theme="dark"] .ql-toolbar.ql-snow {
  background: #1e293b;
  border-bottom-color: #334155 !important;
}

.ql-container.ql-snow {
  border: 0 !important;
  min-height: 350px;
  font-family: inherit;
  font-size: 15px;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}


.ql-editor strong,
.ql-editor b {
  font-weight: 700;
}

.ql-editor em,
.ql-editor i {
  font-style: italic;
}

.ql-editor u {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ql-editor s,
.ql-editor strike {
  text-decoration: line-through;
}

.ql-editor.ql-blank::before {
  color: var(--bs-secondary) !important;
}

[data-theme="dark"] .ql-editor {
  color: #f1f5f9;
}

[data-theme="dark"] .ql-snow .ql-stroke {
  stroke: #94a3b8;
}

[data-theme="dark"] .ql-snow .ql-fill {
  fill: #94a3b8;
}

[data-theme="dark"] .ql-snow .ql-picker {
  color: #f1f5f9;
}

[data-theme="dark"] .ql-snow .ql-picker-options {
  background-color: #1e293b;
  border-color: #334155;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .ql-snow .ql-picker-item:hover {
  color: #3b82f6;
}

.ql-snow .ql-tooltip {
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  padding: 10px 15px !important;
  z-index: 10;
}

[data-theme="dark"] .ql-snow .ql-tooltip {
  background-color: #1e293b;
  border-color: #334155;
  color: #f1f5f9;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .ql-snow .ql-tooltip input[type=text] {
  background: #0f172a;
  border: 1px solid #334155;
  color: #f1f5f9;
  border-radius: 8px;
  padding: 4px 8px;
}

[data-theme="dark"] .ql-snow .ql-tooltip .ql-action::after {
  color: #3b82f6;
}

[data-theme="dark"] .ql-snow .ql-tooltip .ql-remove::before {
  color: #ef4444;
}


.gl-file-label {
  position: relative;
  display: inline-block;
  padding: 12px 30px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(45deg, #6a11cb, #2575fc);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Hover effect */
.gl-file-label:hover {
  background: linear-gradient(45deg, #2575fc, #6a11cb);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Hidden file input */
.gl-file-input {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 100%;
  min-height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* Optional: display selected file name */
#file-name {
  margin-top: 15px;
  font-size: 1.1rem;
}



.hashtag-input {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 10px 16px;
  border: 1px solid #d9e2ef;
  border-radius: 16px;
  background: #fbfdff;
  transition: none;
}

[data-theme="dark"] .hashtag-input {
  background: #0f172a;
  border-color: #334155;
}

.hashtag-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #e7f1ff;
  color: #0d4fd8;
  font-size: 13px;
  font-weight: 600;
}

[data-theme="dark"] .hashtag-chip {
  background: rgba(13, 110, 253, 0.15);
  color: #60a5fa;
}

.hashtag-input-field {
  flex: 1 1 120px;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
}

.composer-photo-strip {
  display: flex;
  gap: 16px;
  padding-bottom: 12px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.composer-photo-strip::-webkit-scrollbar {
  height: 6px;
}

.composer-photo-strip::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

[data-theme="dark"] .composer-photo-strip::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
}

.composer-media-tile {
  min-height: 200px;
  height: 200px !important;
}

.composer-media-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.composer-photo-add-card {
  display: flex;
  flex: 0 0 172px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border: 2px dashed #9fc2ff;
  border-radius: 20px;
  background: linear-gradient(145deg, #eff6ff 0%, #dceaff 100%);
  color: #0d4fd8;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

[data-theme="dark"] .composer-photo-add-card {
  background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
  border-color: #334155;
  color: #3b82f6;
}

.composer-photo-add-card:hover {
  transform: scale(1.02);
  border-color: #0d6efd;
  box-shadow: 0 8px 20px rgba(13, 110, 253, 0.15);
}

.composer-photo-add-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  font-size: 24px;
}

[data-theme="dark"] .composer-photo-add-card__icon {
  background: rgba(255, 255, 255, 0.05);
}

.composer-thumbnail-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid #dbe3f0;
  background: #f8fbff;
  transition: none;
}

[data-theme="dark"] .composer-thumbnail-card {
  background: #0f172a;
  border-color: #334155;
}

.composer-thumbnail-card__footer {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
}

.composer-photo-card {
  position: relative;
  overflow: hidden;
  flex: 0 0 172px !important;
  height: 172px !important;
  border-radius: 20px;
  border: 1px solid #dbe3f0;
  background: #f8fbff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

[data-theme="dark"] .composer-photo-card {
  background: #0f172a;
  border-color: #334155;
}

.composer-photo-card:hover {
  transform: translateY(-4px);
}

.composer-photo-card__remove {
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 28px !important;
  height: 28px !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #dc3545 !important;
  color: #ffffff !important;
  font-size: 16px !important;
  z-index: 99 !important;
  cursor: pointer !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

.composer-photo-card__action {
  bottom: 0;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  opacity: 0.9;
}

.composer-thumbnail-empty {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 2px dashed #dbe3f0;
  border-radius: 20px;
  background: #fbfdff;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

[data-theme="dark"] .composer-thumbnail-empty {
  background: #0f172a;
  border-color: #334155;
}

.composer-thumbnail-empty:hover {
  border-color: #0d6efd;
}

[data-theme="dark"] .composer-thumbnail-empty:hover {
  border-color: #3b82f6;
}

.composer-thumbnail-empty__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #eaf2ff;
  color: #0d6efd;
  font-size: 24px;
}

[data-theme="dark"] .composer-thumbnail-empty__icon {
  background: rgba(13, 110, 253, 0.1);
}

.composer-thumbnail-empty__text {
  color: #64748b;
  font-size: 15px;
  font-weight: 600;
}

.composer-switch {
  width: 46px;
  height: 24px;
  cursor: pointer;
}

.composer-divider {
  opacity: 0.1;
}

.composer-alert {
  border-width: 1px;
  border-style: solid;
  border-radius: 16px;
}

.composer-alert--danger {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

[data-theme="dark"] .composer-alert--danger {
  background: rgba(127, 29, 29, 0.22);
  border-color: rgba(248, 113, 113, 0.28);
  color: #fecaca;
}

.swal2-popup {
  border-radius: 18px;
}

[data-theme="dark"] .swal2-popup {
  background: #1e293b;
  color: #f8fafc;
}

[data-theme="dark"] .swal2-title,
[data-theme="dark"] .swal2-html-container {
  color: #f8fafc;
}

[data-theme="dark"] .post-create-page .text-dark {
  color: #f1f5f9 !important;
}

[data-theme="dark"] .post-create-page .text-secondary-light {
  color: #94a3b8 !important;
}

[data-theme="dark"] .post-create-page hr {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.note-modal-backdrop {
  display: none !important;
}

@media (max-width: 575.98px) {

  .composer-photo-add-card,
  .composer-photo-card {
    flex: 0 0 148px;
  }
}