/* =======================================================
   LOTION POS & INVENTORY MANAGEMENT SYSTEM - DESIGN SYSTEM
   Theme: Luxury Cosmetics & Skin Care Boutique
   Font: Kantumruy Pro & Inter
   ======================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Kantumruy+Pro:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  /* Palette - Boutique Rose Gold & Modern Slate */
  --primary: #d946ef;
  --primary-dark: #c026d3;
  --primary-light: #fdf4ff;
  --primary-gradient: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
  --rose-gold: #f43f5e;
  --rose-gradient: linear-gradient(135deg, #fb7185 0%, #e11d48 100%);
  
  --secondary: #0ea5e9;
  --accent-gold: #f59e0b;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;

  /* Neutrals & Slate */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-sidebar: #0f172a;
  --bg-sidebar-active: #1e293b;
  --border-color: #e2e8f0;
  --border-focus: #c084fc;
  
  /* Text */
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;

  /* Shadows & Glass */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-glow: 0 0 20px rgba(236, 72, 153, 0.25);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --transition-fast: all 0.15s ease;
  --transition-normal: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Kantumruy Pro', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
}

/* ---------------- Layout & Sidebar ---------------- */
.app-wrapper {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

.sidebar {
  width: 270px;
  background: var(--bg-sidebar);
  color: #f1f5f9;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  box-shadow: var(--shadow-xl);
  transition: var(--transition-normal);
}

.sidebar-header {
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(180deg, rgba(236, 72, 153, 0.1) 0%, transparent 100%);
}

.sidebar-logo {
  width: 44px;
  height: 44px;
  background: var(--primary-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.3rem;
  box-shadow: var(--shadow-glow);
  flex-shrink: 0;
}

.sidebar-brand h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.2px;
  white-space: nowrap;
}

.sidebar-brand p {
  font-size: 0.72rem;
  color: #fb7185;
  font-weight: 500;
}

.sidebar-nav {
  flex: 1;
  padding: 1.25rem 0.75rem;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.sidebar-nav::-webkit-scrollbar {
  width: 5px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}

.nav-section-title {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  padding: 0.75rem 0.75rem 0.25rem;
  font-weight: 600;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.75rem 1rem;
  color: #94a3b8;
  text-decoration: none;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 500;
  transition: var(--transition-fast);
  position: relative;
}

.nav-item i {
  font-size: 1.1rem;
  width: 22px;
  text-align: center;
  color: #cbd5e1;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  transform: translateX(3px);
}

.nav-item:hover i {
  color: #fb7185;
}

.nav-item.active {
  background: var(--primary-gradient);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.35);
}

.nav-item.active i {
  color: #ffffff;
}

.nav-badge {
  margin-left: auto;
  padding: 2px 8px;
  font-size: 0.72rem;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.badge-pulse {
  background: #ef4444;
  color: #ffffff;
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.08); }
}

.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #64748b;
}

/* ---------------- Main Content Area ---------------- */
.main-wrapper {
  flex: 1;
  margin-left: 270px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.top-navbar {
  min-height: 70px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 0.6rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(8px);
}

.navbar-page-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  flex: 1;
}

.navbar-page-title h1 {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 2px 0;
  line-height: 1.35;
}

.navbar-page-title p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.3;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  flex-wrap: nowrap;
}

.exchange-badge {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 6px 13px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
}

.exchange-badge span {
  white-space: nowrap;
  display: inline-block;
}

.btn-pos-launch {
  background: var(--rose-gradient);
  color: #ffffff;
  padding: 7px 16px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.35);
  transition: var(--transition-fast);
  line-height: 1.2;
}

.btn-pos-launch:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(244, 63, 94, 0.45);
}

.btn-branch-switcher {
  background: #f0f9ff;
  border: 1.5px solid #bae6fd;
  color: #0369a1;
  font-family: inherit;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(14, 165, 233, 0.12);
  transition: var(--transition-fast);
  outline: none;
}

.btn-branch-switcher:hover {
  background: #e0f2fe;
  border-color: #38bdf8;
  box-shadow: 0 3px 10px rgba(14, 165, 233, 0.22);
}

.content-container {
  padding: 2rem;
  flex: 1;
}

/* ---------------- Cards & Widgets ---------------- */
.card-glass {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.card-glass:hover {
  box-shadow: var(--shadow-md);
}

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

.card-header-flex h3 {
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-body-padding {
  padding: 1.5rem;
}

/* KPI Summary Stat Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
}

.stat-card.stat-rose::before { background: var(--rose-gold); }
.stat-card.stat-green::before { background: var(--success); }
.stat-card.stat-blue::before { background: var(--secondary); }
.stat-card.stat-amber::before { background: var(--accent-gold); }

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.stat-rose .stat-icon { background: #ffe4e6; color: #e11d48; }
.stat-green .stat-icon { background: #d1fae5; color: #059669; }
.stat-blue .stat-icon { background: #e0f2fe; color: #0284c7; }
.stat-amber .stat-icon { background: #fef3c7; color: #d97706; }

.stat-info {
  flex: 1;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.stat-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---------------- Tables & Data ---------------- */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

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

.custom-table th {
  background: #f8fafc;
  padding: 0.9rem 1rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.custom-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
  color: var(--text-main);
}

.custom-table tbody tr {
  transition: var(--transition-fast);
}

.custom-table tbody tr:hover {
  background-color: #f1f5f9;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
}

.badge-success { background: #dcfce7; color: #15803d; }
.badge-warning { background: #fef3c7; color: #b45309; }
.badge-danger { background: #fee2e2; color: #b91c1c; }
.badge-info { background: #e0f2fe; color: #0369a1; }
.badge-purple { background: #f3e8ff; color: #7e22ce; }
.badge-gray { background: #f1f5f9; color: #475569; }

/* Product thumbnail */
.product-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: #f1f5f9;
  border: 1px solid var(--border-color);
}

.product-avatar-placeholder {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #fdf4ff 0%, #fae8ff 100%);
  border: 1px solid #f5d0fe;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c026d3;
  font-size: 1.2rem;
}

/* ---------------- Form Elements ---------------- */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.form-control, .form-select {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-main);
  background-color: #ffffff;
  transition: var(--transition-fast);
}

.form-control:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(217, 70, 239, 0.15);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(236, 72, 153, 0.25);
}

.btn-primary:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(236, 72, 153, 0.35);
}

.btn-success { background: var(--success); color: #ffffff; }
.btn-danger { background: var(--danger); color: #ffffff; }
.btn-secondary { background: #f1f5f9; color: var(--text-main); border-color: var(--border-color); }
.btn-secondary:hover { background: #e2e8f0; }

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  border-radius: var(--radius-sm);
}

/* Flash alerts / messages */
.alert-container {
  margin-bottom: 1.5rem;
}

.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.alert-success { background: #dcfce7; border: 1px solid #86efac; color: #166534; }
.alert-error, .alert-danger { background: #fee2e2; border: 1px solid #fca5a5; color: #991b1b; }
.alert-warning { background: #fef3c7; border: 1px solid #fde68a; color: #92400e; }
.alert-info { background: #e0f2fe; border: 1px solid #7dd3fc; color: #075985; }

/* Responsive adjustments */
@media (max-width: 1024px) {
  .sidebar {
    width: 80px;
  }
  .sidebar .sidebar-brand,
  .sidebar .nav-item span,
  .sidebar .nav-section-title,
  .sidebar .nav-badge,
  .sidebar .sidebar-footer {
    display: none;
  }
  .sidebar-header {
    justify-content: center;
    padding: 1rem;
  }
  .sidebar-nav {
    align-items: center;
  }
  .nav-item {
    justify-content: center;
    padding: 0.8rem;
  }
  .main-wrapper {
    margin-left: 80px;
  }
}

@media (max-width: 640px) {
  .content-container {
    padding: 1rem;
  }
  .top-navbar {
    padding: 0 1rem;
  }
}

/* =======================================================
   USER PROFILE, RBAC BADGES & NAVBAR DROPDOWN
   ======================================================= */

/* Role Badges */
.badge-role-admin {
  background: linear-gradient(135deg, #8b5cf6, #d946ef);
  color: #ffffff;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 6px rgba(217, 70, 239, 0.25);
}

.badge-role-stock {
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  color: #ffffff;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 6px rgba(14, 165, 233, 0.25);
}

.badge-role-cashier {
  background: linear-gradient(135deg, #f43f5e, #fb7185);
  color: #ffffff;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 6px rgba(244, 63, 94, 0.25);
}

/* User Avatar / Initials */
.user-avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
  background: var(--primary-gradient);
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.user-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-avatar-sm {
  width: 34px;
  height: 34px;
  font-size: 0.82rem;
}

.user-avatar-lg {
  width: 72px;
  height: 72px;
  font-size: 1.6rem;
}

/* User Menu Dropdown in Navbar */
.user-menu-wrapper {
  position: relative;
}

.user-profile-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
}

.user-profile-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: var(--shadow-sm);
}

.user-profile-info {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
}

.user-profile-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

.user-profile-role-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 250px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16), 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 6px;
  z-index: 1000;
  display: none;
  animation: fadeInDown 0.15s ease-out;
}

.user-dropdown-menu.show {
  display: block;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-header-box {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 4px;
}

.dropdown-body-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dropdown-item,
.dropdown-item-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  border-radius: 8px;
  transition: var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}

.dropdown-item:hover,
.dropdown-item-link:hover {
  background: #f8fafc;
  color: var(--primary-dark);
  text-decoration: none;
}

.dropdown-item i,
.dropdown-item-link i {
  width: 18px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
  flex-shrink: 0;
}

.dropdown-item:hover i,
.dropdown-item-link:hover i {
  color: var(--primary);
}

.dropdown-divider {
  height: 1px;
  background: var(--border-color);
  margin: 4px 0;
}

.dropdown-item.text-danger:hover,
.dropdown-item-link.text-danger:hover {
  background: #fee2e2;
  color: var(--danger);
}

.dropdown-item.text-danger:hover i {
  color: var(--danger);
}

/* Switch toggle */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: .3s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background: var(--success);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

/* Activity logs table / timeline badges */
.log-action-badge {
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.log-module-auth { background: #e0f2fe; color: #0284c7; }
.log-module-sales { background: #dcfce7; color: #16a34a; }
.log-module-inventory { background: #fef3c7; color: #d97706; }
.log-module-user_mgmt { background: #f3e8ff; color: #9333ea; }
.log-module-settings { background: #f1f5f9; color: #475569; }

/* Status badges */
.badge-active {
  background: #dcfce7;
  color: #15803d;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge-inactive {
  background: #fee2e2;
  color: #b91c1c;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Modal styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.show {
  display: flex;
}

.modal-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  max-width: 500px;
  width: 100%;
  overflow: hidden;
  animation: modalPop 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

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

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: #f8fafc;
}
