@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&display=swap');
/* === GLOBAL BACKGROUND (ONLY CHANGE) === */
body {
  background-color: #f2e9dc;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: Arial, sans-serif;
  background: #f4f6f8;
  color: #1f2937;
  line-height: 1.5;
}

/* PUBLIC SITE BASE */
.header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 20px 24px;
  text-align: center;
}

.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 30px;
  color: #111827;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px 20px 44px;
}

.footer {
  text-align: center;
  padding: 24px 20px 28px;
  font-size: 12px;
  color: #6b7280;
}

/* ADMIN */
.admin-body {
  background: #f4f6f8;
  color: #1f2937;
}

.admin-header-shell {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 20;
}

.admin-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 22px;
}

.admin-brand {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #111827;
}

.admin-brand-photo {
  color: #111827;
}

.admin-brand-eze {
  color: #2563eb;
}

.admin-brand-admin {
  margin-left: 10px;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #6b7280;
  vertical-align: middle;
}

.admin-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 26px 22px 40px;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 18px;
}

.admin-topbar-left h1 {
  font-size: 34px;
  line-height: 1.1;
  color: #111827;
  margin-bottom: 4px;
}

.admin-topbar-left p {
  color: #6b7280;
  font-size: 15px;
}

.admin-topbar-right {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-nav-btn,
.admin-btn {
  appearance: none;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
  text-decoration: none;
}

.admin-nav-btn:hover,
.admin-btn:hover {
  transform: translateY(-1px);
}

.admin-nav-btn {
  padding: 11px 14px;
  background: #ffffff;
  color: #111827;
  border: 1px solid #d1d5db;
}

.admin-nav-btn-active {
  background: #111827;
  color: #ffffff;
  border-color: #111827;
}

.admin-stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.admin-stat-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.admin-stat-label {
  color: #6b7280;
  font-size: 13px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-stat-value {
  color: #111827;
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}

.admin-main-panel {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

#adminGalleryList {
  width: 100%;
  min-height: 220px;
}

/* BLOCKS */
.admin-page-block {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.admin-block-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-block-header h2 {
  font-size: 28px;
  line-height: 1.1;
  color: #111827;
  margin-bottom: 4px;
}

.admin-block-header p {
  color: #6b7280;
  font-size: 14px;
}

.admin-header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-btn {
  padding: 11px 14px;
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-btn:disabled,
.admin-nav-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.admin-btn-primary {
  background: #111827;
  color: #ffffff;
}

.admin-btn-primary:hover {
  background: #1f2937;
}

.admin-btn-secondary {
  background: #e5e7eb;
  color: #111827;
  border: 1px solid #d1d5db;
}

.admin-btn-secondary:hover {
  background: #dfe3e8;
}

.admin-btn-danger {
  background: #dc2626;
  color: #ffffff;
}

.admin-btn-danger:hover {
  background: #b91c1c;
}

/* GALLERY LIST */
.admin-gallery-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-gallery-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.admin-gallery-row-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-gallery-row-title {
  font-size: 18px;
  font-weight: 800;
  color: #111827;
}

.admin-gallery-row-meta {
  font-size: 13px;
  color: #6b7280;
}

.admin-gallery-row-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* SETTINGS */
.admin-settings-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}

.admin-settings-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.admin-settings-card label,
.admin-field-group label {
  color: #374151;
  font-size: 14px;
  font-weight: 700;
}

.admin-settings-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}

.admin-settings-actions .admin-btn {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
}

.admin-settings-card input[type="text"],
.admin-settings-card input[type="number"],
.admin-settings-card input[type="email"],
.admin-field-group input[type="text"],
.admin-field-group input[type="number"],
#adminGalleryList input[type="text"],
#adminGalleryList input[type="number"],
#adminGalleryList input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
  font-size: 15px;
  outline: none;
}

.admin-settings-card input:focus,
.admin-field-group input:focus,
#adminGalleryList input:focus {
  border-color: #2563eb;
}

/* PHOTO GRID */
.admin-photo-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.admin-photo-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  overflow: hidden;
}

.admin-photo-thumb {
  aspect-ratio: 1 / 1;
  background: #f3f4f6;
  overflow: hidden;
}

.admin-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 14px;
}

.admin-photo-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-photo-title {
  font-size: 22px;
  line-height: 1.1;
  font-weight: 800;
  color: #111827;
}

.admin-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #111827;
  font-size: 14px;
  font-weight: 700;
}

.admin-checkbox-row input[type="checkbox"] {
  transform: translateY(1px);
}

/* TABLES */
.admin-table-wrap {
  overflow: auto;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: top;
  font-size: 14px;
}

.admin-table thead th {
  background: #f8fafc;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 12px;
}

.admin-table tbody td {
  color: #111827;
}

/* MESSAGES */
.admin-message-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 18px;
}

.admin-error-card {
  border-color: #fca5a5;
}

.admin-message-title {
  font-size: 20px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 10px;
}

.admin-message-text {
  color: #111827;
  font-size: 14px;
}

.admin-message-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #111827;
  font-size: 14px;
}

.admin-muted-note {
  margin-top: 12px;
  color: #6b7280;
  font-size: 13px;
}

.admin-empty-state {
  padding: 18px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  color: #6b7280;
}

.admin-form-block {
  max-width: 720px;
}

/* UPLOAD PROGRESS */
.upload-progress-wrap {
  margin-top: 16px;
}

.upload-progress-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 14px;
  color: #475569;
}

.upload-progress-bar {
  width: 100%;
  height: 12px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid #d1d5db;
}

.upload-progress-fill {
  height: 100%;
  background: #2563eb;
  border-radius: 999px;
  transition: width 0.2s ease;
}

/* LEGACY PUBLIC STYLES LEFT SAFE */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.photo-grid,
.gallery-photo-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.gallery-card,
.photo-card,
.checkout-box,
.cart-box,
.welcome-card {
  background: #ffffff;
  color: #111827;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .admin-photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .admin-stats-row,
  .admin-settings-row {
    grid-template-columns: 1fr;
  }

  .admin-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-topbar {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 640px) {
  .admin-header-inner,
  .admin-shell {
    padding-left: 14px;
    padding-right: 14px;
  }

  .admin-photo-grid {
    grid-template-columns: 1fr;
  }

  .admin-header-actions,
  .admin-topbar-right,
  .admin-gallery-row,
  .admin-gallery-row-actions,
  .admin-settings-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-btn,
  .admin-nav-btn {
    width: 100%;
  }

  .admin-topbar-left h1 {
    font-size: 28px;
  }

  .admin-block-header h2 {
    font-size: 24px;
  }
}