:root {
  --primary-color: #5b3a2a;
  --accent-color: #c17b5a;
  --accent-light: #f4e8e0;
  --background: #fff9f4;
  --surface: #ffffff;
  --border: #e8d4c8;
  --text: #2b2b2b;
  --muted: #5d4b42;
  --shadow: 0 16px 40px rgba(43, 43, 43, 0.08);
  --radius: 18px;
}

:root {
  --bs-primary: #5b3a2a;
  --bs-primary-rgb: 91, 58, 42;
  --bs-secondary: #c17b5a;
  --bs-success: #27ae60;
  --bs-info: #3498db;
  --bs-warning: #f39c12;
  --bs-body-color: #2b2b2b;
  --bs-body-bg: #fff9f4;
  --bs-border-color: #e8d4c8;
  --bs-border-radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--background);
  color: var(--text);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* ===== NAVIGATION ===== */
.navbar-custom {
  background: rgba(255, 249, 244, 0.98) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(88, 67, 56, 0.12);
}

.navbar-brand {
  font-size: 1.5rem;
  color: var(--primary-color) !important;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.navbar-nav .nav-link {
  color: var(--text) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link:hover {
  color: var(--accent-color) !important;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
  width: 30px;
}

/* ===== HERO SECTION ===== */
.hero-section {
  background: linear-gradient(135deg, rgba(193, 123, 90, 0.08) 0%, rgba(91, 58, 42, 0.05) 100%);
  padding: 80px 0 !important;
  border-bottom: 2px solid rgba(193, 123, 90, 0.2);
}

.hero-section h1 {
  color: var(--primary-color);
  font-weight: 700;
  line-height: 1.1;
}

.hero-section .lead {
  color: var(--muted);
  line-height: 1.8;
}

/* ===== ABOUT HERO BACKGROUND ===== */
.about-hero {
  background-image: url('images/pottery.jpg');
  background-size: cover;
  background-position: center;
  padding: 80px 0;
  color: #fff;
  position: relative;
}

.about-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  border-bottom: 2px solid rgba(193, 123, 90, 0.2);
  z-index: 0;
}

.about-hero .container {
  position: relative;
  z-index: 1;
}

/* Make About text readable against the background */
.about-hero .lead,
.about-hero .text-muted {
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

/* Ensure footer sits at bottom when content is short */
.site-footer {
  margin-top: auto;
  background: #222;
  color: #fff;
  padding: 24px 0;
}

.card {
  min-height: 620px; /* Ensures both sides stretch properly */
}
/* Ensure cards inside the about hero remain light and readable */
.about-hero .card {
  background: rgba(255,255,255,0.98);
  color: var(--text);
}

.about-hero .card .fw-bold {
  color: var(--primary-color);
}

.about-hero .card .text-muted {
  color: var(--muted) !important;
  text-shadow: none !important;
}

/* Auth/login left panel background */
.auth-left {
  background-image: linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.45)), url('images/images.jpg') !important;
  background-size: cover;
  background-position: center center;
  display: flex;
  align-items: center;
  position: relative;
}

/* subtle dark gradient at the bottom to improve readability */
.auth-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.65));
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.form-side {
  background: #fffaf5;
  display: flex;
  flex-direction: column;
}

/* On wide screens push the hero content lower in the panel */
@media (min-width: 992px) {
  .auth-left {
    justify-content: flex-end;
    padding-bottom: 12rem;
  }
  .auth-left .hero-content {
    transform: translateY(45%);
    margin-bottom: 3rem;
    transition: transform 0.45s ease;
  }
}

@media (max-width: 767.98px) {
  .auth-left {
    min-height: 300px;
    padding: 3rem 1.5rem;
  }
}

/* Ensure the left column stretches to match the card height so background covers full area */
.card .row.g-0 {
  align-items: stretch;
}

/* Allow hero content (CTA) to overflow the card so it remains visible
   when translated lower for visual layout. This intentionally overrides
   the Bootstrap `overflow-hidden` utility for this card layout only. */
.card.overflow-hidden {
  overflow: visible;
}

.auth-left h2, .auth-left p, .auth-left ul {
  color: rgba(255,255,255,0.95);
}

/* ===== FEATURES SECTION ===== */
.features-section {
  background: linear-gradient(to bottom, #f9f6f2, #fff9f4) !important;
}

.features-section h2 {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 3rem;
}

.feature-card {
  background: white;
  border: 2px solid var(--border);
  transition: all 0.3s ease;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-color);
  box-shadow: 0 20px 40px rgba(193, 123, 90, 0.15);
}

.feature-icon {
  font-size: 3rem;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-card h5 {
  color: var(--primary-color);
}

.feature-card p {
  font-size: 0.95rem;
}

/* ===== SERVICES SECTION ===== */
.services-section {
  background: white;
  padding: 60px 0 !important;
}

.services-section h2 {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 3rem;
}

.service-item {
  background: white;
  border: 2px solid var(--border) !important;
  transition: all 0.3s ease;
}

.service-item:hover {
  border-color: var(--accent-color) !important;
  background: rgba(193, 123, 90, 0.05) !important;
  transform: translateX(5px);
}

.service-item h5 {
  color: var(--primary-color);
}

/* ===== FORMS SECTION ===== */
.forms-section {
  padding: 60px 0 !important;
  background: linear-gradient(to bottom, #f9f6f2, #fff9f4) !important;
}

.forms-section h2 {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 3rem;
}

/* ===== ADMIN SECTION ===== */
.admin-section {
  background: linear-gradient(135deg, #2b2b2b 0%, #1a1a1a 100%) !important;
}

.admin-section h2 {
  color: #c17b5a;
  font-weight: 700;
  margin-bottom: 3rem;
}

.nav-dark {
  border-bottom-color: rgba(255, 255, 255, 0.2) !important;
}

.nav-dark .nav-link {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.nav-dark .nav-link:hover {
  border-color: #c17b5a !important;
  color: #c17b5a !important;
}

.table-dark {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.table-dark thead {
  border-color: #c17b5a !important;
}

.table-dark th {
  color: #c17b5a;
  font-weight: 700;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.table-dark td {
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #ddd;
}

.nav-tabs {
  border-bottom: 2px solid var(--border);
}

.nav-tabs .nav-link {
  color: var(--muted) !important;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}

/* ===== SECTION VISIBILITY ===== */
#features, #services, #forms, #contact, #admin {
  display: none;
}

#home {
  display: block;
}

.product-img {
  height: 220px;
  object-fit: cover;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}

.card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-body .fw-bold {
  margin-bottom: 0.75rem;
}

.nav-tabs .nav-link:hover {
  color: var(--accent-color) !important;
  border-bottom-color: var(--accent-color);
}

.nav-tabs .nav-link.active {
  color: var(--primary-color) !important;
  background: none;
  border-bottom-color: var(--primary-color);
}

.form-card {
  border: none !important;
  border-radius: 20px !important;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
}

/* Hero content over the auth-left image */
.auth-left .hero-content {
  position: relative;
  z-index: 2;
  max-width: 520px;
}

.auth-left .hero-content .display-5 {
  color: #fff;
  text-shadow: 0 6px 18px rgba(0,0,0,0.55);
  font-size: 2.25rem;
}

.auth-left .hero-content .lead {
  color: rgba(255,255,255,0.95);
  text-shadow: 0 4px 12px rgba(0,0,0,0.45);
}

.cta-btn {
  background: rgba(255,255,255,0.95);
  color: var(--primary-color);
  font-weight: 700;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(91,58,42,0.12);
}

/* Make form column clearer and the headings more visible */
.col-md-5 .card-body {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,250,247,0.98));
}

.col-md-5 {
  background: #fffaf5;
}

/* Sign-up anchor spacing */
#signup {
  scroll-margin-top: 120px;
}

.form-card .card-body {
  padding: 3rem 2.5rem !important;
}

.form-card .card-title {
  color: var(--primary-color);
  border-bottom: 2px solid var(--accent-light);
  padding-bottom: 1rem;
}

.form-label {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.form-control,
.form-select {
  border: 1.5px solid var(--border) !important;
  border-radius: 12px !important;
  padding: 0.875rem 1rem !important;
  background: #fff !important;
  color: var(--text) !important;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--accent-color) !important;
  box-shadow: 0 0 0 5px rgba(193, 123, 90, 0.1) !important;
}

.form-control::placeholder {
  color: #aaa;
}

.form-control-lg,
.form-select-lg {
  padding: 1rem 1.2rem !important;
  font-size: 1.05rem;
}

.form-check-input {
  width: 1.3em;
  height: 1.3em;
  border: 1.5px solid var(--border);
  border-radius: 0.3rem;
  cursor: pointer;
}

.form-check-input:checked {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

.form-check-input:focus {
  border-color: var(--accent-color) !important;
  box-shadow: 0 0 0 3px rgba(193, 123, 90, 0.25) !important;
}

.form-check-label {
  cursor: pointer;
  color: var(--text);
}

.form-check-input-lg {
  width: 1.5em !important;
  height: 1.5em !important;
}

.form-status {
  border-radius: 12px !important;
  padding: 1rem !important;
  font-weight: 500;
  border: none !important;
  animation: slideIn 0.4s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-primary {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  font-weight: 600;
  padding: 0.7rem 1.5rem;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #4d2f21 !important;
  border-color: #4d2f21 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(91, 58, 42, 0.3) !important;
}

.btn-success {
  background-color: #27ae60 !important;
  border-color: #27ae60 !important;
  font-weight: 600;
}

.btn-success:hover {
  background-color: #229954 !important;
  transform: translateY(-2px);
}

.btn-warning {
  background-color: #f39c12 !important;
  border-color: #f39c12 !important;
  font-weight: 600;
  color: white !important;
}

.btn-warning:hover {
  background-color: #d68910 !important;
  transform: translateY(-2px);
}

.btn-info {
  background-color: #3498db !important;
  border-color: #3498db !important;
  font-weight: 600;
}

.btn-info:hover {
  background-color: #2980b9 !important;
  transform: translateY(-2px);
}

.btn-outline-primary {
  color: var(--primary-color) !important;
  border-color: var(--border) !important;
  background-color: white !important;
  font-weight: 600;
}

.btn-outline-primary:hover {
  background-color: rgba(193, 123, 90, 0.12) !important;
  color: var(--primary-color) !important;
  border-color: var(--accent-color) !important;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 0.875rem 2rem !important;
  font-size: 1.05rem;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  background: linear-gradient(135deg, rgba(193, 123, 90, 0.08) 0%, rgba(91, 58, 42, 0.05) 100%);
  padding: 60px 0 !important;
}

.contact-item {
  padding: 2rem;
  background: white;
  border-radius: 15px;
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.contact-icon {
  font-size: 2.5rem;
  transition: transform 0.3s ease;
}

.contact-item:hover .contact-icon {
  transform: scale(1.15);
}

.contact-item h5 {
  color: var(--primary-color);
}

.contact-item p {
  color: var(--muted);
  margin-bottom: 0;
}

/* ===== FOOTER ===== */
.site-footer {
  background: linear-gradient(135deg, #2b2b2b 0%, #1a1a1a 100%) !important;
  color: white;
  padding: 40px 0 !important;
}

.site-footer h6 {
  color: var(--accent-color);
  font-weight: 700;
}

.site-footer a {
  color: #aaa;
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: var(--accent-color);
}

.site-footer .text-muted {
  color: #888 !important;
}

.site-footer hr {
  border-color: rgba(255, 255, 255, 0.1) !important;
  margin: 2rem 0;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
  .navbar-brand {
    font-size: 1.25rem;
  }

  .hero-section {
    padding: 60px 0 !important;
  }

  .hero-section h1 {
    font-size: 2.5rem;
  }

  .feature-card,
  .service-item,
  .contact-item {
    margin-bottom: 1.5rem;
  }

  .nav-tabs .nav-link {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }

  .form-card .card-body {
    padding: 2rem 1.5rem !important;
  }
}

@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-section .lead {
    font-size: 1rem;
  }

  .features-section h2,
  .services-section h2,
  .forms-section h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }

  .feature-icon,
  .contact-icon {
    font-size: 2.5rem;
  }

  .nav-tabs {
    flex-wrap: wrap;
  }

  .nav-tabs .nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    white-space: nowrap;
  }

  .form-card .card-body {
    padding: 1.5rem 1rem !important;
  }

  .form-label {
    font-size: 0.95rem;
  }

  .btn {
    padding: 0.6rem 1.2rem !important;
    font-size: 0.95rem;
  }

  .contact-item {
    padding: 1.5rem;
  }
}

@media (max-width: 576px) {
  .hero-section h1 {
    font-size: 1.75rem;
  }

  .hero-section .d-flex {
    flex-direction: column !important;
  }

  .hero-section .btn {
    width: 100% !important;
  }

  .feature-card p,
  .service-item p {
    font-size: 0.9rem;
  }

  .nav-tabs {
    border-bottom: 1px solid var(--border);
  }

  .nav-tabs .nav-link {
    padding: 0.5rem 0.5rem;
    font-size: 0.8rem;
  }

  .form-control,
  .form-select {
    padding: 0.75rem 0.875rem !important;
    font-size: 0.95rem;
  }

  .site-footer {
    padding: 2rem 0 !important;
  }

  .site-footer .col-md-4 {
    margin-bottom: 1.5rem;
  }
}

/* ===== UTILITIES ===== */
.text-decoration-none {
  text-decoration: none !important;
}

.rounded-4 {
  border-radius: 1.5rem !important;
}

.shadow-sm {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

.shadow-lg {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1) !important;
}

/* Smooth scrolling for all sections */
section {
  transition: all 0.3s ease;
}

/* Action buttons in tables */
.btn-sm {
  padding: 0.4rem 0.8rem !important;
  font-size: 0.85rem;
}
