/* Rupam Saree Admin Dashboard Stylesheet */

@import url('https://db.onlinewebfonts.com/c/6bcc80ae15e8a8ccf8b237933d990442?family=Snake+V1');
@import url('https://fonts.cdnfonts.com/css/selima');

:root {
  --bg-main: #f5f6f9;
  --bg-card: #ffffff;
  --bg-sidebar: #ffffff;
  --primary: #f05423;
  --primary-hover: #d84315;
  --primary-light: #fff2ee;
  --text-main: #18191c;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --border-color: #edf0f4;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.06);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --font-family: 'Snake V1', 'Snake', 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --heading-font: 'Snake V1', 'Snake', 'Playfair Display', Georgia, serif;
  
  /* Status Colors */
  --status-new-bg: #ffebee;
  --status-new-text: #d32f2f;
  --status-contacted-bg: #fff8e1;
  --status-contacted-text: #b78103;
  --status-converted-bg: #e8f5e9;
  --status-converted-text: #2e7d32;
  --status-closed-bg: #f1f5f9;
  --status-closed-text: #64748b;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

/* App Container */
.admin-container {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 260px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  padding: 0 4px;
  text-decoration: none;
  color: var(--text-main);
}

.logo-badge {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #f05423, #ff7a45);
  color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(240, 84, 35, 0.3);
}

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

.logo-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

.logo-sub {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 600;
}

.nav-group {
  margin-bottom: 24px;
}

.nav-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  padding-left: 12px;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item a, .nav-item button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 14px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-icon {
  font-size: 18px;
  width: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-badge {
  background: #ffecb3;
  color: #b78103;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
}

.nav-badge.accent {
  background: var(--primary);
  color: #ffffff;
}

.nav-item.active a, .nav-item.active button {
  background: var(--primary);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(240, 84, 35, 0.25);
}

.nav-item.active .nav-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.nav-item:hover:not(.active) a, .nav-item:hover:not(.active) button {
  background: var(--bg-main);
  color: var(--text-main);
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.btn-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  color: #e53935;
  background: #ffebee;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-logout:hover {
  background: #ffcdd2;
}

/* Main Content Area */
.main-wrapper {
  margin-left: 260px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Top Navbar */
.topbar {
  height: 76px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 90;
}

.search-box {
  display: flex;
  align-items: center;
  background: #f3f4f6;
  border: 1px solid transparent;
  border-radius: 30px;
  padding: 8px 18px;
  width: 380px;
  transition: all 0.2s ease;
}

.search-box:focus-within {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(240, 84, 35, 0.15);
}

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 14px;
  color: var(--text-main);
  margin-left: 8px;
}

.search-shortcut {
  font-size: 11px;
  background: #ffffff;
  color: var(--text-light);
  border: 1px solid var(--border-color);
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 600;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.action-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f3f4f6;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}

.action-icon-btn:hover {
  background: #e5e7eb;
  color: var(--text-main);
}

.dot-indicator {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  border: 2px solid #ffffff;
}

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 30px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  cursor: pointer;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f05423, #ff8a65);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}

.user-details {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

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

/* Page Content Padding */
.content-area {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Header Section */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.header-title-group h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

.header-title-group p {
  color: var(--text-muted);
  font-size: 14px;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.date-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(240, 84, 35, 0.3);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

/* Metrics Cards Row */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.metric-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 22px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

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

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

.metric-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.metric-value-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.metric-value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

.trend-tag {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.trend-up {
  background: #e8f5e9;
  color: #2e7d32;
}

.trend-down {
  background: #ffebee;
  color: #c62828;
}

.metric-sub {
  font-size: 12px;
  color: var(--text-light);
}

/* Charts Grid */
.charts-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.chart-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

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

.chart-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}

.chart-select {
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  background: #f8fafc;
  outline: none;
  cursor: pointer;
}

/* Rounded Bar Chart Representation */
.bar-chart-container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 220px;
  padding-top: 30px;
  padding-bottom: 10px;
  gap: 12px;
  border-bottom: 1px dashed var(--border-color);
  position: relative;
}

.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  position: relative;
}

.bar-pill {
  width: 100%;
  max-width: 44px;
  background: var(--primary);
  border-radius: 20px;
  position: relative;
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(240, 84, 35, 0.2);
}

.bar-pill:hover {
  background: var(--primary-hover);
}

.bar-pill.highlight {
  background: linear-gradient(180deg, #ff7a45, #f05423);
  box-shadow: 0 6px 18px rgba(240, 84, 35, 0.4);
}

.bar-tooltip {
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.bar-pill:hover .bar-tooltip {
  opacity: 1;
}

.bar-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
  font-weight: 500;
}

/* Category Breakdown List */
.category-breakdown {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 10px;
}

.category-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cat-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
}

.cat-count {
  color: var(--text-muted);
}

.progress-track {
  height: 8px;
  background: #f1f5f9;
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 10px;
  background: var(--primary);
  transition: width 0.5s ease;
}

.progress-fill.bridal { background: #f05423; }
.progress-fill.festive { background: #ff9800; }
.progress-fill.silk { background: #9c27b0; }
.progress-fill.designer { background: #00bcd4; }

/* Table Container Card */
.table-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.table-toolbar {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border-color);
}

.filter-tabs {
  display: flex;
  gap: 6px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 30px;
}

.tab-btn {
  border: none;
  background: transparent;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn.active {
  background: #ffffff;
  color: var(--text-main);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.toolbar-search-sort {
  display: flex;
  align-items: center;
  gap: 12px;
}

.input-search {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  outline: none;
}

.input-search:focus {
  border-color: var(--primary);
  background: #ffffff;
}

.select-sort {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  outline: none;
  cursor: pointer;
}

/* Leads Table */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.leads-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.leads-table th {
  background: #f8fafc;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
}

.leads-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.leads-table tbody tr:hover {
  background: #fafafa;
}

.lead-id-badge {
  font-weight: 700;
  color: var(--text-main);
}

.customer-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.customer-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}

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

.customer-name {
  font-weight: 600;
  color: var(--text-main);
}

.customer-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.status-pill.new {
  background: var(--status-new-bg);
  color: var(--status-new-text);
}

.status-pill.contacted {
  background: var(--status-contacted-bg);
  color: var(--status-contacted-text);
}

.status-pill.converted {
  background: var(--status-converted-bg);
  color: var(--status-converted-text);
}

.status-pill.closed {
  background: var(--status-closed-bg);
  color: var(--status-closed-text);
}

.action-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.btn-icon:hover {
  background: #f1f5f9;
  color: var(--text-main);
}

.btn-icon.wa {
  color: #25d366;
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.btn-icon.wa:hover {
  background: #dcfce7;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

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

.modal-card {
  background: var(--bg-card);
  width: 100%;
  max-width: 600px;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 90vh;
  overflow-y: auto;
}

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

.modal-title {
  font-size: 20px;
  font-weight: 700;
}

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

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-item.full {
  grid-column: span 2;
}

.detail-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.detail-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.detail-notes-box {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px;
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.5;
}

/* Toast */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1e293b;
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1000;
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* Form Controls in Modal */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
}

.form-group input, .form-group select, .form-group textarea {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.empty-state h3 {
  font-size: 18px;
  color: var(--text-main);
  margin-bottom: 8px;
}

/* Visitor Analytics & Heatmap Styles */
.analytics-section-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.analytics-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.analytics-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(46, 125, 50, 0.1);
  color: #2e7d32;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.analytics-live-dot {
  width: 8px;
  height: 8px;
  background: #2e7d32;
  border-radius: 50%;
  animation: livePulse 1.5s infinite;
}

@keyframes livePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

.analytics-stat-boxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.analytics-stat-box {
  background: var(--bg-main);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid var(--border-color);
}

.analytics-stat-box .stat-title {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.analytics-stat-box .stat-number {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 4px;
  display: block;
}

.analytics-grid-two-col {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}

@media (max-width: 900px) {
  .analytics-grid-two-col {
    grid-template-columns: 1fr;
  }
}

.heatmap-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 8px;
}

.heatmap-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 12px 14px;
  border-radius: 10px;
}

.heatmap-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
}

.heatmap-item-top span.count {
  color: var(--primary);
  font-weight: 700;
  font-size: 12px;
}

.heatmap-bar-bg {
  width: 100%;
  height: 8px;
  background: var(--bg-main);
  border-radius: 4px;
  overflow: hidden;
}

.heatmap-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #f05423, #ff8a65);
  transition: width 0.4s ease;
}

.heatmap-bar-fill.hot {
  background: linear-gradient(90deg, #d32f2f, #f05423);
}

.activity-stream {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 6px;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-main);
  border-radius: 8px;
  font-size: 12.5px;
  border-left: 3px solid var(--primary);
}

.activity-item.visit { border-left-color: #2e7d32; }
.activity-item.addToBag { border-left-color: #1976d2; }
.activity-item.whatsappClicks { border-left-color: #25d366; }
.activity-item.chatbotQueries { border-left-color: #8b2616; }

.activity-time {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ==========================================================================
   Admin Security Access Gate
   ========================================================================== */

body.admin-locked {
  overflow: hidden;
}

body.admin-locked .admin-container {
  filter: blur(16px) saturate(0.6);
  pointer-events: none;
  user-select: none;
  transition: filter 0.4s ease;
}

.admin-auth-gate {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.admin-auth-gate.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.admin-auth-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(16, 43, 36, 0.88) 0%, rgba(8, 25, 20, 0.96) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.admin-auth-card {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 40px 36px 32px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
  text-align: center;
  animation: authCardEnter 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes authCardEnter {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(16px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.admin-auth-card.auth-shake {
  animation: authCardShake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes authCardShake {
  10%, 90% { transform: translate3d(-2px, 0, 0); }
  20%, 80% { transform: translate3d(4px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-6px, 0, 0); }
  40%, 60% { transform: translate3d(6px, 0, 0); }
}

.auth-card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #173b31, #286c69);
  color: #d98743;
  font-size: 24px;
  margin: 0 auto 16px;
  box-shadow: 0 8px 20px rgba(23, 59, 49, 0.25);
}

.auth-card-title {
  font-size: 26px;
  font-weight: 600;
  color: #173b31;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}

.auth-card-subtitle {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #d98743;
  margin-bottom: 12px;
}

.auth-card-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 26px;
}

.auth-card-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-icon {
  position: absolute;
  left: 14px;
  font-size: 15px;
  color: var(--text-light);
  pointer-events: none;
}

.auth-password-input {
  width: 100%;
  height: 48px;
  padding: 0 46px 0 42px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--text-main);
  transition: all 0.2s ease;
  outline: none;
}

.auth-password-input:focus {
  border-color: #173b31;
  background: #ffffff;
  box-shadow: 0 0 0 3.5px rgba(23, 59, 49, 0.12);
}

.auth-toggle-pwd {
  position: absolute;
  right: 10px;
  background: none;
  border: 0;
  font-size: 16px;
  padding: 6px 8px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.auth-toggle-pwd:hover {
  opacity: 1;
}

.auth-error-msg {
  padding: 10px 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #dc2626;
  font-size: 12.5px;
  font-weight: 500;
  text-align: left;
  animation: authFadeIn 0.25s ease;
}

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

.auth-submit-btn {
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #173b31 0%, #102b24 100%);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(23, 59, 49, 0.25);
}

.auth-submit-btn:hover {
  background: linear-gradient(135deg, #204d41 0%, #173b31 100%);
  box-shadow: 0 6px 20px rgba(23, 59, 49, 0.35);
  transform: translateY(-1px);
}

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

.auth-card-footer {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #f1f5f9;
}

.auth-back-link {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.auth-back-link:hover {
  color: #173b31;
  text-decoration: underline;
}


