/* styles.css */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --color-forest: #1b4332;
  --color-emerald-deep: #2d6a4f;
  --color-emerald-light: #52b788;
  --color-sand-dark: #d4a373;
  --color-sand-light: #fefae0;
  --color-bg: #faf8f5;
  --color-card: #ffffff;
  --color-text-main: #292524;
  --color-text-muted: #78716c;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  --radius-organic: 1.5rem;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(82, 183, 136, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(212, 163, 115, 0.04) 0%, transparent 40%);
  background-attachment: fixed;
}

h1, h2, h3, .font-serif {
  font-family: var(--font-serif);
}

/* Premium Glassmorphism */
.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(231, 229, 228, 0.7);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
}

.glass-panel:hover {
  border-color: rgba(45, 106, 79, 0.2);
  box-shadow: 0 10px 40px rgba(27, 67, 50, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Micro-animations and Transitions */
.smooth-transition {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom Interactive Input Glows */
.input-premium {
  background: #fdfdfd;
  border: 1px solid #e7e5e4;
  border-radius: 0.85rem;
  transition: all 0.2s ease-in-out;
}

.input-premium:focus {
  border-color: var(--color-emerald-deep);
  box-shadow: 0 0 0 4px rgba(45, 106, 79, 0.1);
  background: #ffffff;
  outline: none;
}

/* Custom Toast Styles */
#toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
  max-width: 420px;
  width: calc(100% - 4rem);
}

.toast-item {
  pointer-events: auto;
  animation: slideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.95);
  border-left: 5px solid #d4d4d8;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(1rem) scale(0.98);
}

.toast-item.toast-success {
  border-left-color: var(--color-emerald-deep);
}

.toast-item.toast-error {
  border-left-color: #ef4444;
}

.toast-item.toast-warning {
  border-left-color: var(--color-sand-dark);
}

.toast-item.toast-info {
  border-left-color: #3b82f6;
}

.toast-item.leaving {
  animation: fadeOut 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateY(-0.5rem) scale(0.95);
    margin-bottom: -4rem; /* Collapse space */
  }
}

/* Custom Scrollbar for modern touch */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #e7e5e4;
  border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
  background: #d6d3d1;
}

/* Pulse animation for synchronization */
@keyframes syncPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.95; }
}

.animate-pulse-slow {
  animation: syncPulse 2s infinite ease-in-out;
}

/* Carousel Preview Dot styling */
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
  cursor: pointer;
}

.carousel-dot.active {
  background: white;
  width: 20px;
  border-radius: 99px;
}

/* Custom table card header */
.table-header-custom {
  background: linear-gradient(135deg, var(--color-forest) 0%, var(--color-emerald-deep) 100%);
}

/* Decorative background elements */
.deco-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
}

.deco-circle-1 {
  width: 300px;
  height: 300px;
  top: 10%;
  left: -5%;
  background: rgba(82, 183, 136, 0.05);
}

.deco-circle-2 {
  width: 400px;
  height: 400px;
  bottom: 10%;
  right: -5%;
  background: rgba(212, 163, 115, 0.06);
}
