/* ── Website Manager Dashboard ──────────────────────────────────────────────── */
.website-dashboard {
  font-family: var(--portal-font, 'Poppins', -apple-system, sans-serif);
  color: #1e293b;
}
.website-dashboard-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.25rem;
}

/* Institute selection bar */
.website-inst-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  margin-bottom: 16px;
}
.website-inst-select {
  min-width: 240px;
}
.website-filter-search { max-width: 280px; }
.website-filter-status { max-width: 160px; }
.website-filter-category { max-width: 180px; }

/* Table action buttons */
.website-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
  color: #4b5563;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.website-action-btn:hover {
  background: #eef2ff;
  border-color: #4f46e5;
  color: #4f46e5;
}
.website-action-btn.edit { color: #4f46e5; }
.website-action-btn.edit:hover { background: #eef2ff; border-color: #4f46e5; color: #4f46e5; }
.website-action-btn.delete { color: #dc2626; }
.website-action-btn.delete:hover { background: #fef2f2; border-color: #dc2626; color: #dc2626; }
.website-action-btn.submit { color: #d97706; }
.website-action-btn.submit:hover { background: #fffbeb; border-color: #d97706; color: #d97706; }
.website-action-btn.approve { color: #059669; }
.website-action-btn.approve:hover { background: #ecfdf5; border-color: #059669; color: #059669; }
.website-action-btn.reject { color: #dc2626; }
.website-action-btn.reject:hover { background: #fef2f2; border-color: #dc2626; color: #dc2626; }
.website-action-btn.activate { color: #059669; }
.website-action-btn.activate:hover { background: #ecfdf5; border-color: #059669; color: #059669; }
.website-action-btn.deactivate { color: #6b7280; }
.website-action-btn.deactivate:hover { background: #f3f4f6; border-color: #6b7280; color: #374151; }

/* Text-labeled action buttons (approvals) */
.website-action-text-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
  color: #4b5563;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.website-action-text-btn:hover { background: #eef2ff; border-color: #4f46e5; color: #4f46e5; }
.website-action-text-btn.approve { color: #059669; }
.website-action-text-btn.approve:hover { background: #ecfdf5; border-color: #059669; color: #059669; }
.website-action-text-btn.reject { color: #dc2626; }
.website-action-text-btn.reject:hover { background: #fef2f2; border-color: #dc2626; color: #dc2626; }
.website-action-text-btn.activate { color: #4f46e5; }
.website-action-text-btn.activate:hover { background: #eef2ff; border-color: #4f46e5; color: #4f46e5; }
.website-action-text-btn.deactivate { color: #d97706; }
.website-action-text-btn.deactivate:hover { background: #fffbeb; border-color: #d97706; color: #d97706; }
.website-action-text-btn.submit { color: #4f46e5; }
.website-action-text-btn.submit:hover { background: #eef2ff; border-color: #4f46e5; color: #4f46e5; }
.website-action-text-btn.history { color: #6b7280; }
.website-action-text-btn.history:hover { background: #f3f4f6; border-color: #6b7280; color: #374151; }

/* Generic compact card */
.website-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  margin-bottom: 16px;
  overflow: hidden;
}
.website-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid #eef0f3;
  font-weight: 600;
  font-size: 0.95rem;
}
.website-card-header a {
  font-size: 0.8rem;
  color: #4f46e5;
  text-decoration: none;
}
.website-card-header a:hover { text-decoration: underline; }
.website-card-body {
  padding: 16px;
}

/* Stat cards */
.website-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.website-stat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.website-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.website-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.website-stat-icon.articles { background: #eef2ff; color: #4f46e5; }
.website-stat-icon.events { background: #ecfdf5; color: #059669; }
.website-stat-icon.galleries { background: #eff6ff; color: #2563eb; }
.website-stat-icon.achievements { background: #fffbeb; color: #d97706; }
.website-stat-body { min-width: 0; }
.website-stat-value { font-size: 1.4rem; font-weight: 700; line-height: 1.1; }
.website-stat-label { font-size: 0.8rem; color: #6b7280; font-weight: 600; }
.website-stat-sub { font-size: 0.72rem; color: #9ca3af; }

/* Quick actions */
.website-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.website-quick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 10px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  color: #1e293b;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.website-quick-btn i { font-size: 1.2rem; }
.website-quick-btn:hover {
  background: #eef2ff;
  border-color: #4f46e5;
  color: #4f46e5;
}

/* Info cards (Recent Articles / Homepage Builder) */
.website-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

/* Save button */
.website-save-btn {
  white-space: nowrap;
  border-radius: 8px;
  font-weight: 600;
  padding: 0.4rem 1rem;
  background: linear-gradient(135deg, #4f46e5, #2563eb);
  border: none;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.25);
  transition: all 0.15s ease;
}
.website-save-btn:hover:not(:disabled) {
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
  transform: translateY(-1px);
}
.website-save-btn:disabled {
  opacity: 0.6;
  box-shadow: none;
}

/* Hosting status radio cards */
.website-radio-card {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  padding: 8px 12px;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.website-radio-card:hover { border-color: #adb5bd; }
.website-radio-card.active {
  border-color: #198754;
  background-color: #d1e7dd;
  box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.12);
}
.website-radio-card.inactive {
  border-color: #dc3545;
  background-color: #f8d7da;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.12);
}
.website-radio-circle {
  width: 18px;
  height: 18px;
  border: 2px solid #6c757d;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.15s ease;
}
.website-radio-card.active .website-radio-circle { border-color: #198754; }
.website-radio-card.active .website-radio-circle::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #198754;
}
.website-radio-card.inactive .website-radio-circle { border-color: #dc3545; }
.website-radio-card.inactive .website-radio-circle::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dc3545;
}
.website-radio-label { font-size: 0.875rem; font-weight: 600; color: #212529; }

/* Responsive */
@media (max-width: 991.98px) {
  .website-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .website-quick-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767.98px) {
  .website-info-grid { grid-template-columns: 1fr; }
  .website-inst-select { min-width: 0; width: 100%; }
  .website-save-btn { width: 100%; }
}
@media (max-width: 575.98px) {
  .website-stat-grid { grid-template-columns: 1fr; }
  .website-quick-grid { grid-template-columns: 1fr; }
}

/* ── Theme Builder (dashboard style) ───────────────────────────────────────── */
.website-dashboard .theme-builder {
  display: flex;
  gap: 0;
  min-height: calc(100vh - 200px);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}
.website-dashboard .theme-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: #f8fafc;
  border-right: 1px solid #eef0f3;
  display: flex;
  flex-direction: column;
}
.website-dashboard .theme-sidebar-header {
  padding: 16px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #4f46e5;
  border-bottom: 1px solid #eef0f3;
  display: flex;
  align-items: center;
}
.website-dashboard .theme-sidebar-nav {
  flex: 1;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.website-dashboard .theme-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #4b5563;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}
.website-dashboard .theme-nav-item:hover {
  background: #eef2ff;
  color: #4f46e5;
}
.website-dashboard .theme-nav-item.active {
  background: #eef2ff;
  color: #4f46e5;
  font-weight: 600;
}
.website-dashboard .theme-sidebar-footer {
  padding: 12px;
  border-top: 1px solid #eef0f3;
}
.website-dashboard .theme-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}
/* Each theme section renders as a dashboard-style card */
.website-dashboard .theme-section {
  max-width: 900px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  padding: 20px;
  margin-bottom: 16px;
}
.website-dashboard .theme-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef0f3;
  margin-bottom: 12px;
}
.website-dashboard .theme-section-desc {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 20px;
}
/* Color Cards */
.website-dashboard .theme-color-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.website-dashboard .theme-color-card,
.website-dashboard .theme-media-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.website-dashboard .theme-color-swatch { height: 56px; }
.website-dashboard .theme-color-body { padding: 12px; }
.website-dashboard .theme-preset-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #dee2e6;
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s;
}
.website-dashboard .theme-preset-dot:hover { transform: scale(1.2); }
/* Preview Box */
.website-dashboard .theme-preview-box {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px;
}
/* Layout Cards */
.website-dashboard .theme-layout-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.website-dashboard .theme-layout-card {
  position: relative;
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
.website-dashboard .theme-layout-card:hover { border-color: #c7d2fe; }
.website-dashboard .theme-layout-card.selected {
  border-color: #4f46e5;
  background: #eef2ff;
}
.website-dashboard .theme-layout-icon { font-size: 1.5rem; margin-bottom: 8px; color: #6b7280; }
.website-dashboard .theme-layout-card.selected .theme-layout-icon { color: #4f46e5; }
.website-dashboard .theme-layout-check {
  position: absolute;
  top: 8px;
  right: 8px;
  color: #4f46e5;
  font-size: 1rem;
}
/* Media Grid */
.website-dashboard .theme-media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.website-dashboard .theme-media-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid #f0f0f0;
}
.website-dashboard .theme-media-preview {
  position: relative;
  height: 120px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.website-dashboard .theme-media-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.website-dashboard .theme-media-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #adb5bd;
  font-size: 0.75rem;
}
.website-dashboard .theme-media-empty i { font-size: 1.5rem; }
.website-dashboard .theme-media-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(220, 53, 69, 0.9);
  color: #fff;
  font-size: 0.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.website-dashboard .theme-media-actions {
  padding: 8px 12px;
  border-top: 1px solid #f0f0f0;
}
.website-dashboard .theme-media-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: #4f46e5;
  cursor: pointer;
  padding: 4px 10px;
  border: 1px solid #c7d2fe;
  border-radius: 6px;
  background: #eef2ff;
  transition: all 0.15s;
}
.website-dashboard .theme-media-upload-btn:hover { background: #e0e7ff; }
/* Website Preview */
.website-dashboard .theme-website-preview {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
.website-dashboard .preview-header {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.website-dashboard .preview-hero {
  padding: 40px 20px;
  text-align: center;
  color: #fff;
}
.website-dashboard .preview-hero h2 { margin-bottom: 8px; }
.website-dashboard .preview-hero p { margin-bottom: 16px; font-size: 0.9rem; }
.website-dashboard .preview-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 20px;
  background: #f8fafc;
}
.website-dashboard .preview-card {
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.website-dashboard .preview-card h6 { margin-bottom: 4px; font-size: 0.85rem; }
.website-dashboard .preview-footer {
  padding: 12px 20px;
  text-align: center;
}

/* Theme builder responsive */
@media (max-width: 991.98px) {
  .website-dashboard .theme-builder { flex-direction: column; }
  .website-dashboard .theme-sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    border-right: none;
    border-bottom: 1px solid #eef0f3;
  }
  .website-dashboard .theme-sidebar-header { width: 100%; }
  .website-dashboard .theme-sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px;
  }
  .website-dashboard .theme-nav-item { font-size: 0.75rem; padding: 6px 10px; }
  .website-dashboard .theme-sidebar-footer { width: 100%; }
  .website-dashboard .theme-content { padding: 16px; }
  .website-dashboard .theme-color-row,
  .website-dashboard .theme-layout-row { grid-template-columns: 1fr; }
  .website-dashboard .theme-media-grid { grid-template-columns: 1fr; }
  .website-dashboard .preview-cards { grid-template-columns: 1fr; }
}

/* ── Theme buttons ──────────────────────────────────────────────────────────── */
.website-dashboard .theme-sidebar-footer .btn-primary {
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.2);
  transition: all 0.15s ease;
}
.website-dashboard .theme-sidebar-footer .btn-primary:hover:not(:disabled) {
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
  transform: translateY(-1px);
}
.website-dashboard .theme-sidebar-footer .btn-primary:disabled {
  opacity: 0.6;
  box-shadow: none;
}
.website-dashboard .theme-preview-box .btn,
.website-dashboard .theme-website-preview .btn {
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: all 0.15s ease;
}
.website-dashboard .theme-preview-box .btn:hover,
.website-dashboard .theme-website-preview .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}
.website-dashboard .theme-media-upload-btn {
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(79, 70, 229, 0.15);
  transition: all 0.15s ease;
}
.website-dashboard .theme-media-upload-btn:hover {
  box-shadow: 0 3px 8px rgba(79, 70, 229, 0.25);
  transform: translateY(-1px);
}
