@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-primary: #0b0f19;
  --bg-secondary: #131c2e;
  --bg-card: rgba(20, 30, 54, 0.6);
  --bg-card-hover: rgba(28, 41, 71, 0.8);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-focus: #6366f1;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --primary: #4f46e5;
  --primary-glow: rgba(79, 70, 229, 0.4);
  --accent: #818cf8;
  --emerald: #10b981;
  --amber: #f59e0b;
  --rose: #f43f5e;
  
  --shadow-sm: 0 2px 8px -1px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(at 0% 0%, rgba(79, 70, 229, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(129, 140, 248, 0.1) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-glass);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 25, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-icon {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: 0 0 20px var(--primary-glow);
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.logo-text span {
  background: linear-gradient(to right, #a5b4fc, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-btn {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-btn.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-glass);
}

.nav-btn.primary-btn {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 14px var(--primary-glow);
}

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

/* Layout Utilities */
main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 3rem 1rem 4rem;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #ffffff 40%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* Catalog Filter Bar */
.filter-bar {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  box-shadow: var(--shadow-md);
}

.search-wrapper {
  flex: 2 1 300px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  background: rgba(11, 15, 25, 0.5);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  color: white;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.3s;
}

.search-input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.select-wrapper {
  flex: 1 1 180px;
  position: relative;
}

.filter-select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(11, 15, 25, 0.5);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: all 0.3s;
}

.filter-select:focus {
  outline: none;
  border-color: var(--border-focus);
}

.select-wrapper::after {
  content: '▼';
  font-size: 0.8rem;
  color: var(--text-muted);
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* Product Catalog Grid */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

/* Product Card */
.product-card {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: var(--shadow-lg), 0 0 15px rgba(99, 102, 241, 0.1);
  background: var(--bg-card-hover);
}

.product-image-container {
  width: 100%;
  height: 200px;
  position: relative;
  background: #1e293b;
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card:hover .product-image {
  transform: scale(1.08);
}

/* Fabric Pattern Swatch (Fallback if image is missing) */
.fabric-swatch {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  position: relative;
  opacity: 0.85;
}

.stock-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-sm);
}

.stock-tag.available {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.stock-tag.low-stock {
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.stock-tag.out-of-stock {
  background: rgba(244, 63, 94, 0.15);
  color: var(--rose);
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.product-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-meta {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.product-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: white;
}

.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  padding: 0.75rem 0;
}

.spec-item span {
  font-weight: 600;
  color: var(--text-primary);
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.product-price-moq {
  display: flex;
  flex-direction: column;
}

.price-val {
  font-size: 1.3rem;
  font-weight: 800;
  color: white;
}

.moq-val {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.inquire-btn {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 10px var(--primary-glow);
}

.inquire-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* Modals & Popups */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 6, 10, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  width: 90%;
  max-width: 500px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.modal-backdrop.show .modal-content {
  transform: scale(1);
}

.close-modal {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.close-modal:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

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

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

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(11, 15, 25, 0.4);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  color: white;
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.3s;
}

.form-input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.15);
}

textarea.form-input {
  resize: vertical;
  min-height: 80px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-submit-btn {
  width: 100%;
  padding: 0.85rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px var(--primary-glow);
  margin-top: 1rem;
}

.form-submit-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* Admin Styling */
.admin-container {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

.admin-sidebar {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 1rem 0.5rem;
  height: fit-content;
}

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

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s;
}

.sidebar-link:hover, .sidebar-link.active {
  color: white;
  background: rgba(255, 255, 255, 0.05);
}

.sidebar-link.active {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.15), rgba(129, 140, 248, 0.05));
  border: 1px solid rgba(79, 70, 229, 0.2);
  color: var(--accent);
}

.admin-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.admin-section {
  display: none;
}

.admin-section.active {
  display: block;
}

.section-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

/* Admin Dashboard Table */
.data-table-container {
  overflow-x: auto;
}

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

.data-table th {
  padding: 1rem;
  border-bottom: 1.5px solid var(--border-glass);
  color: var(--text-secondary);
  font-weight: 600;
}

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

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

/* Quick Stock Updates Buttons */
.qty-adjuster {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qty-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.qty-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.qty-input-mini {
  width: 60px;
  text-align: center;
  padding: 0.25rem;
  background: rgba(11, 15, 25, 0.5);
  border: 1px solid var(--border-glass);
  border-radius: 6px;
  color: white;
  font-family: inherit;
}

/* Status Badges */
.badge {
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: capitalize;
}

.badge.pending {
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber);
}

.badge.contacted {
  background: rgba(79, 70, 229, 0.15);
  color: var(--accent);
}

.badge.completed {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald);
}

/* Action buttons in Table */
.action-btn-group {
  display: flex;
  gap: 0.5rem;
}

.action-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.3s;
}

.action-btn:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.action-btn.edit-btn:hover {
  background: rgba(79, 70, 229, 0.2);
  border-color: var(--primary);
  color: var(--accent);
}

.action-btn.delete-btn:hover {
  background: rgba(244, 63, 94, 0.2);
  border-color: var(--rose);
  color: var(--rose);
}

/* Share Dialog Swatch */
.share-info-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

#share-qrcode {
  background: white;
  padding: 0.75rem;
  border-radius: 12px;
  width: 170px;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#share-qrcode img, #share-qrcode canvas {
  width: 100% !important;
  height: 100% !important;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.share-url-container {
  display: flex;
  width: 100%;
  gap: 0.5rem;
}

.share-link-input {
  flex-grow: 1;
  padding: 0.6rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

/* Exhibition CSS Setup */
.exhibition-body {
  background: black;
  color: white;
  height: 100vh;
  overflow: hidden;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.exhibition-wrapper {
  flex-grow: 1;
  display: flex;
  position: relative;
  height: calc(100vh - 80px);
}

.exhibition-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
  display: flex;
  padding: 2.5rem;
  gap: 3rem;
}

.exhibition-slide.active {
  opacity: 1;
  visibility: visible;
}

.exhibition-media {
  flex: 1 1 50%;
  border-radius: 24px;
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 0 50px rgba(79, 70, 229, 0.25);
  position: relative;
}

.exhibition-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.exhibition-media .fabric-swatch {
  font-size: 2.5rem;
}

.exhibition-info {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}

.exhibition-info .category {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 3px;
}

.exhibition-info .title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
}

.exhibition-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  background: rgba(255,255,255,0.03);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  max-width: 500px;
}

.exhibition-spec-val {
  font-size: 1.5rem;
  font-weight: 700;
}

.exhibition-spec-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.exhibition-qr-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.exhibition-qrcode {
  background: white;
  padding: 0.5rem;
  border-radius: 12px;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 120px;
}

.exhibition-qrcode img, .exhibition-qrcode canvas {
  width: 100% !important;
  height: 100% !important;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.exhibition-qr-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 250px;
}

.exhibition-qr-text strong {
  color: white;
}

.exhibition-footer {
  height: 80px;
  background: rgba(10, 10, 10, 0.8);
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 3rem;
}

.exhibition-controls {
  display: flex;
  gap: 1.5rem;
}

.exhibition-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

.exhibition-btn:hover {
  background: white;
  color: black;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-left: 4px solid var(--primary);
  border-radius: 10px;
  padding: 1rem 1.5rem;
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 250px;
  transform: translateY(20px);
  opacity: 0;
  animation: slideIn 0.3s forwards;
}

.toast.success { border-left-color: var(--emerald); }
.toast.warning { border-left-color: var(--amber); }
.toast.error { border-left-color: var(--rose); }

@keyframes slideIn {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Mobile responsive fixes */
/* Dashboard KPI & Charts */
.dashboard-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s;
}

.kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255,255,255,0.15);
}

.kpi-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.kpi-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: white;
  line-height: 1.2;
}

.kpi-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.dashboard-charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.dashboard-chart-card {
  margin-bottom: 0;
}

.dashboard-chart {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.chart-bar-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chart-bar-label {
  width: 100px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: right;
  flex-shrink: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chart-bar-track {
  flex: 1;
  height: 24px;
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.chart-bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.6s ease;
  display: flex;
  align-items: center;
  padding-left: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  min-width: 2rem;
}

.chart-bar-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  width: 30px;
  text-align: left;
}

.dashboard-recent-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-glass);
}

.dashboard-recent-item:last-child {
  border-bottom: none;
}

@media (max-width: 768px) {
  .admin-container {
    grid-template-columns: 1fr;
  }

  .dashboard-charts-row {
    grid-template-columns: 1fr;
  }
  
  /* Exhibition Mode Responsiveness */
  .exhibition-body {
    overflow: hidden;
  }
  
  .exhibition-wrapper {
    height: calc(100vh - 70px);
  }
  
  .exhibition-slide {
    flex-direction: column;
    padding: 1.25rem;
    gap: 1.5rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    align-items: center;
  }
  
  .exhibition-media {
    flex: 0 0 200px;
    width: 100%;
    max-width: 400px;
    height: 200px;
    border-radius: 16px;
    box-shadow: 0 0 25px rgba(79, 70, 229, 0.15);
  }
  
  .exhibition-media .fabric-swatch {
    font-size: 1.8rem;
  }
  
  .exhibition-info {
    flex: 0 0 auto;
    width: 100%;
    gap: 1rem;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
  }
  
  .exhibition-info .category {
    font-size: 0.9rem;
    letter-spacing: 2px;
  }
  
  .exhibition-info .title {
    font-size: 1.8rem;
    text-align: center;
    line-height: 1.2;
  }
  
  .exhibition-specs {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    text-align: left;
  }
  
  .exhibition-spec-val {
    font-size: 1.1rem;
  }
  
  .exhibition-spec-label {
    font-size: 0.75rem;
  }
  
  .exhibition-qr-container {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    max-width: 400px;
    margin-top: 0.5rem;
  }
  
  .exhibition-qrcode {
    width: 110px;
    height: 110px;
    flex: 0 0 110px;
  }
  
  .exhibition-qr-text {
    font-size: 0.75rem;
    line-height: 1.3;
    max-width: 100%;
  }

  .exhibition-footer {
    height: 70px;
    padding: 0 1.5rem;
  }

  .exhibition-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 6px;
  }
}

/* Height-based media query for smaller landscape viewports (laptops/tablets) */
@media (max-height: 800px) and (min-width: 769px) {
  .exhibition-slide {
    padding: 1.5rem 2.5rem;
    gap: 2rem;
  }
  
  .exhibition-media {
    flex: 1 1 45%;
    border-radius: 16px;
  }
  
  .exhibition-info {
    flex: 1 1 55%;
    gap: 1rem;
  }
  
  .exhibition-info .title {
    font-size: 2.5rem;
  }
  
  .exhibition-specs {
    padding: 1.25rem;
    gap: 1rem;
  }
  
  .exhibition-spec-val {
    font-size: 1.25rem;
  }
  
  .exhibition-qr-container {
    margin-top: 0.25rem;
    gap: 1rem;
  }
  
  .exhibition-qrcode {
    width: 110px;
    height: 110px;
    flex: 0 0 110px;
  }
}

