/* ==========================================================================
   Elegance Rentals — Admin Dashboard CSS (Ivory Light Mode Theme)
   ========================================================================== */

:root {
  /* Google Material 3 inspired tokens mapped to the warm ivory theme */
  --bg-base: #fdf9f0; /* M3 background color */
  --sidebar-bg: #f9f5e8; /* M3 Navigation Drawer surface */
  --card-bg: #ffffff; /* M3 Elevated Container sheet */
  --text-main: #1c1c16; /* M3 On Surface */
  --text-muted: #5f5e5b; /* M3 On Surface Variant */
  --border-color: rgba(115, 92, 0, 0.12); /* M3 Outline */
  
  --primary: #735c00; /* M3 Primary Accent (Gold) */
  --primary-container: #eae3d2; /* M3 Active tab background (pill shape color) */
  --primary-container-hover: #eae3d2bb;
  --active-nav-bg: #eae3d2; /* M3 Active item indicator container */
  
  --success: #2e7d32;
  --success-bg: rgba(46, 125, 50, 0.08);
  --alert: #c62828;
  --alert-bg: rgba(198, 40, 40, 0.08);
  --warning: #ef6c00;
  --warning-bg: rgba(239, 108, 0, 0.08);
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --transition-smooth: all 0.3s cubic-bezier(0.2, 0, 0, 1.0); /* M3 Emphasized standard motion */
  --transition-fast: all 0.15s cubic-bezier(0.2, 0, 0, 1.0);
  
  --elevation-0: none;
  --elevation-1: 0px 1px 3px 1px rgba(115, 92, 0, 0.08), 0px 1px 2px 0px rgba(115, 92, 0, 0.05);
  --elevation-2: 0px 2px 6px 2px rgba(115, 92, 0, 0.1), 0px 1px 2px 0px rgba(115, 92, 0, 0.05);
  --elevation-3: 0px 4px 12px 4px rgba(115, 92, 0, 0.12), 0px 2px 4px 0px rgba(115, 92, 0, 0.06);

  --shadow-subtle: var(--elevation-1);
  --shadow-medium: var(--elevation-2);
}

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

body {
  background-color: var(--sidebar-bg); /* Sits underneath layout split */
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

/* Material 3 rounded overrides to map standard .sharp-border selectors to M3 geometry */
.sharp-border {
  border-radius: 8px !important; /* Material 3 standard shape */
}

/* Buttons in Material 3 are fully rounded pill layouts */
.btn.sharp-border,
button.sharp-border,
.submit-btn.sharp-border,
.action-btn-row.sharp-border,
.nav-logout-btn.sharp-border,
.nav-tab-btn.sharp-border {
  border-radius: 100px !important;
}

/* Layout Split Wrapper - Material 3 Nested Card style */
.dashboard-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100vw;
  position: relative;
  background-color: var(--sidebar-bg);
}

/* 1. Left Sidebar menu - Material 3 Permanent Navigation Drawer */
.sidebar-container {
  width: 300px;
  background-color: var(--sidebar-bg);
  border-right: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem 1rem 1.5rem 1.5rem;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 50;
  flex-shrink: 0;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
  margin-bottom: 2.5rem;
  padding-left: 0.5rem;
}

.brand-badge {
  background-color: var(--primary);
  color: var(--bg-base);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.5rem 0.65rem;
  border-radius: 12px; /* Material 3 badge shape */
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.brand-subtitle {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sidebar-menu .nav-tab-btn {
  background: transparent;
  color: var(--text-muted);
  border: none;
  border-radius: 28px; /* M3 drawer active pill shape */
  padding: 0.85rem 1.5rem;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  width: 100%;
  transition: var(--transition-smooth);
}

.sidebar-menu .nav-tab-btn:hover {
  color: var(--text-main);
  background-color: rgba(115, 92, 0, 0.06);
}

.sidebar-menu .nav-tab-btn.active {
  color: var(--text-main);
  background-color: var(--active-nav-bg);
  font-weight: 600;
}

.sidebar-menu .nav-tab-btn .material-symbols-outlined {
  font-size: 1.25rem;
  font-variation-settings: 'FILL' 0, 'wght' 400;
}

.sidebar-menu .nav-tab-btn.active .material-symbols-outlined {
  font-variation-settings: 'FILL' 1, 'wght' 500;
}

.sidebar-footer {
  border-top: 1px dashed var(--border-color);
  padding-top: 1.5rem;
  padding-left: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.company-tag {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.company-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
}

/* 2. Main content container column - Material 3 Nested Canvas Sheet */
.main-layout-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background-color: var(--bg-base);
  border-radius: 28px 0px 0px 28px; /* Floating sheet nested structure */
  margin: 1rem 0rem 1rem 0rem;
  padding: 1.5rem;
  box-shadow: var(--elevation-1);
  border: 1px solid var(--border-color);
  border-right: none;
}

@media (max-width: 991px) {
  .main-layout-container {
    border-radius: 0;
    margin: 0;
    padding: 1rem;
    border: none;
  }
}

/* Top Navbar header - Material 3 App Bar */
.top-navbar {
  height: 64px;
  background-color: transparent;
  border-bottom: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  margin-bottom: 1rem;
  z-index: 40;
}

.console-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  display: none;
}

@media (min-width: 768px) {
  .console-label {
    display: inline-block;
  }
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
}

/* Connected Badge */
.status-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  background-color: var(--bg-base);
  border: 1px solid var(--border-color);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #e09f53;
  display: inline-block;
  box-shadow: 0 0 6px #e09f53;
}

.status-badge.live-mode .status-dot {
  background-color: var(--success);
  box-shadow: 0 0 6px var(--success);
}

.status-badge.local-mode .status-dot {
  background-color: var(--warning);
  box-shadow: 0 0 6px var(--warning);
}

/* Bell Container */
.notif-bell-container {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background-color: rgba(115, 92, 0, 0.03);
  transition: var(--transition-smooth);
}

.notif-bell-container:hover {
  background-color: rgba(115, 92, 0, 0.08);
}

.bell-icon {
  font-size: 1.3rem;
  color: var(--text-main);
}

.notif-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background-color: #da7272;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

/* Profile circle */
.profile-avatar {
  width: 2.25rem;
  height: 2.25rem;
  background-color: var(--text-main);
  color: var(--bg-base);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Logout Button */
.nav-logout-btn {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(28, 28, 22, 0.15);
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.nav-logout-btn:hover {
  color: var(--alert);
  border-color: rgba(218, 114, 114, 0.3);
  background-color: var(--alert-bg);
}

.nav-logout-btn .material-symbols-outlined {
  font-size: 1rem;
}

/* 3. Workspace Scroll Viewport */
.workspace-viewport {
  flex: 1;
  padding: 0.5rem 1rem 1.5rem 1rem;
  overflow-y: auto;
}

.tab-panel {
  display: none;
  animation: slideFadeIn 0.35s cubic-bezier(0.2, 0, 0, 1.0) forwards;
}

.tab-panel.active {
  display: block;
}

@keyframes slideFadeIn {
  from { opacity: 0; transform: scale(0.98) translateY(6px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Card Panel Base Styling - Material 3 Container Card */
.card-panel {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px; /* Modern M3 rounded container corners */
  padding: 2rem;
  box-shadow: var(--elevation-1);
  transition: var(--transition-smooth);
}

.card-panel:hover {
  box-shadow: var(--elevation-2);
}

/* Welcome Card - Material 3 filled tonal card style */
.welcome-banner-card {
  margin-bottom: 2rem;
  border-left: none;
  background-color: var(--primary-container) !important;
  border-radius: 24px !important;
  padding: 2rem 2.5rem;
}

.welcome-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.welcome-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.kpi-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

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

.kpi-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.kpi-icon {
  font-size: 1.25rem;
  color: var(--text-muted);
  opacity: 0.6;
}

.kpi-value {
  font-family: var(--font-sans);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.1;
}

.kpi-subtext {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.8;
}

/* Bottom Split Layout */
.dashboard-bottom-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .dashboard-bottom-grid {
    grid-template-cols: 1fr 1fr;
  }
}

.bottom-card {
  display: flex;
  flex-direction: column;
  height: 420px;
}

.bottom-card-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

/* Quick Actions Button Rows */
.quick-actions-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow-y: auto;
  flex: 1;
}

.action-btn-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  background-color: var(--bg-base);
  border: 1px solid var(--border-color);
  width: 100%;
  cursor: pointer;
  text-align: left;
  transition: var(--transition-smooth);
}

.action-btn-row:hover {
  background-color: var(--active-nav-bg);
  border-color: var(--primary-container);
  transform: translateX(4px);
}

.action-btn-row .material-symbols-outlined {
  font-size: 1.4rem;
  color: var(--primary);
}

.action-btn-text {
  display: flex;
  flex-direction: column;
}

.action-btn-text strong {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
}

.action-btn-text span {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Recent Activity Timeline logs */
.activity-timeline-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
  flex: 1;
  padding-left: 0.5rem;
  position: relative;
}

.timeline-item {
  display: flex;
  gap: 1rem;
  position: relative;
}

/* Timeline vertical connector line */
.timeline-item::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 1.25rem;
  bottom: -1rem;
  width: 1px;
  background-color: var(--border-color);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-marker {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background-color: var(--primary-container);
  border: 2px solid #ffffff;
  z-index: 10;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.timeline-marker.confirmed { background-color: var(--success); }
.timeline-marker.pending { background-color: var(--warning); }
.timeline-marker.returned { background-color: var(--primary); }

.timeline-content {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.timeline-text {
  font-size: 0.8rem;
  color: var(--text-main);
  line-height: 1.4;
}

.timeline-text strong {
  font-weight: 600;
}

.timeline-time {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.timeline-empty, .timeline-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Inner Panels: Tables & Forms */
.panel-header {
  margin-bottom: 2rem;
}

.panel-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--text-main);
  margin-bottom: 0.3rem;
}

.panel-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.stock-split-grid {
  display: grid;
  grid-template-cols: 1fr;
  gap: 2rem;
}

@media (min-width: 1200px) {
  .stock-split-grid {
    grid-template-cols: 400px 1fr;
  }
}

.form-container, .hotspot-designer-container, .inventory-table-container,
.rented-orders-container, .abandonment-container, .clients-container {
  /* Inherit banner style card settings */
  box-shadow: var(--shadow-subtle);
}

.subsection-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed var(--border-color);
}

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

.form-grid-2 {
  display: grid;
  grid-template-cols: 1fr 1fr;
  gap: 1rem;
}

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

.form-input {
  background-color: var(--bg-base);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  border-radius: 8px; /* M3 rounded outline textfields */
  transition: var(--transition-smooth);
  width: 100%;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  border-width: 2px;
  background-color: #ffffff;
  box-shadow: none;
}

.form-input.text-area {
  resize: vertical;
}

.form-input.text-xs {
  font-size: 0.75rem;
  padding: 0.6rem 0.8rem;
}

/* File Upload */
.file-upload-wrapper {
  position: relative;
  border: 1px dashed var(--border-color);
  border-radius: 12px; /* M3 rounded outline boxes */
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  background-color: var(--bg-base);
  transition: var(--transition-smooth);
}

.file-upload-wrapper:hover {
  border-color: var(--primary);
  background-color: rgba(115, 92, 0, 0.04);
}

.file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  pointer-events: none;
}

.upload-icon {
  font-size: 1.8rem;
  color: var(--text-muted);
}

.upload-text {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.file-preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.file-preview-badge {
  background-color: var(--bg-base);
  border: 1px solid var(--border-color);
  padding: 0.25rem 0.6rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.submit-btn {
  background-color: var(--text-main);
  color: var(--bg-base);
  border: none;
  padding: 0.9rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.submit-btn:hover {
  background-color: var(--primary);
  box-shadow: 0 4px 15px rgba(115, 92, 0, 0.15);
}

/* Hotspot Work area */
.hotspot-work-area {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.instruction-box {
  background-color: rgba(115, 92, 0, 0.03);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.instruction-box p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.instruction-box .material-symbols-outlined {
  color: var(--primary);
  font-size: 1.2rem;
}

/* Visual frame */
.mapper-image-frame-wrapper {
  background-color: var(--bg-base);
  border: 1px solid var(--border-color);
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mapper-image-frame {
  position: relative;
  max-width: 500px;
  width: 100%;
  cursor: crosshair;
}

.mapper-image-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.mapper-dots-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Dots */
.mapper-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: var(--primary-container);
  border: 2px solid #ffffff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 800;
  color: #1c1c16;
  box-shadow: 0 2px 8px rgba(115, 92, 0, 0.2);
}

.mapper-dot.temp-dot {
  background-color: var(--text-main);
  color: var(--bg-base);
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  animation: pulse-dot 1s infinite alternate;
}

.hotspot-details-panel {
  border: 1px dashed var(--primary-container);
  background-color: rgba(115, 92, 0, 0.02);
  padding: 1.25rem;
  margin-top: 0.5rem;
}

.annotation-form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.badge {
  font-size: 0.7rem;
  font-weight: 700;
  background-color: var(--active-nav-bg);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.25rem 0.5rem;
}

.close-badge-btn {
  background: transparent;
  border: none;
  color: var(--alert);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.annotation-form-fields {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.add-annotation-btn {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--text-main);
  padding: 0.6rem 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.add-annotation-btn:hover {
  background-color: var(--text-main);
  color: var(--bg-base);
}

.mini-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.annotations-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
  padding: 0.5rem;
  background-color: var(--bg-base);
}

.annotation-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-color);
}

.annotation-item-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.annotation-number {
  width: 18px;
  height: 18px;
  background-color: var(--primary-container);
  color: #1c1c16;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
}

.annotation-item-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-main);
}

.annotation-item-coords {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.delete-annotation-btn {
  background: transparent;
  border: none;
  color: var(--alert);
  cursor: pointer;
  display: flex;
  align-items: center;
}

.save-annotations-btn {
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 0.8rem 1.2rem;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.save-annotations-btn:hover {
  background-color: rgba(115, 92, 0, 0.05);
}

.designer-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 350px;
  color: var(--text-muted);
}

.empty-icon {
  font-size: 2.5rem;
  color: rgba(115, 92, 0, 0.15);
  margin-bottom: 1rem;
}

.designer-empty-state p {
  font-size: 0.8rem;
  max-width: 250px;
  line-height: 1.5;
}

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

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

.admin-table th {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border-color);
  padding: 1.15rem 1rem;
  background-color: var(--sidebar-bg); /* M3 Surface Variant background */
}

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

.admin-table tbody tr:hover {
  background-color: rgba(115, 92, 0, 0.04);
}

.table-prod-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.table-prod-img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border: 1px solid var(--border-color);
  background-color: var(--bg-base);
}

/* Badges */
.pill-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.pill-badge.success {
  background-color: var(--success-bg);
  border: 1px solid rgba(103, 183, 103, 0.2);
  color: var(--success);
}

.pill-badge.alert {
  background-color: var(--alert-bg);
  border: 1px solid rgba(218, 114, 114, 0.2);
  color: var(--alert);
}

.pill-badge.warning {
  background-color: var(--warning-bg);
  border: 1px solid rgba(224, 159, 83, 0.2);
  color: var(--warning);
}

/* Action buttons */
.row-action-btn {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(28, 28, 22, 0.15);
  padding: 0.4rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: var(--transition-smooth);
}

.row-action-btn:hover {
  color: var(--text-main);
  border-color: var(--text-main);
}

.row-action-btn.confirm-override {
  color: var(--primary);
  border-color: var(--border-color);
  background-color: rgba(115, 92, 0, 0.03);
}

.row-action-btn.confirm-override:hover {
  background-color: var(--text-main);
  color: var(--bg-base);
  border-color: var(--text-main);
}

.row-action-btn.whatsapp-remind {
  color: var(--success);
  border-color: rgba(103, 183, 103, 0.2);
  background-color: var(--success-bg);
}

.row-action-btn.whatsapp-remind:hover {
  background-color: var(--success);
  color: #ffffff;
  border-color: var(--success);
}

.row-action-btn.action-returned {
  color: var(--primary);
  border-color: var(--primary);
}

.row-action-btn.action-returned:hover {
  background-color: var(--primary);
  color: #ffffff;
}

.table-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  color: var(--text-muted);
}

.table-empty-state p {
  font-size: 0.85rem;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(28, 28, 22, 0.45);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-content {
  border-radius: 28px !important; /* M3 Standard Dialog Corner Radius */
  max-width: 900px;
  width: 100%;
  padding: 2.5rem;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--elevation-3);
  border: 1px solid var(--border-color) !important;
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2rem;
  line-height: 0.5;
  background: transparent;
  color: var(--text-muted);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.modal-close-btn:hover {
  color: var(--text-main);
}

.modal-title {
  font-size: 1.5rem;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.modal-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.modal-table-wrapper {
  margin-top: 1.5rem;
  border: 1px solid var(--border-color);
}

/* Footer layout */
.admin-footer {
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 1.5rem 2rem;
  margin-top: auto;
}

.footer-container {
  text-align: center;
}

.admin-footer p {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Helpers */
.mt-8 { margin-top: 2rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.font-bold { font-weight: 700; }
.serif { font-family: var(--font-serif); }
.text-xs { font-size: 0.75rem; }
.font-weight-light { font-weight: 300; }
.mb-4 { margin-bottom: 1rem; }

/* Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
  background: rgba(115, 92, 0, 0.15);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-container);
}

/* ==========================================================================
   Material 3 Action Button & Control Overrides
   ========================================================================== */
#manage-categories-btn {
  background-color: transparent !important;
  border: 1px solid var(--border-color) !important;
  color: var(--primary) !important;
  padding: 0.75rem 1.5rem !important;
  margin-top: 0 !important;
}

#manage-categories-btn:hover {
  background-color: rgba(115, 92, 0, 0.04) !important;
  border-color: var(--primary) !important;
}

#delete-selected-btn {
  background-color: var(--alert) !important;
  border: none !important;
  color: #ffffff !important;
  padding: 0.75rem 1.5rem !important;
  margin-top: 0 !important;
  box-shadow: var(--elevation-1);
}

#delete-selected-btn:hover {
  background-color: #b71c1c !important;
  box-shadow: var(--elevation-2);
}

#open-upload-modal-btn {
  background-color: var(--primary) !important;
  border: none !important;
  color: #ffffff !important;
  padding: 0.75rem 1.5rem !important;
  margin-top: 0 !important;
  box-shadow: var(--elevation-1);
}

#open-upload-modal-btn:hover {
  background-color: #5c4a00 !important;
  box-shadow: var(--elevation-2);
}
