/* ═══════════════════════════════════════════════════════════════════════════
   UI POLISH - Professional Web View Styling
   ═════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────
   GLOBAL IMPROVEMENTS
   ───────────────────────────────────────────────────────────────────────── */

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  background: #FBF6F6;
  color: #222;
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
}

/* ─────────────────────────────────────────────────────────────────────────
   BUTTONS - ENHANCED
   ───────────────────────────────────────────────────────────────────────── */

.btn {
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background: linear-gradient(135deg, #E05252 0%, #9A372C 100%);
  border: 0;
  box-shadow: 0 4px 12px rgba(224, 82, 82, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #D63E3E 0%, #8A2A1E 100%);
  box-shadow: 0 8px 20px rgba(224, 82, 82, 0.35);
}

.btn-outline-primary {
  border: 2px solid #E05252;
  color: #E05252;
}

.btn-outline-primary:hover {
  background: #E05252;
  color: white;
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
}

/* ─────────────────────────────────────────────────────────────────────────
   CARDS - ENHANCED SHADOWS & BORDERS
   ───────────────────────────────────────────────────────────────────────── */

.card {
  border: 0;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(18, 38, 63, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(18, 38, 63, 0.12);
  transform: translateY(-2px);
}

.card-body {
  padding: 1.25rem;
}

.card-title {
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.75rem;
}

/* ─────────────────────────────────────────────────────────────────────────
   BADGES - POLISHED
   ───────────────────────────────────────────────────────────────────────── */

.badge {
  padding: 0.5rem 0.75rem;
  font-weight: 600;
  border-radius: 6px;
  display: inline-block;
}

.badge-primary {
  background: linear-gradient(135deg, #E05252 0%, #9A372C 100%);
  color: white;
}

.badge-secondary {
  background: #E8E8E8;
  color: #4a4a4a;
}

/* ─────────────────────────────────────────────────────────────────────────
   FORMS - ENHANCED
   ───────────────────────────────────────────────────────────────────────── */

.form-control,
.form-select {
  border: 1.5px solid #E0E0E0;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.form-control:focus,
.form-select:focus {
  border-color: #E05252;
  box-shadow: 0 0 0 3px rgba(224, 82, 82, 0.1);
}

.form-label {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

/* ─────────────────────────────────────────────────────────────────────────
   PRODUCT CARDS - PREMIUM LOOK
   ───────────────────────────────────────────────────────────────────────── */

.product-card {
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(18, 38, 63, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
  box-shadow: 0 12px 32px rgba(18, 38, 63, 0.16);
  transform: translateY(-4px);
}

.product-card img {
  height: 180px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover img {
  transform: scale(1.05);
}

.product-name {
  font-weight: 700;
  color: #1a1a1a;
  font-size: 1.05rem;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #E05252;
  margin: 0.5rem 0;
}

/* ─────────────────────────────────────────────────────────────────────────
   BAKER CARDS - PROFESSIONAL
   ───────────────────────────────────────────────────────────────────────── */

.baker-card {
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 12px rgba(18, 38, 63, 0.08);
}

.baker-card:hover {
  box-shadow: 0 8px 24px rgba(18, 38, 63, 0.12);
}

.baker-avatar {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.baker-name {
  font-weight: 700;
  color: #1a1a1a;
  font-size: 1.05rem;
}

.baker-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: #9A372C;
}

.baker-rating .bi-star-fill {
  color: #FFB400;
}

/* ─────────────────────────────────────────────────────────────────────────
   MODALS - POLISHED
   ───────────────────────────────────────────────────────────────────────── */

.modal-content {
  border: 0;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
  border-bottom: 1px solid #E0E0E0;
  padding: 1.5rem;
}

.modal-title {
  font-weight: 700;
  color: #1a1a1a;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  border-top: 1px solid #E0E0E0;
  padding: 1rem 1.5rem;
}

/* ─────────────────────────────────────────────────────────────────────────
   ALERTS - ENHANCED
   ───────────────────────────────────────────────────────────────────────── */

.alert {
  border: 0;
  border-radius: 8px;
  border-left: 4px solid;
  padding: 1rem;
}

.alert-success {
  background: #E8F5E9;
  border-left-color: #4CAF50;
  color: #2E7D32;
}

.alert-danger {
  background: #FFEBEE;
  border-left-color: #F44336;
  color: #C62828;
}

.alert-warning {
  background: #FFF3E0;
  border-left-color: #FF9800;
  color: #E65100;
}

.alert-info {
  background: #E3F2FD;
  border-left-color: #2196F3;
  color: #1565C0;
}

/* ─────────────────────────────────────────────────────────────────────────
   NAVIGATION & HEADERS
   ───────────────────────────────────────────────────────────────────────── */

.navbar {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.nav-link {
  font-weight: 600;
  transition: color 0.3s ease;
  color: #555 !important;
}

.nav-link:hover {
  color: #E05252 !important;
}

.nav-link.active {
  color: #E05252 !important;
  border-bottom: 2px solid #E05252;
}

/* ─────────────────────────────────────────────────────────────────────────
   PAGINATION
   ───────────────────────────────────────────────────────────────────────── */

.pagination {
  gap: 0.25rem;
}

.page-link {
  border: 1px solid #E0E0E0;
  border-radius: 6px;
  color: #E05252;
  font-weight: 600;
  transition: all 0.3s ease;
}

.page-link:hover {
  background: #E05252;
  color: white;
  border-color: #E05252;
}

.page-link.active {
  background: linear-gradient(135deg, #E05252 0%, #9A372C 100%);
  border-color: #9A372C;
}

/* ─────────────────────────────────────────────────────────────────────────
   TABLES - PROFESSIONAL
   ───────────────────────────────────────────────────────────────────────── */

table {
  border-collapse: collapse;
}

thead {
  background: #F8F8F8;
  border-bottom: 2px solid #E0E0E0;
}

thead th {
  font-weight: 700;
  color: #1a1a1a;
  padding: 1rem;
  text-align: left;
  font-size: 0.95rem;
}

tbody td {
  padding: 1rem;
  border-bottom: 1px solid #E8E8E8;
}

tbody tr:hover {
  background: #F8F8F8;
}

/* ─────────────────────────────────────────────────────────────────────────
   SPINNERS & LOADERS
   ───────────────────────────────────────────────────────────────────────── */

.spinner-border {
  color: #E05252;
}

/* ─────────────────────────────────────────────────────────────────────────
   TEXT & TYPOGRAPHY
   ───────────────────────────────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  color: #1a1a1a;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.text-muted {
  color: #666 !important;
}

.text-secondary {
  color: #999 !important;
}

a {
  color: #E05252;
  transition: color 0.3s ease;
  text-decoration: none;
}

a:hover {
  color: #9A372C;
  text-decoration: underline;
}

/* ─────────────────────────────────────────────────────────────────────────
   SHADOWS - UTILITY CLASSES
   ───────────────────────────────────────────────────────────────────────── */

.shadow-sm {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.shadow-md {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.shadow-lg {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* ─────────────────────────────────────────────────────────────────────────
   ANIMATIONS
   ───────────────────────────────────────────────────────────────────────── */

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in {
  animation: fadeIn 0.3s ease forwards;
}

.slide-in-left {
  animation: slideInLeft 0.3s ease forwards;
}

/* ─────────────────────────────────────────────────────────────────────────
   RESPONSIVE IMPROVEMENTS
   ───────────────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  body {
    font-size: 0.95rem;
  }

  .card {
    border-radius: 10px;
  }

  .product-card img {
    height: 160px;
  }

  .modal-body {
    padding: 1rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }
}

@media (max-width: 576px) {
  .btn {
    width: 100%;
    border-radius: 8px;
  }

  .card-body {
    padding: 1rem;
  }

  .product-card img {
    height: 140px;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  h3 {
    font-size: 1rem;
  }

  table {
    font-size: 0.9rem;
  }

  thead th,
  tbody td {
    padding: 0.75rem 0.5rem;
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   ACCESSIBILITY IMPROVEMENTS
   ───────────────────────────────────────────────────────────────────────── */

:focus-visible {
  outline: 2px solid #E05252;
  outline-offset: 2px;
}

button:disabled,
a.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ─────────────────────────────────────────────────────────────────────────
   UTILITY SPACING
   ───────────────────────────────────────────────────────────────────────── */

.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }
.gap-5 { gap: 2rem; }

.rounded-xl { border-radius: 16px; }
.rounded-2xl { border-radius: 24px; }

/* ─────────────────────────────────────────────────────────────────────────
   TRANSITION UTILITIES
   ───────────────────────────────────────────────────────────────────────── */

.transition-all {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-colors {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.transition-transform {
  transition: transform 0.3s ease;
}
