@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@500;600;700;800;900&display=swap');

:root {
  --primary-color: #f59e0b; /* Amber */
  --primary-hover: #d97706;
  --secondary-color: #ec4899; /* Pink */
  --bg-slate-50: #f8fafc;
  --bg-slate-100: #f1f5f9;
  --bg-slate-200: #e2e8f0;
  --text-slate-900: #0f172a;
  --text-slate-600: #475569;
  --text-slate-400: #94a3b8;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --radius-xl: 1.5rem;
  --radius-lg: 1rem;
  --radius-md: 0.75rem;
  --radius-sm: 0.5rem;
  --font-outfit: 'Outfit', sans-serif;
  --font-inter: 'Inter', sans-serif;
}

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

body {
  font-family: var(--font-inter);
  background-color: #f1f5f9;
  color: var(--text-slate-900);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar styles */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-slate-100);
}
::-webkit-scrollbar-thumb {
  background: var(--text-slate-400);
  border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-slate-600);
}

a {
  color: inherit;
  text-decoration: none;
}

/* Layout */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background: #ffffff;
  border-bottom: 1px solid var(--bg-slate-200);
  position: sticky;
  top: 0;
  z-index: 40;
}

.nav-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 4.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-outfit);
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--text-slate-900);
  cursor: pointer;
}

.logo-icon {
  background: var(--text-slate-900);
  color: var(--primary-color);
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-weight: 900;
}

.nav-tabs {
  display: flex;
  gap: 0.5rem;
}

.nav-tab {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-slate-600);
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  transition: all 0.2s ease;
}

.nav-tab:hover {
  background: var(--bg-slate-100);
  color: var(--text-slate-900);
}

.nav-tab.active {
  background: var(--text-slate-900);
  color: var(--primary-color);
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-avatar-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-md);
  background: var(--bg-slate-100);
  border: 1px solid var(--bg-slate-200);
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-avatar-btn:hover {
  background: var(--bg-slate-200);
}

/* User Badge Roles */
.badge {
  padding: 0.125rem 0.5rem;
  font-size: 0.675rem;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 9999px;
  letter-spacing: 0.05em;
}

.badge-super-admin {
  background: #fef2f2;
  color: #ef4444;
  border: 1px solid #fee2e2;
}

.badge-school-admin {
  background: #e0f2fe;
  color: #0284c7;
  border: 1px solid #bae6fd;
}

.badge-parent {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #dcfce7;
}

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

.badge-rejected {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fee2e2;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 0.875rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--text-slate-900);
  color: var(--primary-color);
}

.btn-primary:hover {
  background: #1e293b;
}

.btn-amber {
  background: var(--primary-color);
  color: var(--text-slate-900);
}

.btn-amber:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-slate-900);
  border: 1px solid var(--bg-slate-200);
}

.btn-secondary:hover {
  background: var(--bg-slate-50);
}

.btn-danger {
  background: #ef4444;
  color: #ffffff;
}

.btn-danger:hover {
  background: #dc2626;
}

/* Main Layout */
main {
  flex: 1;
  max-width: 80rem;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Welcome Hero Banner */
.hero-banner {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #f43f5e 100%);
  color: #0f172a;
  padding: 2rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid #fde68a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 48rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-tag {
  background: #0f172a;
  color: var(--primary-color);
  font-size: 0.75rem;
  font-weight: 900;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-title {
  font-family: var(--font-outfit);
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1rem;
  font-weight: 500;
  color: #1e293b;
  line-height: 1.5;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.hero-feature-tag {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(4px);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 800;
  color: #0f172a;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 15rem;
}

/* Privacy protection block */
.privacy-card {
  background: #ffffff;
  border: 1px solid var(--bg-slate-200);
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  max-width: 48rem;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.privacy-icon-container {
  width: 4rem;
  height: 4rem;
  background: #fef3c7;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.privacy-icon {
  width: 2rem;
  height: 2rem;
  color: #b45309;
}

.privacy-info h3 {
  font-family: var(--font-outfit);
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.privacy-info p {
  color: var(--text-slate-600);
  font-size: 0.875rem;
  font-weight: 500;
  max-width: 36rem;
  line-height: 1.6;
}

.privacy-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.privacy-benefits {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-slate-600);
  border-top: 1px solid var(--bg-slate-100);
  padding-top: 1.5rem;
  width: 100%;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

/* Modals with Glassmorphism */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-content {
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  max-width: 32rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--bg-slate-200);
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--bg-slate-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-family: var(--font-outfit);
  font-size: 1.25rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-slate-400);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
}

.modal-close-btn:hover {
  background: var(--bg-slate-100);
  color: var(--text-slate-900);
}

.modal-body {
  padding: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-slate-600);
  letter-spacing: 0.05em;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--bg-slate-200);
  font-family: var(--font-inter);
  font-size: 0.875rem;
  background: var(--bg-slate-50);
  outline: none;
  transition: border-color 0.2s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--text-slate-900);
}

.phone-input-group {
  display: flex;
  gap: 0.5rem;
}

.phone-country-select {
  width: 7rem;
}

.phone-number-field {
  flex: 1;
}

.modal-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--bg-slate-100);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Auth Modal Tabs */
.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--bg-slate-200);
}

.auth-tab {
  flex: 1;
  padding: 1rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.875rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-slate-600);
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.auth-tab.active {
  color: var(--text-slate-900);
  border-bottom-color: var(--primary-color);
  font-weight: 900;
}

.form-error {
  background: #fef2f2;
  color: #dc2626;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border: 1px solid #fee2e2;
  display: none;
}

/* Calendar Styling */
.calendar-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--bg-slate-200);
  padding: 1.5rem;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.calendar-title-group h2 {
  font-family: var(--font-outfit);
  font-size: 1.5rem;
  font-weight: 900;
}

.calendar-title-group p {
  font-size: 0.875rem;
  color: var(--text-slate-600);
  font-weight: 500;
}

.calendar-filters {
  display: flex;
  gap: 0.75rem;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: 1.5rem;
}

.month-container {
  background: var(--bg-slate-50);
  border: 1px solid var(--bg-slate-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.month-name {
  font-family: var(--font-outfit);
  font-weight: 900;
  font-size: 1.125rem;
  border-bottom: 1px solid var(--bg-slate-200);
  padding-bottom: 0.5rem;
  text-transform: capitalize;
}

.month-birthdays {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.no-birthdays {
  font-size: 0.75rem;
  color: var(--text-slate-400);
  font-style: italic;
  padding: 1rem 0;
  text-align: center;
}

.birthday-item {
  background: #ffffff;
  border: 1px solid var(--bg-slate-200);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.birthday-item:hover {
  transform: translateY(-2px);
  border-color: var(--text-slate-900);
}

.child-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background-color: var(--bg-slate-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  border: 2px solid #ffffff;
  box-shadow: var(--shadow-sm);
}

.birthday-details {
  flex: 1;
  min-width: 0;
}

.child-name {
  font-weight: 800;
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.child-info {
  font-size: 0.75rem;
  color: var(--text-slate-600);
  margin-top: 0.125rem;
}

.classroom-indicator {
  display: inline-block;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 9999px;
  margin-right: 0.25rem;
}

.birthday-alert-tag {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 0.625rem;
  font-weight: 900;
  padding: 0.125rem 0.375rem;
  border-radius: 9999px;
}

.birthday-alert-today {
  background: #fef2f2;
  color: #ef4444;
  border: 1px solid #fee2e2;
  animation: pulse 2s infinite;
}

.birthday-alert-soon {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fef3c7;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Wishlists View */
.view-header {
  background: #ffffff;
  border: 1px solid var(--bg-slate-200);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.view-title-section {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.view-title-section h2 {
  font-family: var(--font-outfit);
  font-size: 1.5rem;
  font-weight: 900;
}

.view-title-section p {
  font-size: 0.875rem;
  color: var(--text-slate-600);
  font-weight: 500;
}

.wishlist-selector {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.wishlist-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 64rem) {
  .wishlist-panel {
    grid-template-columns: 18rem 1fr;
  }
}

.wishlist-sidebar {
  background: #ffffff;
  border: 1px solid var(--bg-slate-200);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-title {
  font-family: var(--font-outfit);
  font-weight: 900;
  font-size: 1.125rem;
}

.sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-item {
  padding: 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--bg-slate-100);
  background: var(--bg-slate-50);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
  transition: all 0.2s ease;
}

.sidebar-item:hover {
  background: var(--bg-slate-100);
  border-color: var(--bg-slate-200);
}

.sidebar-item.active {
  background: var(--text-slate-900);
  color: var(--primary-color);
  border-color: var(--text-slate-900);
}

.wishlist-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.child-profile-card {
  background: #ffffff;
  border: 1px solid var(--bg-slate-200);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.child-profile-info {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.child-profile-avatar {
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-slate-100);
  border: 4px solid var(--bg-slate-200);
}

.child-profile-meta h3 {
  font-family: var(--font-outfit);
  font-size: 1.25rem;
  font-weight: 900;
}

.child-profile-meta p {
  font-size: 0.875rem;
  color: var(--text-slate-600);
  margin-top: 0.25rem;
}

.child-profile-notes {
  background: var(--bg-slate-50);
  border-left: 4px solid var(--primary-color);
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 0.875rem;
  color: var(--text-slate-600);
  font-style: italic;
  margin-top: 0.5rem;
  max-width: 36rem;
}

.wishlist-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
  gap: 1.5rem;
}

.wishlist-card {
  background: #ffffff;
  border: 1px solid var(--bg-slate-200);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wishlist-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.wishlist-card.claimed {
  border-color: #dcfce7;
  background: #fcfdfc;
}

.claimed-corner-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #dcfce7;
  font-size: 0.675rem;
  font-weight: 800;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.gift-title {
  font-family: var(--font-outfit);
  font-size: 1.125rem;
  font-weight: 900;
  padding-right: 4.5rem;
}

.gift-description {
  font-size: 0.875rem;
  color: var(--text-slate-600);
  min-height: 3rem;
  line-height: 1.5;
}

.gift-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--bg-slate-100);
  padding-top: 0.75rem;
  margin-top: auto;
}

.gift-price {
  background: var(--bg-slate-100);
  color: var(--text-slate-900);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
}

.gift-link {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-hover);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.gift-link:hover {
  text-decoration: underline;
}

.gift-claim-info {
  background: #f0fdf4;
  border: 1px solid #dcfce7;
  border-radius: var(--radius-md);
  padding: 0.75rem;
  font-size: 0.75rem;
  color: #15803d;
  font-weight: 500;
}

.gift-claim-info strong {
  font-weight: 800;
}

/* My Children View Add Card */
.add-child-card {
  background: #ffffff;
  border: 2px dashed var(--bg-slate-200);
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s ease;
}

.add-child-card:hover {
  border-color: var(--text-slate-900);
  background: var(--bg-slate-50);
}

.add-child-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: var(--bg-slate-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-slate-600);
}

/* Admin Dashboard Sub Tabs */
.admin-tabs {
  display: flex;
  background: #ffffff;
  border: 1px solid var(--bg-slate-200);
  border-radius: var(--radius-xl);
  padding: 0.375rem;
  gap: 0.25rem;
  overflow-x: auto;
}

.admin-tab {
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-slate-600);
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.admin-tab:hover {
  color: var(--text-slate-900);
}

.admin-tab.active {
  background: var(--bg-slate-100);
  color: var(--text-slate-900);
  font-weight: 800;
}

/* Admin Panels & Tables */
.admin-panel {
  background: #ffffff;
  border: 1px solid var(--bg-slate-200);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.table-container {
  overflow-x: auto;
  border: 1px solid var(--bg-slate-200);
  border-radius: var(--radius-lg);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

th {
  background: var(--bg-slate-50);
  padding: 0.875rem 1.25rem;
  font-weight: 800;
  color: var(--text-slate-600);
  border-bottom: 1px solid var(--bg-slate-200);
}

td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--bg-slate-100);
  color: var(--text-slate-900);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: var(--bg-slate-50);
}

.actions-cell {
  display: flex;
  gap: 0.5rem;
}

.icon-btn {
  background: none;
  border: 1px solid var(--bg-slate-200);
  border-radius: var(--radius-sm);
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-slate-600);
  transition: all 0.2s ease;
}

.icon-btn:hover {
  background: var(--text-slate-900);
  color: var(--primary-color);
  border-color: var(--text-slate-900);
}

.icon-btn-danger:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

/* Card Statistics Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
}

.stat-card {
  background: var(--bg-slate-50);
  border: 1px solid var(--bg-slate-200);
  border-radius: var(--radius-lg);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid var(--bg-slate-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.675rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-slate-600);
  letter-spacing: 0.05em;
}

.stat-value {
  font-family: var(--font-outfit);
  font-size: 1.25rem;
  font-weight: 900;
}

/* Alerts and banners */
.banner-notice {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid transparent;
}

.banner-notice-success {
  background: #f0fdf4;
  color: #15803d;
  border-color: #dcfce7;
}

.banner-notice-warning {
  background: #fffbeb;
  color: #b45309;
  border-color: #fef3c7;
}

/* Inbox styling */
.inbox-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.inbox-card {
  background: #ffffff;
  border: 1px solid var(--bg-slate-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  transition: border-color 0.2s ease;
}

.inbox-card.unread {
  border-left: 4px solid var(--primary-color);
  background: #fffdf9;
}

.inbox-details h4 {
  font-family: var(--font-outfit);
  font-size: 1rem;
  font-weight: 900;
}

.inbox-details p {
  font-size: 0.875rem;
  color: var(--text-slate-600);
  margin-top: 0.25rem;
}

.inbox-time {
  font-size: 0.75rem;
  color: var(--text-slate-400);
  margin-top: 0.25rem;
  display: block;
}

.inbox-actions {
  display: flex;
  align-items: center;
}

/* Footer Styling */
footer {
  background: #ffffff;
  border-top: 1px solid var(--bg-slate-200);
  padding: 1.5rem 0;
  font-size: 0.75rem;
  color: var(--text-slate-600);
  margin-top: auto;
}

.footer-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-weight: 800;
  color: var(--text-slate-900);
}

.footer-subtitle {
  font-size: 0.7rem;
  color: var(--text-slate-400);
  margin-top: 0.125rem;
}

/* Utility layout aids */
.flex-row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.d-none {
  display: none !important;
}

.w-full {
  width: 100% !important;
}

.cursor-pointer {
  cursor: pointer !important;
}

.text-center {
  text-align: center !important;
}

.mt-4 {
  margin-top: 1rem !important;
}

.gap-2 {
  gap: 0.5rem !important;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS & MEDIA QUERIES
   ========================================================================== */
@media (max-width: 48rem) {
  /* Main Container & Page Padding */
  main {
    padding: 1rem 0.75rem !important;
    gap: 1rem !important;
  }

  /* Header & Navigation Stacking */
  .nav-container {
    flex-direction: column !important;
    height: auto !important;
    gap: 0.75rem !important;
    padding: 0.75rem 1rem !important;
  }
  
  .nav-tabs {
    flex-wrap: wrap !important;
    justify-content: center !important;
    width: 100% !important;
    gap: 0.25rem !important;
  }
  
  .nav-tab {
    padding: 0.375rem 0.625rem !important;
    font-size: 0.75rem !important;
    gap: 0.25rem !important;
  }
  
  .nav-user {
    width: 100% !important;
    justify-content: center !important;
    gap: 0.5rem !important;
  }
  
  .nav-user .btn {
    padding: 0.375rem 0.75rem !important;
    font-size: 0.75rem !important;
  }

  /* Welcome Banner Stacking */
  .hero-banner {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 1.5rem !important;
    gap: 1.25rem !important;
  }
  
  .hero-title {
    font-size: 1.375rem !important;
  }
  
  .hero-subtitle {
    font-size: 0.875rem !important;
  }
  
  .hero-actions {
    min-width: 100% !important;
    width: 100% !important;
  }

  /* Modals Layout */
  .modal-content {
    max-width: 95% !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
  }
  
  .modal-body {
    padding: 1rem !important;
  }

  /* Children/Wishlist Profile Stacking */
  .child-profile-card {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1rem !important;
    padding: 1.25rem !important;
  }
  
  .child-profile-info {
    width: 100% !important;
  }
  
  .child-profile-notes {
    max-width: 100% !important;
  }

  /* Table responsive styles */
  td, th {
    padding: 0.75rem 0.5rem !important;
    font-size: 0.75rem !important;
  }
  
  .actions-cell {
    flex-direction: column !important;
    gap: 0.25rem !important;
  }
  
  .actions-cell .btn {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.7rem !important;
    width: 100% !important;
  }

  /* Wishlist Sidebar / Sidebar tabs */
  .wishlist-panel {
    grid-template-columns: 1fr !important;
  }
  
  .sidebar-list {
    flex-direction: row !important;
    overflow-x: auto !important;
    gap: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    -webkit-overflow-scrolling: touch;
  }
  
  .sidebar-item {
    white-space: nowrap !important;
  }

  /* Stats Grid */
  .stats-grid {
    grid-template-columns: 1fr !important;
  }
  
  /* Calendar adjustments */
  .calendar-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Cookie Banner and Compliance UI styles */
.cookie-banner {
  font-family: var(--font-inter);
}

@media (max-width: 48rem) {
  .cookie-banner {
    flex-direction: column !important;
    align-items: stretch !important;
    text-align: center;
  }
  .cookie-banner div {
    justify-content: center;
  }
}
