/* ==========================================================================
   OUR HOMEPAGE - Light Mode Premium Design System
   ========================================================================== */

:root {
  /* Color Palette - Light Mode Baseline */
  --bg-main: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-header: rgba(255, 255, 255, 0.88);
  --bg-subtle: #F1F5F9;
  
  --text-main: #0F172A;
  --text-muted: #475569;
  --text-light: #334155;

  --border-light: #E2E8F0;
  --border-hover: #CBD5E1;

  /* Brand Accents */
  --primary: #4F46E5;
  --primary-hover: #4338CA;
  --primary-light: #EEF2FF;
  
  --secondary: #0284C7;
  --secondary-light: #F0F9FF;

  --accent-emerald: #059669;
  --accent-emerald-light: #ECFDF5;
  
  --accent-amber: #D97706;
  --accent-amber-light: #FFFBEB;

  --accent-rose: #E11D48;
  --accent-rose-light: #FFF1F2;

  /* Shadow Elevation */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 20px 25px -5px rgba(79, 70, 229, 0.12), 0 8px 10px -6px rgba(79, 70, 229, 0.08);

  /* Radius & Transitions */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Core Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Accessibility Screen Reader Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

html {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Sticky Glass Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  padding: 1rem 0;
  transition: var(--transition);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}

.brand-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #FFFFFF;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.brand-icon svg {
  width: 22px;
  height: 22px;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.12));
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.brand-logo-img:hover {
  transform: scale(1.05);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background-color: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-outline {
  background-color: var(--bg-card);
  color: var(--text-main);
  border-color: var(--border-light);
}

.btn-outline:hover {
  border-color: var(--border-hover);
  background-color: var(--bg-subtle);
}

.btn-danger {
  background-color: var(--accent-rose-light);
  color: var(--accent-rose);
  border-color: rgba(225, 29, 72, 0.2);
}

.btn-danger:hover {
  background-color: var(--accent-rose);
  color: #FFFFFF;
}

.btn-icon {
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

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

/* Hero Section */
.hero-section {
  padding: 3rem 0 1.5rem;
  background: radial-gradient(circle at 50% 0%, rgba(79, 70, 229, 0.05), transparent 70%);
}

.hero-content {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero-badge svg {
  width: 16px;
  height: 16px;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.hero-title span {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Stats Summary Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

.stat-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon-wrapper.indigo {
  background-color: var(--primary-light);
  color: var(--primary);
}

.stat-icon-wrapper.cyan {
  background-color: var(--secondary-light);
  color: var(--secondary);
}

.stat-icon-wrapper.emerald {
  background-color: var(--accent-emerald-light);
  color: var(--accent-emerald);
}

.stat-icon-wrapper.amber {
  background-color: var(--accent-amber-light);
  color: var(--accent-amber);
}

.stat-icon-wrapper svg {
  width: 24px;
  height: 24px;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.25rem;
}

/* Controls Bar (Search & Filter) */
.controls-bar {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.controls-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.search-box {
  position: relative;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 2.85rem;
  font-size: 0.9375rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background-color: var(--bg-subtle);
  color: var(--text-main);
  outline: none;
  transition: var(--transition);
}

.search-input:focus {
  background-color: var(--bg-card);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

/* Category Filter Pills */
.category-pills {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
}

.category-pill {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background-color: var(--bg-subtle);
  color: var(--text-muted);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.category-pill:hover {
  background-color: var(--border-light);
  color: var(--text-main);
}

.category-pill.active {
  background-color: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.25);
}

/* Project Cards Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

/* Project Card */
.project-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-hover);
}

.project-card.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.status-badge.active {
  background-color: var(--accent-emerald-light);
  color: var(--accent-emerald);
}

.status-badge.in-development {
  background-color: var(--accent-amber-light);
  color: var(--accent-amber);
}

.status-badge.archived {
  background-color: var(--accent-rose-light);
  color: var(--accent-rose);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
}

.card-body {
  flex: 1;
  margin-bottom: 1.25rem;
}

.category-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.project-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.project-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  pt: 1rem;
  border-top: 1px solid var(--border-light);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1rem;
  background-color: var(--bg-card);
  border: 1px dashed var(--border-hover);
  border-radius: var(--radius-lg);
}

.empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  color: var(--text-light);
}

.empty-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.empty-text {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* ==========================================================================
   2026 ADMIN DASHBOARD SPECIFIC STYLES
   ========================================================================== */

/* Modern Admin Header Banner */
.admin-hero {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.06), rgba(2, 132, 199, 0.06));
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* Admin Tabs Navigation */
.admin-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 2rem;
}

.admin-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.875rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  cursor: pointer;
  transition: var(--transition);
}

.admin-tab svg {
  width: 18px;
  height: 18px;
}

.admin-tab:hover {
  color: var(--text-main);
}

.admin-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Tab Panels */
.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Modern Admin Table */
.admin-card-container {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.admin-table-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background-color: var(--bg-card);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.admin-table th {
  background-color: var(--bg-subtle);
  padding: 1rem 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-light);
}

.admin-table td {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-main);
  vertical-align: middle;
}

.admin-table tbody tr {
  transition: background-color 0.2s ease;
}

.admin-table tbody tr:hover {
  background-color: rgba(79, 70, 229, 0.025);
}

.thumb-preview-lg {
  width: 56px;
  height: 40px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-light);
  transition: transform 0.2s ease;
}

.thumb-preview-lg:hover {
  transform: scale(1.15);
}

/* Floating Bulk Action Bar */
.bulk-actions-bar {
  position: sticky;
  bottom: 1.5rem;
  z-index: 40;
  margin: 1.5rem auto 0;
  width: max-content;
  max-width: 90%;
  background-color: var(--text-main);
  color: #FFFFFF;
  border-radius: var(--radius-full);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bulk-actions-bar.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Modal Styling */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 580px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.25s ease;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
}

.modal-close:hover {
  color: var(--text-main);
  background-color: var(--bg-subtle);
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
}

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

.form-group {
  margin-bottom: 1rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 0.875rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background-color: var(--bg-subtle);
  color: var(--text-main);
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  background-color: var(--bg-card);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

textarea.form-control {
  min-height: 80px;
  resize: vertical;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  background-color: var(--bg-subtle);
}

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-light);
  background-color: var(--bg-card);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Interactive Logo Edit Badge & Cropper Modal (Light Mode)
   ========================================================================== */

.brand-logo-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.logo-edit-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 24px;
  height: 24px;
  background: var(--primary);
  color: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.35);
  transition: all 0.2s ease;
  z-index: 10;
}

.logo-edit-badge:hover {
  transform: scale(1.18);
  background: var(--primary-hover);
}

.logo-edit-badge svg {
  width: 12px;
  height: 12px;
}

/* Cropper Modal Overlay */
.cropper-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 1.5rem;
}

.cropper-modal-overlay.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.cropper-modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.cropper-modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-card);
}

.cropper-modal-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cropper-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background-color: #f8fafc;
}

/* Crop Viewport & Dropzone */
.cropper-viewport {
  width: 100%;
  height: 340px;
  background: #f1f5f9;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cropper-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem;
  text-align: center;
  border: 2px dashed var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  background: #ffffff;
  width: 90%;
  transition: all 0.2s ease;
}

.cropper-dropzone.drag-hover,
.cropper-dropzone:hover {
  border-color: var(--primary);
  background: rgba(79, 70, 229, 0.02);
}

.cropper-dropzone-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(79, 70, 229, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cropper-dropzone-icon svg {
  width: 24px;
  height: 24px;
}

/* Cropper Toolbar & Controls */
.cropper-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.cropper-btn-group {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #f1f5f9;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
}

.cropper-btn-icon {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--text-main);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cropper-btn-icon:hover {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cropper-btn-icon svg {
  width: 16px;
  height: 16px;
}

/* Aspect Ratio Pills */
.cropper-aspect-pills {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.aspect-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: #ffffff;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.aspect-pill.active,
.aspect-pill:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* Modal Footer */
.cropper-modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  background-color: var(--bg-card);
}

/* Toast Notifications */
.cropper-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cropper-toast.active {
  opacity: 1;
  transform: translateY(0);
}

.cropper-toast.success {
  background: #10b981;
}

.cropper-toast.error {
  background: #ef4444;
}

/* Loading Spinner */
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.8s linear infinite;
  margin-right: 0.4rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Drag and Drop Table Reordering */
.admin-table tbody tr.admin-row {
  transition: transform 0.15s ease, background-color 0.15s ease, opacity 0.15s ease;
}

.admin-table tbody tr.admin-row.dragging {
  opacity: 0.45;
  background-color: var(--primary-light) !important;
  box-shadow: var(--shadow-md);
}

.admin-table tbody tr.admin-row.drag-above {
  border-top: 2px dashed var(--primary) !important;
}

.admin-table tbody tr.admin-row.drag-below {
  border-bottom: 2px dashed var(--primary) !important;
}

.drag-handle-cell {
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.drag-handle-cell:active {
  cursor: grabbing;
}

.drag-handle-icon {
  width: 20px;
  height: 20px;
  color: var(--text-light);
  transition: color 0.15s ease;
}

.admin-row:hover .drag-handle-icon {
  color: var(--primary);
}

/* ==========================================================================
   REFINED MOVEMENT NETWORK ADMIN DASHBOARD STYLES
   ========================================================================== */

/* Dark Mode Theme Variables Overrides */
html[data-theme="dark"] {
  --bg-main: #0f172a;
  --bg-card: #1e293b;
  --bg-subtle: #334155;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  --border-light: #334155;
  --border-hover: #475569;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.6);
}

body.admin-body {
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}

/* Layout Shell */
.admin-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* Persistent Left Sidebar */
.admin-sidebar {
  width: 260px;
  background-color: var(--bg-card);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
}

.sidebar-brand-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background-color: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-brand-icon svg { width: 22px; height: 22px; }

.sidebar-brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sidebar-close-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}

/* Navigation Links */
.sidebar-nav {
  flex: 1;
  padding: 1.25rem 0.85rem;
  overflow-y: auto;
}

.nav-section-label {
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--text-light);
  letter-spacing: 0.08em;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.25rem;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
  transition: all 0.15s ease;
}

.sidebar-nav-item .nav-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-nav-item .nav-icon svg { width: 18px; height: 18px; }

.sidebar-nav-item:hover {
  background-color: var(--bg-subtle);
  color: var(--text-main);
}

.sidebar-nav-item.active {
  background-color: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
}

.nav-badge {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  background-color: var(--bg-subtle);
  color: var(--text-main);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

.sidebar-nav-item.active .nav-badge {
  background-color: var(--primary);
  color: #ffffff;
}

.logout-item:hover {
  background-color: var(--accent-rose-light);
  color: var(--accent-rose);
}

.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border-light);
}

.admin-mini-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.avatar-circle img { width: 100%; height: 100%; object-fit: cover; }

.admin-mini-name {
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--text-main);
  line-height: 1.2;
}

.admin-mini-role {
  font-size: 0.6875rem;
  color: var(--primary);
  font-weight: 700;
}

/* Main Content Wrapper */
.admin-main-wrapper {
  margin-left: 260px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Top Bar */
.admin-topbar {
  height: 72px;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 900;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-toggle-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 0.4rem;
}

.topbar-greeting {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
  color: var(--text-main);
}

.topbar-greeting .highlight {
  color: var(--primary);
}

.topbar-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Topbar Search */
.topbar-search-wrapper {
  position: relative;
  width: 280px;
}

.topbar-search-input {
  width: 100%;
  padding: 0.5rem 1rem 0.5rem 2.25rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background-color: var(--bg-main);
  color: var(--text-main);
  font-size: 0.8125rem;
  transition: all 0.2s ease;
}

.topbar-search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.topbar-search-wrapper .search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 16px;
  height: 16px;
}

.topbar-search-wrapper .search-icon svg { width: 16px; height: 16px; }

/* Theme Toggle Button */
.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background-color: var(--bg-main);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
  background-color: var(--bg-subtle);
  color: var(--primary);
}

.theme-icon { display: flex; align-items: center; justify-content: center; }
.theme-icon svg { width: 18px; height: 18px; }
html[data-theme="light"] .moon-icon { display: none; }
html[data-theme="dark"] .sun-icon { display: none; }

/* Topbar User Pill */
.topbar-user-pill {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  padding: 0.35rem 0.75rem 0.35rem 0.35rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background-color: var(--bg-main);
  transition: all 0.2s ease;
}

.topbar-user-pill:hover {
  border-color: var(--primary);
}

.user-avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.user-avatar-sm img { width: 100%; height: 100%; object-fit: cover; }

.user-details-sm {
  display: flex;
  flex-direction: column;
}

.user-name-sm {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.user-role-badge {
  font-size: 0.65rem;
  color: var(--primary);
  font-weight: 700;
}

/* Main Content Body */
.admin-content {
  padding: 2rem;
  flex: 1;
}

/* Alert Banner */
.alert-banner {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.alert-banner.success {
  background-color: var(--accent-emerald-light);
  color: var(--accent-emerald);
}

.alert-banner.error {
  background-color: var(--accent-rose-light);
  color: var(--accent-rose);
}

/* Stat Cards V2 Grid */
.overview-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.stat-card-v2 {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.stat-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.stat-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-icon-box {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon-box svg { width: 20px; height: 20px; }
.stat-icon-box.indigo { background-color: var(--primary-light); color: var(--primary); }
.stat-icon-box.emerald { background-color: var(--accent-emerald-light); color: var(--accent-emerald); }
.stat-icon-box.cyan { background-color: var(--accent-cyan-light); color: var(--accent-cyan); }
.stat-icon-box.rose { background-color: var(--accent-rose-light); color: var(--accent-rose); }

.stat-value {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.stat-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.stat-subtext {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Badges */
.badge-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.badge-pill.emerald { background-color: var(--accent-emerald-light); color: var(--accent-emerald); }
.badge-pill.amber { background-color: var(--accent-amber-light); color: var(--accent-amber); }
.badge-pill.rose { background-color: var(--accent-rose-light); color: var(--accent-rose); }

/* Dashboard 2 Column Grid */
.dashboard-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.admin-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.card-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

.card-subtitle {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Chart Container */
.chart-container {
  width: 100%;
  margin-top: 1rem;
}

.chart-svg {
  width: 100%;
  height: 160px;
}

.chart-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Attention List */
.attention-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.attention-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background-color: var(--bg-main);
}

.attention-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background-color: var(--accent-amber-light);
  color: var(--accent-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.attention-icon svg { width: 18px; height: 18px; }

.attention-info { flex: 1; }

.attention-title {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-main);
}

.attention-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.empty-widget-msg {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.empty-widget-msg svg { width: 32px; height: 32px; color: var(--accent-emerald); }

/* Activity Feed */
.activity-feed-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.activity-feed-item {
  display: flex;
  gap: 1rem;
  position: relative;
}

.activity-feed-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--primary);
  margin-top: 0.35rem;
  flex-shrink: 0;
}

.activity-feed-title {
  font-size: 0.875rem;
  color: var(--text-main);
}

.activity-feed-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.activity-feed-time {
  font-size: 0.72rem;
  color: var(--text-light);
  margin-top: 0.15rem;
}

/* Comparison Bars */
.comparison-bars-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comparison-bar-item { display: flex; flex-direction: column; gap: 0.35rem; }

.comparison-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
}

.progress-track {
  height: 10px;
  background-color: var(--bg-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

/* Permission Row */
.perm-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.perm-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.perm-icon svg { width: 16px; height: 16px; }
.perm-icon.emerald { background-color: var(--accent-emerald-light); color: var(--accent-emerald); }

/* Avatar Circle LG */
.avatar-circle-lg {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: var(--primary);
  color: #ffffff;
  font-size: 1.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.avatar-circle-lg img { width: 100%; height: 100%; object-fit: cover; }

/* Admin Footer */
.admin-footer {
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--border-light);
  background-color: var(--bg-card);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-separator { opacity: 0.4; }

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
}

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

.version-badge {
  font-weight: 600;
  color: var(--text-light);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .dashboard-grid-2col { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }

  .admin-sidebar.active {
    transform: translateX(0);
  }

  .sidebar-close-btn { display: block; }
  .mobile-toggle-btn { display: block; }
  .admin-main-wrapper { margin-left: 0; }
  .topbar-search-wrapper { width: 180px; }
}

@media (max-width: 600px) {
  .admin-topbar { padding: 0 1rem; }
  .admin-content { padding: 1rem; }
  .topbar-welcome { display: none; }
  .topbar-search-wrapper { width: 140px; }
}




/* ========================================================================== 
   Public landing redesign — recruitment portal inspired
   ========================================================================== */
.public-directory-page {
  background: #f7f8f6;
  min-height: 70vh;
}

.directory-content { padding-top: 3rem; padding-bottom: 4rem; }

.directory-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.6rem;
}

.directory-toolbar h2 {
  margin: 0;
  font-size: clamp(1.55rem, 2.3vw, 2.2rem);
  line-height: 1.1;
  color: #132019;
  letter-spacing: -.03em;
}

.directory-search { max-width: 360px; }
.directory-search .search-input {
  background: #fff;
  border-radius: 10px;
  border-color: #d9e0dc;
  box-shadow: none;
}
.directory-search .search-input:focus {
  border-color: #315d49;
  box-shadow: 0 0 0 3px rgba(49,93,73,.12);
}

.public-directory-page .projects-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
  margin-bottom: 0;
}

.public-directory-page .project-card {
  background: #fff;
  border: 1px solid #dfe5e1;
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.public-directory-page .project-card:hover {
  transform: translateY(-3px);
  border-color: #bfcac4;
  box-shadow: 0 14px 28px rgba(20,42,32,.08);
}

.public-directory-page .project-card.featured::before { display: none; }

.project-card-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #e8eeea;
  overflow: hidden;
  text-decoration: none;
}

.project-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .28s ease;
}

@media (hover:hover) and (pointer:fine) {
  .project-card:hover .project-card-media img { transform: scale(1.025); }
}

.project-media-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #315d49;
  background: linear-gradient(135deg,#eaf0ec,#dce7e0);
}
.project-media-placeholder svg { width: 48px; height: 48px; }

.project-card-media .status-badge {
  position: absolute;
  top: .8rem;
  right: .8rem;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  box-shadow: 0 3px 12px rgba(0,0,0,.08);
}

.featured-badge {
  position: absolute;
  left: .8rem;
  top: .8rem;
  padding: .3rem .62rem;
  border-radius: 999px;
  background: #10231c;
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
}

.project-card-content {
  padding: 1.25rem 1.25rem 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.public-directory-page .project-title {
  margin: 0 0 .6rem;
  color: #142019;
  font-size: 1.12rem;
  font-weight: 750;
  line-height: 1.28;
  letter-spacing: -.015em;
}

.public-directory-page .project-desc {
  margin: 0 0 1.15rem;
  color: #5f6d65;
  font-size: .88rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-open-link {
  margin-top: auto;
  padding-top: .9rem;
  border-top: 1px solid #e7ebe8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  color: #214d3b;
  font-size: .84rem;
  font-weight: 750;
  text-decoration: none;
}
.project-open-link svg { width: 17px; height: 17px; }
.project-open-link:hover { color: #0f2f22; }

/* Hide legacy category UI on public cards even if older markup is cached. */
.public-directory-page .category-tag,
.public-directory-page .category-pills { display: none !important; }

/* Keep card section readable even when a legacy custom body background is selected. */
.public-directory-page .directory-content {
  background: #f7f8f6;
}

@media (max-width: 1020px) {
  .public-directory-page .projects-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 680px) {
  .directory-content { padding-top: 2rem; }
  .directory-toolbar { align-items: stretch; flex-direction: column; }
  .directory-search { max-width: none; }
  .public-directory-page .projects-grid { grid-template-columns: 1fr; gap: 1rem; }
}

/* Admin-managed public landing theme */
body.public-site .public-directory-page {
  background: transparent;
  color: var(--landing-text, #142019);
}
body.public-site .directory-toolbar h2,
body.public-site .public-directory-page .project-title {
  color: var(--landing-text, #142019);
}
body.public-site .section-kicker,
body.public-site .public-directory-page .project-desc {
  color: var(--landing-muted, #5f6d65);
}
body.public-site .public-directory-page .project-card,
body.public-site .directory-search .search-input {
  background: var(--landing-card, #ffffff);
}
body.public-site .project-open-link,
body.public-site .project-media-placeholder {
  color: var(--landing-accent, #214d3b);
}
body.public-site .directory-search .search-input:focus {
  border-color: var(--landing-accent, #214d3b);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--landing-accent, #214d3b) 16%, transparent);
}
body.public-site .public-directory-page .directory-content {
  background: transparent;
}

/* Settings page: compact theme color controls */
.landing-color-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  margin-top: 1rem;
}
.landing-color-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .75rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-main);
  font-size: .8125rem;
  font-weight: 700;
}
.landing-color-input-wrap { display:flex; align-items:center; gap:.5rem; }
.landing-color-input-wrap input[type="color"] { width:34px; height:34px; padding:2px; border:1px solid var(--border-light); border-radius:8px; background:transparent; cursor:pointer; }
.landing-color-input-wrap code { font-size:.72rem; color:var(--text-muted); }
@media (max-width: 700px) {
  .landing-color-grid { grid-template-columns: 1fr; }
}


/* Landing background manager fixes */
.public-directory-page .directory-content-wrap { width:100%; }
.public-directory-page .directory-content { background: transparent !important; }
body.public-site .public-directory-page { background: transparent !important; }
.landing-image-preview { margin-top:.7rem; }
.landing-image-preview img { width:100%; max-height:160px; object-fit:cover; border-radius:10px; border:1px solid var(--border-light); display:block; }
.landing-image-preview label { display:flex; align-items:center; gap:.5rem; margin-top:.55rem; color:var(--accent-rose); font-weight:700; font-size:.8rem; }
.project-card-media img { min-height:100%; }
