/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
  --font-cursive: 'Dancing Script', cursive;
  --font-sans: 'Poppins', sans-serif;
  
  /* Pastel & Magic Color Palette */
  --bg-gradient: linear-gradient(135deg, #ffb6c1 0%, #ff9ebd 50%, #ffc0cb 100%);
  --primary-color: #ff85a1;
  --primary-hover: #ff6b8b;
  --primary-light: #ffe5ec;
  --secondary-color: #b39ddb;
  --text-dark: #4a3e4b;
  --text-muted: #8a7a8d;
  --white-glass: rgba(255, 255, 255, 0.5);
  --border-glass: rgba(255, 255, 255, 0.6);
  --success-color: #4caf50;
  --success-bg: rgba(200, 230, 201, 0.6);
  --success-border: rgba(129, 199, 132, 0.6);
  --success-text: #2e7d32;
  
  /* Shadows and Transitions */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 20px 25px -5px rgba(255, 133, 161, 0.1), 0 10px 10px -5px rgba(255, 133, 161, 0.04);
  --shadow-glass: 0 8px 32px 0 rgba(179, 157, 219, 0.15);
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: #ffb6c1;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--bg-gradient);
  background-attachment: fixed;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  max-width: 100vw;
  padding-bottom: 50px;
}

/* Floating Magical Background Elements */
.bg-bubble {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,182,193,0.3) 0%, rgba(216,191,216,0.3) 100%);
  z-index: -1;
  filter: blur(40px);
  animation: float-slow 25s infinite ease-in-out;
}

.bubble-1 { width: 350px; height: 350px; top: -100px; left: -100px; animation-delay: 0s; }
.bubble-2 { width: 400px; height: 400px; top: 35%; right: -150px; animation-delay: 3s; }
.bubble-3 { width: 300px; height: 300px; bottom: 10%; left: -80px; animation-delay: 6s; }
.bubble-4 { width: 250px; height: 250px; top: 15%; left: 45%; animation-delay: 9s; }

@keyframes float-slow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, 50px) scale(1.1); }
  66% { transform: translate(-20px, -45px) scale(0.95); }
}

/* ==========================================================================
   HEADER SECTION
   ========================================================================== */
.header {
  padding: 80px 20px 40px;
  text-align: center;
  position: relative;
}

.header-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.baby-icon-container {
  font-size: 3.5rem;
  color: var(--primary-color);
  animation: float-mini 4s infinite ease-in-out;
  margin-bottom: 12px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  position: relative;
  text-shadow: 0 0 20px rgba(255, 133, 161, 0.4);
}

.header-sparkles {
  position: absolute;
  font-size: 1rem;
  top: -5px;
  right: -15px;
  color: var(--secondary-color);
  animation: sparkle-pulse 2s infinite ease-in-out;
}

@keyframes sparkle-pulse {
  0%, 100% { transform: scale(0.8) rotate(0deg); opacity: 0.5; }
  50% { transform: scale(1.2) rotate(180deg); opacity: 1; }
}

.baby-title {
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.baby-name {
  font-family: var(--font-cursive);
  font-size: 6.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.1;
  display: flex;
  justify-content: center;
  gap: 2px;
}

/* Individual letter wave animation */
.baby-name span {
  display: inline-block;
  text-shadow: 2px 2px 0px rgba(255, 255, 255, 0.8), 0px 4px 15px rgba(255, 133, 161, 0.3);
  animation: letter-dance 3s infinite ease-in-out;
}

.baby-name span:nth-child(1) { animation-delay: 0.0s; }
.baby-name span:nth-child(2) { animation-delay: 0.2s; }
.baby-name span:nth-child(3) { animation-delay: 0.4s; }
.baby-name span:nth-child(4) { animation-delay: 0.6s; }
.baby-name span:nth-child(5) { animation-delay: 0.8s; }
.baby-name span:nth-child(6) { animation-delay: 1.0s; }

@keyframes letter-dance {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(4deg); }
}

.subtitle {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-dark);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Countdown Timer Styles */
.countdown-container {
  background: var(--white-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 15px 25px;
  box-shadow: var(--shadow-glass);
  margin-top: 15px;
  margin-bottom: 5px;
  display: inline-block;
}

.countdown-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.countdown-boxes {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.countdown-box {
  background: linear-gradient(135deg, var(--primary-light), white);
  border-radius: 12px;
  padding: 10px 15px;
  min-width: 65px;
  box-shadow: inset 0 2px 5px rgba(255, 133, 161, 0.1), 0 4px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.countdown-box span {
  font-family: var(--font-sans);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
}

.countdown-box small {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
}

/* Progress bar style */
.progress-wrapper {
  background: var(--white-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 20px 25px;
  box-shadow: var(--shadow-glass);
  margin-top: 20px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.progress-bar-container {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  height: 14px;
  overflow: hidden;
  position: relative;
}

.progress-bar {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  height: 100%;
  border-radius: 10px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(255, 133, 161, 0.5);
}

.progress-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-top: 8px;
  color: var(--text-muted);
}

/* ==========================================================================
   NAVIGATION / TABS
   ========================================================================== */
.categories-nav {
  margin-bottom: 40px;
  padding: 0 20px;
}

.categories-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 1000px;
  margin: 0 auto;
}

.category-tab {
  background: var(--white-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-glass);
  color: var(--text-dark);
  padding: 10px 20px;
  border-radius: 30px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-tab i {
  font-size: 0.95rem;
  color: var(--primary-color);
  transition: var(--transition-smooth);
}

.category-tab:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.category-tab.active {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(255, 133, 161, 0.3);
}

.category-tab.active i {
  color: #fff;
}

/* ==========================================================================
   GIFTS GRID & CARDS
   ========================================================================== */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.gifts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 25px;
  padding: 10px 0;
}

/* Glassmorphism Gift Card (Estilo Botton/Pin) */
.gift-card {
  background: var(--white-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50px; /* Estilo Botton arredondado */
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  min-height: 310px;
  position: relative;
  overflow: hidden; /* Importante para o brilho refletivo */
  
  /* Efeito 3D Convexo de Botton */
  box-shadow: 
    inset 0 6px 12px rgba(255, 255, 255, 0.9), 
    inset 0 -6px 12px rgba(0, 0, 0, 0.04), 
    0 15px 35px rgba(255, 133, 161, 0.12);
  
  transition: var(--transition-smooth);
  animation: float 8s infinite ease-in-out;
}

/* Brilho Refletivo Tridimensional (Glossy Sheen) */
.gift-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 150%;
  height: 55%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0) 60%);
  transform: rotate(-12deg) translate(-10%, -20%);
  border-radius: 0 0 100% 100%;
  pointer-events: none;
  z-index: 2;
}

/* Gentler Float Keyframes */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); } /* Movimento mais leve */
}

@keyframes float-mini {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-3px); }
}

/* Give different animations asynchronously */
.gift-card:nth-child(2n) { animation-delay: 1.8s; animation-duration: 7s; }
.gift-card:nth-child(3n) { animation-delay: 0.9s; animation-duration: 9s; }
.gift-card:nth-child(4n) { animation-delay: 2.5s; animation-duration: 8s; }

/* Illustration Badge Styles */
.gift-illustration {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), rgba(255, 255, 255, 0.8));
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
  box-shadow: inset 0 2px 5px rgba(255, 133, 161, 0.1), 0 4px 10px rgba(255, 133, 161, 0.1);
  font-size: 1.6rem;
  color: var(--primary-color);
  transition: var(--transition-smooth);
}

.gift-card.reserved .gift-illustration {
  background: linear-gradient(135deg, #e8f5e9, rgba(255, 255, 255, 0.8));
  color: var(--success-text);
  box-shadow: none;
}

.gift-card:hover .gift-illustration {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
}

.gift-card-header {
  margin-bottom: 12px;
}

.gift-category-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  background: var(--primary-light);
  color: var(--primary-color);
}

.gift-title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-dark);
}

.gift-card-footer {
  margin-top: 15px;
}

/* Button & Action Styles */
.reserve-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--primary-color), #ff94b1);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 18px; /* Mais arredondado */
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(255, 133, 161, 0.25);
}

.reserve-btn:hover {
  background: linear-gradient(135deg, var(--primary-hover), var(--primary-color));
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 133, 161, 0.35);
}

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

/* User Cancel Reservation Button */
.user-cancel-btn {
  width: 100%;
  background: transparent;
  color: var(--text-muted);
  border: 1px dashed rgba(0, 0, 0, 0.15);
  margin-top: 10px;
  padding: 8px 15px;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.user-cancel-btn:hover {
  background: rgba(198, 40, 40, 0.05);
  color: #c62828;
  border-color: #c62828;
}

/* Hover over available gift cards */
.gift-card.available:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--primary-color);
  box-shadow: 
    inset 0 6px 12px rgba(255, 255, 255, 0.9), 
    inset 0 -6px 12px rgba(0, 0, 0, 0.04), 
    0 20px 45px rgba(255, 133, 161, 0.22);
  transform: scale(1.04) translateY(-7px);
  z-index: 10;
  animation-play-state: paused; /* stops float on hover to feel responsive */
}

/* Reserved State styling (Mint Green & Confetti / Highlight) */
.gift-card.reserved {
  background: var(--success-bg);
  border-color: var(--success-border);
  box-shadow: 0 8px 24px rgba(76, 175, 80, 0.1);
  animation-play-state: paused;
}

.gift-card.reserved .gift-category-badge {
  background: rgba(255, 255, 255, 0.7);
  color: var(--success-text);
}

.reserved-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--success-text);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-top: 15px;
}

/* Pix Contributors Styling */
.pix-contributors {
  margin-top: 15px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: left;
  background: rgba(255, 255, 255, 0.5);
  padding: 10px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 133, 161, 0.5);
}

.pix-contributors-title {
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 5px;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.pix-contributors-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.pix-contributor-tag {
  background: white;
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid var(--primary-light);
  font-size: 0.75rem;
  color: var(--text-dark);
}

.reserved-info {
  background: rgba(255, 255, 255, 0.65);
  border: 1px dashed var(--success-border);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  margin-top: 15px;
  animation: pulse-border 2s infinite ease-in-out;
}

.reserved-by-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.reserved-by-name {
  font-size: 1.25rem; /* Destaque grande */
  font-weight: 700;
  color: var(--success-text);
  font-family: var(--font-sans);
}

@keyframes pulse-border {
  0%, 100% { border-color: var(--success-border); }
  50% { border-color: rgba(76, 175, 80, 0.1); }
}

/* Animation on booking success */
.gift-card.booking-success {
  animation: card-pulse 0.8s ease-in-out;
}

@keyframes card-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); box-shadow: 0 0 30px rgba(76, 175, 80, 0.6); }
  100% { transform: scale(1); }
}

/* Loading & Empty States */
.loading-state, .empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: var(--white-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 24px;
  border: 1px solid var(--border-glass);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--primary-light);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ==========================================================================
   MODAL DIALOG (GLASSMORPHISM)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(74, 62, 75, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 28px;
  width: 90%;
  max-width: 450px;
  padding: 40px 30px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  transform: translateY(30px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-backdrop.open .modal-card {
  transform: translateY(0);
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-dark);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.close-btn:hover {
  background: var(--primary-color);
  color: white;
}

.modal-header {
  text-align: center;
  margin-bottom: 30px;
}

.modal-icon {
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.modal-header h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
}

#modal-item-name {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 5px;
}

.input-group {
  margin-bottom: 25px;
}

.input-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.input-wrapper {
  position: relative;
}

.input-wrapper i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.input-wrapper input {
  width: 100%;
  padding: 14px 15px 14px 45px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.8);
  outline: none;
  transition: var(--transition-smooth);
}

.input-wrapper input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px var(--primary-light);
}

.modal-notice {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 30px;
}

.submit-btn {
  width: 100%;
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 14px 20px;
  border-radius: 16px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255, 133, 161, 0.3);
  transition: var(--transition-smooth);
}

.submit-btn:hover {
  background: var(--primary-hover);
  box-shadow: 0 8px 24px rgba(255, 133, 161, 0.4);
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 15px 25px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2000;
  pointer-events: none;
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-icon {
  color: var(--success-color);
  font-size: 1.2rem;
}

.toast-message {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* ==========================================================================
   ADMIN BUTTON
   ========================================================================== */
.admin-float-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 50px;
  height: 50px;
  background: var(--white-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  text-decoration: none;
  transition: var(--transition-smooth);
  z-index: 99;
}

.admin-float-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: rotate(45deg) scale(1.1);
  box-shadow: 0 8px 24px rgba(255, 133, 161, 0.3);
}

/* ==========================================================================
   ADMIN PANEL STYLES
   ========================================================================== */
.admin-header {
  padding: 40px 20px 20px;
  text-align: center;
}

.admin-header h1 {
  font-size: 2rem;
  color: var(--text-dark);
  font-weight: 700;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 15px;
  transition: var(--transition-smooth);
}

.back-btn:hover {
  color: var(--primary-color);
}

.admin-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}

.admin-stat-card {
  background: var(--white-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-glass);
  padding: 15px 20px;
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.admin-stat-card .label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.admin-stat-card .value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-dark);
}

.admin-stat-card.stat-success .value {
  color: var(--success-text);
}

.table-wrapper {
  background: var(--white-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 20px;
  box-shadow: var(--shadow-glass);
  overflow-x: auto;
}

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

.admin-table th, .admin-table td {
  padding: 15px 20px;
  font-size: 0.9rem;
}

.admin-table th {
  border-bottom: 2px solid rgba(0, 0, 0, 0.05);
  font-weight: 600;
  color: var(--text-muted);
}

.admin-table tr:not(:last-child) td {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.admin-table td {
  color: var(--text-dark);
}

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

.action-btn {
  border: none;
  padding: 8px 12px;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition-smooth);
}

.action-btn.edit {
  background: var(--primary-light);
  color: var(--primary-color);
}

.action-btn.edit:hover {
  background: var(--primary-color);
  color: white;
}

.action-btn.delete {
  background: #ffebee;
  color: #c62828;
}

.action-btn.delete:hover {
  background: #c62828;
  color: white;
}

.admin-empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

/* ==========================================================================
   RESPONSIVENESS
   ========================================================================== */
@media (max-width: 768px) {
  .baby-name {
    font-size: 4.5rem;
  }
  
  .header {
    padding-top: 50px;
  }
  
  .admin-stats-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-card {
    padding: 30px 20px;
  }
  
  .admin-table th, .admin-table td {
    padding: 12px 10px;
  }
}

/* ==========================================================================
   2D TRACK ANIMATIONS (MÃE E BEBÊ)
   ========================================================================== */
.animation-track-stroller {
  position: fixed;
  bottom: 15px;
  left: -120px;
  z-index: 20; /* Passa por cima dos cards */
  pointer-events: none;
  animation: walk-across 40s linear infinite;
  opacity: 0.85;
}

.stroller-svg {
  animation: bob-stroller 2s ease-in-out infinite;
}

@keyframes walk-across {
  0% { left: -120px; transform: scaleX(1); }
  48% { left: 110%; transform: scaleX(1); }
  50% { left: 110%; transform: scaleX(-1); }
  98% { left: -120px; transform: scaleX(-1); }
  100% { left: -120px; transform: scaleX(1); }
}

@keyframes bob-stroller {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(3deg); }
}

.animation-track-baby {
  position: fixed;
  bottom: 8px;
  right: -100px;
  z-index: 20; /* Passa por cima dos cards */
  pointer-events: none;
  animation: crawl-across 32s linear infinite;
  opacity: 0.85;
}

.baby-svg {
  animation: wiggle-baby 1.2s ease-in-out infinite;
}

@keyframes crawl-across {
  0% { right: -100px; transform: scaleX(1); }
  48% { right: 110%; transform: scaleX(1); }
  50% { right: 110%; transform: scaleX(-1); }
  98% { right: -100px; transform: scaleX(-1); }
  100% { right: -100px; transform: scaleX(1); }
}

@keyframes wiggle-baby {
  0%, 100% { transform: translateY(0) rotate(0deg) scaleY(1); }
  50% { transform: translateY(-3px) rotate(-6deg) scaleY(0.95); }
}

/* Ajustar animações em telas pequenas para não poluir o layout */
@media (max-width: 600px) {
  .stroller-svg { width: 50px; height: 50px; }
  .baby-svg { width: 45px; height: 45px; }
  .animation-track-stroller, .animation-track-baby {
    opacity: 0.6;
  }
}

