/* Rinostrang Music - Modern Clean White Design System */
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700;800;900&family=Prompt:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-subtle: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  --border-light: #e2e8f0;
  --border-focus: #ec4899;
  
  --primary-pink: #ec4899;
  --primary-purple: #8b5cf6;
  --primary-indigo: #6366f1;
  --primary-emerald: #10b981;
  --primary-amber: #f59e0b;
  --primary-cyan: #06b6d4;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 16px 32px -4px rgba(236, 72, 153, 0.12), 0 8px 16px -2px rgba(0, 0, 0, 0.05);
}

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

body {
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(at 0% 0%, rgba(236, 72, 153, 0.04) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(139, 92, 246, 0.04) 0px, transparent 50%),
    radial-gradient(at 50% 100%, rgba(16, 185, 129, 0.03) 0px, transparent 50%);
  color: var(--text-main);
  font-family: 'Prompt', 'Kanit', sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.font-brand {
  font-family: 'Outfit', 'Kanit', sans-serif;
  letter-spacing: -0.02em;
}

.font-heading {
  font-family: 'Kanit', sans-serif;
  letter-spacing: -0.01em;
}

/* Modern Card Surfaces */
.modern-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-md);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.modern-card-interactive {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-md);
  transition: all 0.2s ease;
  cursor: pointer;
}

.modern-card-interactive:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-pink);
}

/* Gradients & Text */
.gradient-text {
  background: linear-gradient(135deg, #db2777 0%, #8b5cf6 50%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-emerald {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Modern Pill Buttons */
.btn-primary {
  background: linear-gradient(135deg, #ec4899 0%, #d946ef 50%, #8b5cf6 100%);
  color: #ffffff;
  font-weight: 600;
  border: none;
  border-radius: 0.875rem;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px 0 rgba(236, 72, 153, 0.35);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px 0 rgba(236, 72, 153, 0.45);
  filter: brightness(1.05);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: #ffffff;
  color: #1e293b;
  font-weight: 600;
  border: 1px solid var(--border-light);
  border-radius: 0.875rem;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: var(--primary-pink);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-emerald {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-weight: 600;
  border: none;
  border-radius: 0.875rem;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.3);
  transition: all 0.2s ease;
}

.btn-emerald:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px 0 rgba(16, 185, 129, 0.4);
}

.btn-purple {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  color: #ffffff;
  font-weight: 600;
  border: none;
  border-radius: 0.875rem;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px 0 rgba(139, 92, 246, 0.3);
  transition: all 0.2s ease;
}

.btn-purple:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px 0 rgba(139, 92, 246, 0.4);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
}

.badge-pink {
  background: #fdf2f8;
  color: #db2777;
  border: 1px solid #fbcfe8;
}

.badge-purple {
  background: #f5f3ff;
  color: #7c3aed;
  border: 1px solid #ddd6fe;
}

.badge-emerald {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.badge-amber {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fde68a;
}

.badge-slate {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.badge-cyan {
  background: #ecfeff;
  color: #0891b2;
  border: 1px solid #a5f3fc;
}

/* Modern Form Controls */
input, input[type="text"], input[type="email"], input[type="number"], input[type="tel"], select, textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  color: #0f172a;
  font-family: inherit;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: #db2777;
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.15);
  background: #ffffff;
}

input::placeholder, textarea::placeholder {
  color: #94a3b8;
}

/* Modal Overlay & Box */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.2s ease-out;
}

.modal-content {
  background: var(--bg-card);
  border-radius: 1.5rem;
  border: 1px solid var(--border-light);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* Equalizer Bars */
.equalizer-bar {
  width: 4px;
  background: linear-gradient(to top, #ec4899, #8b5cf6);
  border-radius: 9999px;
  display: inline-block;
  animation: equalize 1s infinite alternate ease-in-out;
}
.eq-1 { height: 12px; animation-delay: 0.1s; }
.eq-2 { height: 20px; animation-delay: 0.3s; }
.eq-3 { height: 16px; animation-delay: 0.2s; }
.eq-4 { height: 24px; animation-delay: 0.4s; }
.eq-5 { height: 14px; animation-delay: 0.15s; }

@keyframes equalize {
  0% { height: 4px; }
  100% { height: 24px; }
}

/* Table Styling */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.875rem;
}

th {
  background: #f8fafc;
  color: #475569;
  font-weight: 600;
  text-align: left;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid #e2e8f0;
}

th:first-child { border-top-left-radius: 0.75rem; }
th:last-child { border-top-right-radius: 0.75rem; }

td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  background: #ffffff;
}

tr:hover td {
  background: #faf5ff;
}

tr:last-child td:first-child { border-bottom-left-radius: 0.75rem; }
tr:last-child td:last-child { border-bottom-right-radius: 0.75rem; }

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* High-Precision Interactive Leaflet Map & Custom Pin Styles */
#booking_pin_map {
  z-index: 10 !important;
  border-radius: 1rem;
}
.custom-map-pin {
  background: transparent !important;
  border: none !important;
}
.custom-pin-pulse {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(236, 72, 153, 0.45);
  animation: pinPulse 2s infinite ease-out;
  position: absolute;
  bottom: -7px;
  left: 10px;
}
@keyframes pinPulse {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.6); opacity: 0; }
}
