/* ==========================================================================
   LN Artistry - Admin Hub Stylesheet
   Modern Light-Theme with macOS Glassmorphism Aesthetics
   ========================================================================== */

:root {
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Color Palette matching reference & brand */
  --primary: #DE3154;
  --primary-hover: #C52142;
  --primary-soft: rgba(222, 49, 84, 0.08);
  --primary-glow: rgba(222, 49, 84, 0.25);

  --accent-gold: #FED232;
  --accent-gold-dark: #D4A909;
  --accent-gold-soft: rgba(254, 210, 50, 0.15);

  --bg-admin: #F8F9FC;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --border-glass: rgba(226, 232, 240, 0.8);
  --border-subtle: #E2E8F0;

  --text-main: #1E293B;
  --text-muted: #64748B;
  --text-light: #94A3B8;

  --success: #10B981;
  --success-soft: rgba(16, 185, 129, 0.1);
  --warning: #F59E0B;
  --warning-soft: rgba(245, 158, 11, 0.1);
  --danger: #EF4444;
  --danger-soft: rgba(239, 68, 68, 0.1);
  --info: #3B82F6;
  --info-soft: rgba(59, 130, 246, 0.1);

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-dock: 0 12px 36px rgba(0, 0, 0, 0.12);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --dock-height: 72px;
}

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

body.admin-body {
  font-family: var(--font-body);
  background-color: var(--bg-admin);
  color: var(--text-main);
  line-height: 1.5;
  padding-bottom: calc(var(--dock-height) + 40px);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------------------
   Dynamic Island Header
   -------------------------------------------------------------------------- */
.admin-dynamic-header {
  position: sticky;
  top: 16px;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 20px;
  pointer-events: none;
}

.dynamic-island {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dynamic-island:hover {
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.island-brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.island-logo-dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #1A0D18;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid var(--accent-gold);
}

.island-mini-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.island-brand-names {
  display: flex;
  flex-direction: column;
}

.island-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 15px;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.island-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.island-center-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: rgba(16, 185, 129, 0.08);
  border-radius: var(--radius-full);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-indicator-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  animation: pulseLive 2s infinite;
}

@keyframes pulseLive {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.status-text {
  font-size: 12px;
  font-weight: 600;
  color: #065F46;
}

.island-user-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-island-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-island-pill:hover {
  background: var(--primary);
  color: #FFFFFF;
}

.island-user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 8px;
  border-left: 1px solid var(--border-subtle);
}

.user-avatar-initials {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #FF5E7E);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-info-text {
  display: flex;
  flex-direction: column;
}

.user-display-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
}

.user-display-role {
  font-size: 10px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   macOS Bottom Navigation Dock
   -------------------------------------------------------------------------- */
.macos-dock-container {
  position: fixed;
  bottom: 16px;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.macos-dock {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-dock);
}

.dock-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 16px;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dock-icon-wrapper {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dock-item:hover .dock-icon-wrapper {
  transform: translateY(-8px) scale(1.15);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  color: var(--primary);
  border-color: var(--primary-soft);
}

.dock-item.active .dock-icon-wrapper {
  background: linear-gradient(135deg, var(--primary), #FF5E7E);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 6px 16px var(--primary-glow);
}

.dock-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: transparent;
  margin-top: 4px;
}

.dock-item.active .dock-dot {
  background: var(--primary);
}

.dock-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--primary);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  border: 2px solid #FFFFFF;
}

.dock-divider {
  width: 1px;
  height: 32px;
  background: var(--border-subtle);
  margin: 0 4px;
}

/* Tooltips */
.dock-item::before {
  content: attr(data-tooltip);
  position: absolute;
  top: -38px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: all 0.2s ease;
}

.dock-item:hover::before {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Admin Layout & Structure
   -------------------------------------------------------------------------- */
.admin-main-wrapper {
  max-width: 1200px;
  margin: 28px auto 0;
  padding: 0 20px;
}

.admin-container {
  width: 100%;
}

.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}

.page-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.page-heading {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.page-subheading {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

.page-actions {
  display: flex;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   Sub-Tabs Navigation (Pages, Settings, Mailbox)
   -------------------------------------------------------------------------- */
.admin-subtabs {
  display: flex;
  gap: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-full);
  overflow-x: auto;
}

.subtab-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.subtab-item:hover {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.8);
}

.subtab-item.active {
  background: #FFFFFF;
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* --------------------------------------------------------------------------
   KPI Metric Cards
   -------------------------------------------------------------------------- */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.metric-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.metric-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.metric-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.metric-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bg-berry-soft { background: rgba(222, 49, 84, 0.1); }
.bg-gold-soft { background: rgba(254, 210, 50, 0.2); }
.bg-blue-soft { background: rgba(59, 130, 246, 0.1); }
.bg-purple-soft { background: rgba(147, 51, 234, 0.1); }

.metric-value {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  color: var(--text-main);
  margin: 12px 0;
}

.metric-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

/* --------------------------------------------------------------------------
   Buttons & Form Controls
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #FF5E7E);
  color: #FFFFFF;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-primary:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px var(--primary-glow);
}

.btn-secondary {
  background: #FFFFFF;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}

.btn-danger-soft {
  background: var(--danger-soft);
  color: var(--danger);
}

.btn-danger-soft:hover {
  background: var(--danger);
  color: #FFFFFF;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: #FFFFFF;
  color: var(--text-main);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

/* --------------------------------------------------------------------------
   Data Tables & Badges
   -------------------------------------------------------------------------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.data-table th {
  padding: 12px 16px;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.6);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
}

.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-accent { background: var(--accent-gold-soft); color: var(--accent-gold-dark); }

.status-chip {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
}

.status-pending { background: rgba(245, 158, 11, 0.15); color: #B45309; }
.status-confirmed { background: rgba(16, 185, 129, 0.15); color: #047857; }
.status-completed { background: rgba(59, 130, 246, 0.15); color: #1D4ED8; }
.status-cancelled { background: rgba(239, 68, 68, 0.15); color: #B91C1C; }

.action-buttons-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.btn-action-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
  background: #FFFFFF;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-action-icon:hover {
  background: var(--bg-admin);
  color: var(--primary);
  border-color: var(--primary);
}

.btn-action-confirm:hover { color: var(--success); border-color: var(--success); }
.btn-action-complete:hover { color: var(--info); border-color: var(--info); }
.btn-action-delete:hover { color: var(--danger); border-color: var(--danger); }

/* --------------------------------------------------------------------------
   Mailbox (Gmail Style with Hover Actions)
   -------------------------------------------------------------------------- */
.mailbox-wrapper {
  padding: 0;
  overflow: hidden;
}

.mailbox-tabs-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.6);
}

.mailbox-nav-tabs {
  display: flex;
  gap: 8px;
}

.mailbox-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s;
}

.mailbox-tab:hover {
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-main);
}

.mailbox-tab.active {
  background: var(--primary-soft);
  color: var(--primary);
}

.mail-count-chip {
  background: var(--primary);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

.mailbox-table {
  width: 100%;
  border-collapse: collapse;
}

.mail-row {
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background 0.15s ease;
  position: relative;
}

.mail-row:hover {
  background: #F1F5F9;
}

.mail-row.unread {
  background: #FFFFFF;
  font-weight: 700;
}

.mail-row td {
  padding: 12px 16px;
  vertical-align: middle;
}

.mail-cell-star {
  width: 40px;
}

.btn-star {
  background: none;
  border: none;
  cursor: pointer;
  color: #CBD5E1;
  transition: color 0.2s;
}

.btn-star.starred {
  color: #FED232;
}

.mail-cell-sender {
  width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
}

.mail-cell-content {
  font-size: 13px;
  color: var(--text-main);
}

.mail-snippet {
  color: var(--text-muted);
  font-weight: 400;
}

.mail-cell-date {
  width: 120px;
  text-align: right;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.mail-cell-actions {
  width: 140px;
  text-align: right;
}

.mail-hover-actions {
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.mail-row:hover .mail-cell-date {
  display: none;
}

.mail-row:hover .mail-hover-actions {
  display: inline-flex;
}

.mail-action-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}

.mail-action-btn:hover {
  background: var(--bg-admin);
  color: var(--text-main);
  border-color: #94A3B8;
}

/* --------------------------------------------------------------------------
   Packages Grid & Modals
   -------------------------------------------------------------------------- */
.packages-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.package-admin-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pkg-card-media {
  position: relative;
  height: 180px;
  background: #E2E8F0;
  overflow: hidden;
}

.pkg-admin-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.package-admin-card:hover .pkg-admin-img {
  transform: scale(1.04);
}

.pkg-category-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
}

.pkg-badge-popular {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent-gold);
  color: #1A0D18;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.pkg-card-body {
  padding: 20px;
  flex-grow: 1;
}

.pkg-admin-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.pkg-pricing-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}

.pkg-price-discounted {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
}

.pkg-price-original {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.pkg-price-regular {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
}

.pkg-duration-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: auto;
}

.pkg-admin-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.pkg-features-preview {
  list-style: none;
  font-size: 12px;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pkg-card-footer {
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.5);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* --------------------------------------------------------------------------
   Event-Based Gallery Multi-Uploader Styles
   -------------------------------------------------------------------------- */
.drop-zone-box {
  border: 2px dashed var(--primary);
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: center;
  background: var(--primary-soft);
  cursor: pointer;
  transition: all 0.2s ease;
}

.drop-zone-box:hover {
  background: rgba(222, 49, 84, 0.12);
}

.file-input-hidden {
  display: none;
}

.selected-files-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.selected-preview-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 12px;
}

.event-photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.gallery-photo-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.gallery-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-overlay-actions {
  position: absolute;
  top: 6px;
  right: 6px;
  opacity: 0;
  transition: opacity 0.2s;
}

.gallery-photo-item:hover .photo-overlay-actions {
  opacity: 1;
}

.btn-photo-delete {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.9);
  color: #FFFFFF;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.photo-caption-tag {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #FFFFFF;
  font-size: 10px;
  padding: 2px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --------------------------------------------------------------------------
   Settings Logo Preview Box
   -------------------------------------------------------------------------- */
.logo-preview-container {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 10px;
}

.logo-preview-box {
  width: 180px;
  height: 60px;
  background: #1A0D18;
  border-radius: var(--radius-md);
  border: 2px solid var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  overflow: hidden;
}

.logo-preview-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.image-preview-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
}

.image-preview-box {
  width: 120px;
  height: 90px;
  border-radius: var(--radius-sm);
  background: #F1F5F9;
  border: 1px dashed #CBD5E1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.image-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   Modals
   -------------------------------------------------------------------------- */
.admin-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.admin-modal.open {
  display: flex;
}

.admin-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
}

.admin-modal-dialog {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 0;
}

.modal-lg {
  max-width: 720px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
  background: #F8FAFC;
}

/* --------------------------------------------------------------------------
   Toast Notifications
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: #FFFFFF;
  color: var(--text-main);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-subtle);
  min-width: 280px;
  animation: slideInToast 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 13px;
  font-weight: 600;
}

@keyframes slideInToast {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast-success { border-left: 4px solid var(--success); }
.toast-error { border-left: 4px solid var(--danger); }
.toast-info { border-left: 4px solid var(--info); }

/* --------------------------------------------------------------------------
   Auth / Login Page Styles
   -------------------------------------------------------------------------- */
.admin-auth-body {
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #FFF0F3 0%, #FFFFFF 50%, #FFF9E6 100%);
  color: var(--text-main);
}

.dynamic-island-wrapper {
  display: flex;
  justify-content: center;
  padding: 24px 20px 0;
}

.island-icon-pill {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.island-text {
  display: flex;
  flex-direction: column;
}

.island-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
}

.island-badge {
  font-size: 10px;
  color: var(--text-muted);
}

.island-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-admin);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.login-wrapper {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  padding: 40px 36px;
  box-shadow: 0 20px 40px rgba(222, 49, 84, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.brand-logo-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #1A0D18;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--accent-gold);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  padding: 8px;
}

.login-logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.login-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
}

.login-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  margin-bottom: 24px;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
}

.input-with-icon .form-control {
  padding-left: 44px;
}

.password-wrapper .form-control {
  padding-right: 44px;
}

.password-toggle-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}

.login-credentials-hint {
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.03);
  padding: 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  line-height: 1.6;
}

.login-credentials-hint code {
  color: var(--primary);
  font-weight: 700;
}

.btn-login-submit {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--primary), #FF5E7E);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px var(--primary-glow);
  transition: all 0.2s;
}

.btn-login-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.login-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 18px;
}

.alert-error { background: var(--danger-soft); color: var(--danger); }
.alert-info { background: var(--info-soft); color: var(--info); }

.login-footer-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
  font-size: 11px;
  color: var(--text-muted);
}

.hidden {
  display: none !important;
}
