/* ========================================================
   K&R B Creations - Stylesheet
   Theme: Warm Artisan Organic Modern with Dandelion Motif
   ======================================================== */

:root {
  --bg-primary: #fcfbf8;
  --bg-secondary: #f4f0e8;
  --bg-card: #ffffff;
  --bg-dark: #1e2220;
  
  --text-main: #2b302d;
  --text-muted: #6e7671;
  --text-light: #fdfdfc;
  
  --accent-gold: #c9933b;
  --accent-sage: #536b5d;
  --accent-terracotta: #c26d53;
  --accent-aqua: #d9f3f3;
  --accent-espresso: #6e5049;
  --accent-soft: rgba(83, 107, 93, 0.1);

  --border-color: #e6dfd3;
  --border-focus: #536b5d;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(43, 48, 45, 0.08);
  --shadow-lg: 0 16px 40px rgba(43, 48, 45, 0.12);

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: clip;
  position: relative;
}

/* Background Animated Canvas */
#seedCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
}

/* Layout Utilities */
.hero-section, .gallery-section, .about-section, .custom-section, .contact-section, .footer {
  position: relative;
  z-index: 2;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--accent-sage);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #41554a;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(83, 107, 93, 0.3);
}

.btn-outline {
  border-color: var(--accent-sage);
  color: var(--accent-sage);
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--accent-sage);
  color: #fff;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: #ede7dc;
  color: var(--text-main);
}

.btn-secondary:hover {
  background-color: #e2dacd;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

/* Badge Pill */
.badge-pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background-color: var(--accent-soft);
  color: var(--accent-sage);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(252, 251, 248, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 24px;
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-logo-img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(83, 107, 93, 0.18);
  border: none;
  background: transparent;
  display: block;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.brand-logo:hover .brand-logo-img {
  transform: rotate(6deg) scale(1.06);
  box-shadow: 0 6px 18px rgba(83, 107, 93, 0.28);
}

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

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.1;
  color: var(--text-main);
}

.brand-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent-sage);
}

.admin-pill {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-weight: 600;
  border: 1px solid #d4ccbd;
}

.admin-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #999;
  transition: background-color 0.3s;
}

.admin-active .admin-dot {
  background-color: #27ae60;
  box-shadow: 0 0 8px #27ae60;
}

/* Admin Banner */
.admin-banner {
  position: sticky;
  top: 96px;
  z-index: 99;
  background: #2a342f;
  color: #fff;
  padding: 12px 24px;
  border-bottom: 2px solid var(--accent-gold);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  pointer-events: auto;
}

.admin-banner.hidden {
  display: none !important;
}

.admin-banner-content {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-badge {
  background: var(--accent-gold);
  color: #1e2220;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.admin-banner p {
  font-size: 0.88rem;
  color: #d1d9d4;
  flex: 1;
  min-width: 250px;
}

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

.admin-banner-actions .btn-outline {
  border-color: #8c9c93;
  color: #d1d9d4;
}

.admin-banner-actions .btn-outline:hover {
  background: #3c4b43;
}

/* Live editable field state */
[contenteditable="true"] {
  outline: 1.5px dashed var(--accent-gold);
  border-radius: 4px;
  padding: 2px 4px;
  background-color: rgba(201, 147, 59, 0.05);
  transition: background-color 0.2s;
}

[contenteditable="true"]:focus {
  background-color: rgba(201, 147, 59, 0.12);
  outline: 2px solid var(--accent-gold);
}

/* Hero Section */
.hero-section {
  padding: 90px 24px 70px;
  text-align: center;
  background: radial-gradient(circle at 50% 25%, rgba(217, 243, 243, 0.35) 0%, rgba(244, 240, 232, 0.45) 50%, rgba(252, 251, 248, 0) 75%);
}

.hero-content {
  max-width: 820px;
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text-main);
  margin: 20px 0 18px;
  letter-spacing: -0.01em;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 660px;
  margin: 0 auto 32px;
  font-weight: 400;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Gallery Section */
.gallery-section {
  max-width: 1240px;
  margin: 40px auto 100px;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 600;
  color: var(--text-main);
}

.section-title.text-left {
  text-align: left;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 8px;
}

.filter-tabs {
  display: inline-flex;
  gap: 8px;
  background: var(--bg-secondary);
  padding: 6px;
  border-radius: 999px;
  margin-top: 28px;
  border: 1px solid var(--border-color);
}

.filter-btn {
  border: none;
  background: transparent;
  padding: 8px 22px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn.active {
  background: #ffffff;
  color: var(--accent-sage);
  box-shadow: var(--shadow-sm);
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.art-card {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

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

.art-card-img-wrapper {
  position: relative;
  width: 100%;
  padding-top: 75%; /* 4:3 aspect ratio */
  overflow: hidden;
  background: #eee;
  cursor: pointer;
}

.art-card-img-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.art-card:hover .art-card-img-wrapper img {
  transform: scale(1.04);
}

.art-tag-category {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-sage);
}

.art-status-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(30, 34, 32, 0.85);
  backdrop-filter: blur(6px);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
}

.art-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.art-card-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.art-card-medium {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.art-card-desc {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

.art-card-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid #f0eae1;
  padding-top: 14px;
}

.art-card-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.art-card-price-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.art-card-price {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-main);
}

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

.art-actions .btn {
  flex: 1;
  text-align: center;
  justify-content: center;
}

.art-actions .btn-external-buy {
  flex: 1.2;
}

.btn-external-buy {
  background-color: var(--accent-terracotta);
  color: #ffffff !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(184, 115, 87, 0.25);
}

.btn-external-buy:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(184, 115, 87, 0.35);
}

.modal-external-buy-btn {
  background-color: var(--accent-terracotta);
  color: #ffffff !important;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  box-shadow: 0 3px 10px rgba(184, 115, 87, 0.3);
}

.modal-external-buy-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(184, 115, 87, 0.4);
}

.delete-art-btn {
  background: #fdf2f0;
  color: var(--accent-terracotta);
  border: 1px solid #fad2cb;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.delete-art-btn:hover {
  background: var(--accent-terracotta);
  color: #fff;
}

/* About Section */
.about-section {
  background-color: var(--bg-secondary);
  padding: 100px 24px;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.about-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.dandelion-motif-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 48px 32px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.motif-logo-img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  box-shadow: 0 12px 32px rgba(83, 107, 93, 0.22);
  border: none;
  background: transparent;
  display: block;
  margin-left: auto;
  margin-right: auto;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.dandelion-motif-card:hover .motif-logo-img {
  transform: scale(1.04) rotate(3deg);
  box-shadow: 0 16px 36px rgba(83, 107, 93, 0.28);
}

.motif-text h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--text-main);
}

.motif-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

.about-content p {
  margin: 16px 0;
  color: #444;
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-highlights {
  display: flex;
  gap: 28px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.highlight-item {
  display: flex;
  flex-direction: column;
}

.highlight-num {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--accent-sage);
  line-height: 1;
}

.highlight-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Custom Work Banner */
.custom-section {
  max-width: 1100px;
  margin: 80px auto;
  padding: 0 24px;
}

.custom-box {
  background: linear-gradient(135deg, #37463f 0%, #202b26 100%);
  color: #ffffff;
  border-radius: 20px;
  padding: 50px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  box-shadow: var(--shadow-lg);
  flex-wrap: wrap;
}

.custom-text h3 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.custom-text p {
  color: #d1dad5;
  max-width: 600px;
  font-size: 1rem;
}

.custom-box .btn-primary {
  background-color: var(--accent-gold);
  color: #1e2220;
}

.custom-box .btn-primary:hover {
  background-color: #dfaa4d;
}

/* Contact Section */
.contact-section {
  max-width: 760px;
  margin: 0 auto 100px;
  padding: 0 24px;
}

.contact-card {
  background: var(--bg-card);
  padding: 48px;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.contact-header {
  text-align: center;
  margin-bottom: 32px;
}

.contact-header p {
  color: var(--text-muted);
  margin-top: 8px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

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

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-group input, 
.form-group select, 
.form-group textarea {
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  font-family: inherit;
  font-size: 0.95rem;
  background-color: #fff;
  color: var(--text-main);
  transition: border-color 0.2s;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(83, 107, 93, 0.15);
}

/* Footer */
.footer {
  background-color: var(--bg-dark);
  color: #a4aba7;
  padding: 60px 24px 40px;
  text-align: center;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-logo-img {
  width: 115px;
  height: 115px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  display: block;
}

.footer-name {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: #fff;
  display: block;
  text-align: center;
}

.footer-tagline {
  font-size: 0.9rem;
  margin-top: 4px;
  text-align: center;
}

.footer-admin-note {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  color: #7b8480;
}

.footer-link-btn {
  background: transparent;
  border: none;
  color: #c9933b;
  text-decoration: underline;
  cursor: pointer;
  font-size: inherit;
}

.copyright {
  font-size: 0.8rem;
  margin-top: 10px;
  color: #636b67;
}

/* Modals */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.modal.hidden {
  display: none !important;
  opacity: 0;
  pointer-events: none;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 22, 20, 0.65);
  backdrop-filter: blur(6px);
}

.modal-card {
  position: relative;
  background: var(--bg-card);
  border-radius: 20px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  z-index: 2;
  animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 1.8rem;
  line-height: 1;
  border: none;
  background: rgba(0,0,0,0.06);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 5;
}

.modal-close:hover {
  background: rgba(0,0,0,0.12);
}

.modal-body {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}

.modal-media-col {
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.modal-media-col img {
  width: 100%;
  height: 100%;
  max-height: 550px;
  object-fit: cover;
}

.modal-info-col {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
}

.modal-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  line-height: 1.2;
  margin-bottom: 10px;
}

.modal-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-sage);
  margin-bottom: 16px;
}

.modal-desc {
  font-size: 0.98rem;
  color: #4a524e;
  line-height: 1.7;
  margin-bottom: 24px;
}

.modal-meta-box {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 16px;
  font-size: 0.88rem;
  margin-bottom: 24px;
}

.meta-row {
  margin-bottom: 6px;
}

.meta-row:last-child {
  margin-bottom: 0;
}

.modal-micro-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
}

/* Upload Modal Customizations */
.upload-modal-card {
  max-width: 680px;
  padding: 32px;
}

.upload-modal-card .modal-header {
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.upload-modal-card .subtext {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Mobile-Friendly Image Uploader Zone */
.image-uploader-zone {
  margin: 18px 0;
  background: #fbf9f5;
  border: 2px dashed #d5cdbe;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  transition: border-color 0.2s, background-color 0.2s;
}

.image-uploader-zone:hover {
  border-color: var(--accent-sage);
  background-color: #f7f3ec;
}

.upload-zone-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-main);
  text-align: left;
}

.file-drop-area {
  position: relative;
  padding: 24px 16px;
  cursor: pointer;
}

.file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.drop-message svg {
  color: var(--accent-sage);
  margin-bottom: 8px;
}

.drop-message p {
  font-size: 1rem;
  color: var(--text-main);
}

.file-hint {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Resizing feedback visualizer */
.resizing-feedback {
  margin-top: 18px;
  padding: 14px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.feedback-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  font-weight: 600;
}

.stat-badge {
  padding: 4px 10px;
  border-radius: 6px;
}

.stat-badge.original {
  background: #f0f0f0;
  color: #666;
}

.stat-badge.optimized {
  background: #e6f4ea;
  color: #137333;
}

.stat-badge.saved {
  background: #feefe3;
  color: #b06000;
}

.preview-thumbnail img {
  max-width: 180px;
  max-height: 140px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  border: 1px solid #ddd;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #2b302d;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  animation: slideUp 0.3s ease;
}

.toast.hidden {
  display: none !important;
}

.hidden {
  display: none !important;
}

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

/* Responsive Breakpoints */
@media (max-width: 860px) {
  .about-container {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .modal-body {
    grid-template-columns: 1fr;
  }

  .modal-media-col {
    min-height: 260px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-links {
    gap: 12px;
  }
  
  .nav-links a {
    display: none; /* Keep admin button and brand */
  }

  .hero-section {
    padding: 60px 18px 40px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .custom-box {
    padding: 32px 24px;
    text-align: center;
    justify-content: center;
  }

  .contact-card {
    padding: 28px 18px;
  }

  .admin-banner {
    top: 76px;
    padding: 10px 16px;
  }
}

/* ========================================================
   Admin Dashboard & Management Extensions
   ======================================================== */

.wide-modal-card {
  max-width: 960px;
  padding: 32px;
}

.login-modal-card {
  max-width: 440px;
  padding: 36px 32px;
}

.login-default-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 14px;
}

.login-default-hint code {
  background: #eee;
  padding: 2px 6px;
  border-radius: 4px;
  color: #333;
}

.checkbox-group {
  margin: 12px 0;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  cursor: pointer;
}

.field-hint {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 4px;
  margin-left: 24px;
}

/* Catalog Table */
.catalog-table-wrapper {
  overflow-x: auto;
  margin-top: 16px;
}

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

.admin-table th {
  background-color: var(--bg-secondary);
  padding: 12px 14px;
  border-bottom: 2px solid var(--border-color);
  font-weight: 600;
  color: var(--text-main);
}

.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.table-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.action-buttons {
  display: flex;
  gap: 6px;
}

.btn-table-edit {
  background-color: #eaf1ed;
  color: var(--accent-sage);
  border: 1px solid #c9d8ce;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  cursor: pointer;
  font-weight: 600;
}

.btn-table-edit:hover {
  background-color: var(--accent-sage);
  color: #fff;
}

.btn-table-del {
  background-color: #fdf2f0;
  color: var(--accent-terracotta);
  border: 1px solid #fad2cb;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  cursor: pointer;
  font-weight: 600;
}

.btn-table-del:hover {
  background-color: var(--accent-terracotta);
  color: #fff;
}

/* Inquiries List */
.inquiries-list-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 60vh;
  overflow-y: auto;
  margin-top: 16px;
}

.inquiry-card {
  background: #fbf9f5;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 18px 20px;
}

.inquiry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.inquiry-name {
  font-weight: 700;
  color: var(--text-main);
  font-size: 1rem;
}

.inquiry-email {
  color: var(--accent-sage);
  font-size: 0.85rem;
  text-decoration: none;
}

.inquiry-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.inquiry-category {
  display: inline-block;
  background: #eaf1ed;
  color: var(--accent-sage);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.inquiry-message {
  font-size: 0.92rem;
  color: #444;
  line-height: 1.6;
  white-space: pre-wrap;
  background: #ffffff;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #eee;
}

.empty-inquiries {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  font-style: italic;
}

/* Inquiries Filter Tabs & Status Bar */
.inquiry-filter-bar {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.inq-tab {
  padding: 8px 16px;
  font-size: 0.86rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--text-muted);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.inq-tab:hover {
  background: #f8f6f0;
  color: var(--text-main);
  border-color: #ccc;
}

.inq-tab.active {
  background: var(--accent-sage);
  color: #ffffff;
  border-color: var(--accent-sage);
  box-shadow: 0 2px 6px rgba(78, 93, 76, 0.25);
}

.inquiry-status-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.inquiry-status-badge.status-new {
  background: #e8f0fe;
  color: #1a73e8;
  border: 1px solid #c2e7ff;
}

.inquiry-status-badge.status-contacted {
  background: #e6f4ea;
  color: #137333;
  border: 1px solid #ceead6;
}

.inquiry-status-badge.status-waiting {
  background: #fef7e0;
  color: #b06000;
  border: 1px solid #feefc3;
}

.inquiry-status-badge.status-archived {
  background: #f1f3f4;
  color: #5f6368;
  border: 1px solid #dadce0;
}

.inquiry-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-color);
  flex-wrap: wrap;
  gap: 10px;
}

.inquiry-status-selector-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inquiry-status-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.inquiry-status-select {
  font-size: 0.82rem;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: #fff;
  color: var(--text-main);
  font-weight: 500;
  cursor: pointer;
}

.inquiry-btn-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-archive {
  background: #fff;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 4px 10px;
  font-size: 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

.btn-archive:hover {
  background: #f1f3f4;
  color: var(--text-main);
  border-color: #bbb;
}

.btn-restore {
  background: #e6f4ea;
  border: 1px solid #ceead6;
  color: #137333;
  padding: 4px 10px;
  font-size: 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
}

.btn-restore:hover {
  background: #ceead6;
}

.btn-delete-inq {
  background: transparent;
  border: none;
  color: #c5221f;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s;
}

.btn-delete-inq:hover {
  background: #fce8e6;
}

/* User Management Styling */
.user-management-section {
  background: #fbf9f5;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
}

.user-management-section h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
}

.user-form-inline {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* SMTP Modal Customizations */
.smtp-modal-card {
  max-width: 660px;
  width: 100%;
  padding: 36px 32px;
}

.smtp-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.95rem;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--accent-sage);
}

.field-hint {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.smtp-actions-row {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.smtp-test-status {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  margin-top: 8px;
}

.smtp-test-status.success {
  background-color: #e6f4ea;
  color: #137333;
  border: 1px solid #ceead6;
}

.smtp-test-status.error {
  background-color: #fce8e6;
  color: #c5221f;
  border: 1px solid #fad2cf;
}
