/* ==========================================================================
   CardConnect - Modern SaaS Design System
   Color Palette: Deep Navy #14213D, Primary Blue #2563EB, Soft Blue #EFF6FF,
   Canvas #F7F9FC, Card #FFFFFF, Border #E5E7EB, Text #172033
   ========================================================================== */

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

:root {
  --navy-900: #0f172a;
  --navy-800: #14213d;
  --navy-700: #1e293b;
  --navy-600: #334155;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --bg-canvas: #f7f9fc;
  --bg-card: #ffffff;
  --border-color: #e5e7eb;
  --border-light: #f1f5f9;
  --text-primary: #172033;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --success: #16a34a;
  --success-bg: #f0fdf4;
  --warning: #f59e0b;
  --warning-bg: #fffbeb;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --sidebar-w: 260px;
  --header-h: 70px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px 0 rgba(16, 24, 40, 0.04);
  --shadow-md: 0 4px 8px -2px rgba(16, 24, 40, 0.06), 0 2px 4px -2px rgba(16, 24, 40, 0.03);
  --shadow-lg: 0 12px 20px -4px rgba(16, 24, 40, 0.08), 0 4px 6px -2px rgba(16, 24, 40, 0.03);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* App Shell Layout */
.app-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* Sidebar */
.app-sidebar {
  width: var(--sidebar-w);
  background-color: var(--navy-800);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.08);
}

.sidebar-header {
  height: var(--header-h);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35);
}

.brand-text h1 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.2;
}

.brand-text span {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
  display: block;
}

.nav-section {
  padding: 16px 12px 8px;
  flex: 1;
  overflow-y: auto;
}

.nav-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  padding: 6px 12px;
  margin-bottom: 4px;
}

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

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.18s ease;
  position: relative;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

.nav-link.active {
  background-color: var(--blue-600);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.nav-link svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  opacity: 0.85;
}

.nav-link.active svg {
  opacity: 1;
}

.nav-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0.15);
  padding: 2px 7px;
  border-radius: 12px;
  color: #ffffff;
}

.nav-badge.badge-urgent {
  background-color: #ef4444;
}

.sidebar-footer {
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #3b82f6;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
  flex-shrink: 0;
}

.user-info {
  flex: 1;
  overflow: hidden;
}

.user-name {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.user-role {
  font-size: 11px;
  color: #94a3b8;
}

/* Main Content Area */
.app-main {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Top Header */
.app-header {
  height: var(--header-h);
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 90;
  gap: 20px;
}

/* Global Search */
.header-search-wrap {
  position: relative;
  flex: 1;
  max-width: 520px;
}

.search-icon-wrap {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
}

.header-search-input {
  width: 100%;
  height: 42px;
  padding: 0 44px 0 40px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 14px;
  background-color: #f8fafc;
  color: var(--text-primary);
  transition: all 0.2s ease;
  outline: none;
}

.header-search-input:focus {
  background-color: #ffffff;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.search-shortcut-badge {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  background-color: #e2e8f0;
  color: #475569;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-weight: 500;
  pointer-events: none;
}

/* Search Dropdown Results */
.search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 440px;
  overflow-y: auto;
  z-index: 200;
  display: none;
}

.search-results-dropdown.active {
  display: block;
}

.search-group-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  padding: 10px 16px 4px;
  letter-spacing: 0.05em;
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
}

.search-result-item {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid #f8fafc;
  text-decoration: none;
  color: inherit;
}

.search-result-item:hover {
  background-color: var(--blue-50);
}

.search-result-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background-color: var(--blue-600);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--blue-700);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.btn-secondary {
  background-color: #ffffff;
  border-color: var(--border-color);
  color: var(--text-primary);
}

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

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

.btn-danger:hover {
  background-color: #b91c1c;
}

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

.btn-lg {
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
}

.btn-icon {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
}

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

/* View Container */
.content-body {
  padding: 30px;
  flex: 1;
}

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

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

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

/* Cards & Layout */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  margin-bottom: 24px;
  transition: box-shadow 0.2s ease;
}

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

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

.card-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
}

.grid-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.stat-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.stat-val {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 2px;
}

/* Badges & Pills */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
}

.badge-primary { background: var(--blue-50); color: var(--blue-700); }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: #b45309; }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-neutral { background: #f1f5f9; color: #475569; }

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid transparent;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: white;
}

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

.data-table th {
  background: #f8fafc;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  border-bottom: 1px solid var(--border-color);
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  font-size: 14px;
}

.data-table tr:hover td {
  background: #fbfcfe;
}

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

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--text-primary);
  background-color: #ffffff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-control:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea.form-control {
  height: auto;
  padding: 10px 12px;
  min-height: 80px;
}

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

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

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

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.modal-card.modal-lg {
  max-width: 900px;
}

.modal-card.modal-xl {
  max-width: 1140px;
}

.modal-backdrop.active .modal-card {
  transform: translateY(0) scale(1);
}

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

.modal-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
}

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

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

.toast {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  max-width: 420px;
  animation: slideIn 0.25s ease;
  font-size: 14px;
  font-weight: 500;
}

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

@keyframes slideIn {
  from { transform: translateX(40px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Interactive Label Sheet Preview */
.label-studio-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 28px;
  align-items: start;
}

.sheet-preview-card {
  background: #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: auto;
  min-height: 580px;
  position: relative;
}

.sheet-paper {
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 2px 5px rgba(0,0,0,0.05);
  position: relative;
  transition: all 0.2s ease;
  user-select: none;
  box-sizing: border-box;
}

.sheet-cell {
  position: absolute;
  box-sizing: border-box;
  border: 1px dashed #cbd5e1;
  background: #ffffff;
  border-radius: 3px;
  cursor: pointer;
  padding: 6px;
  overflow: hidden;
  font-size: 10px;
  line-height: 1.25;
  color: #334155;
  transition: all 0.15s ease;
}

.sheet-cell:hover {
  border-color: var(--blue-600);
  background-color: var(--blue-50);
}

.sheet-cell.cell-active {
  background: #f8fafc;
  border: 1px solid #94a3b8;
}

.sheet-cell.cell-skipped {
  background: #f1f5f9;
  opacity: 0.45;
  border: 1px dashed #cbd5e1;
}

.sheet-cell.cell-start {
  border: 2px solid var(--blue-600) !important;
  background: #eff6ff !important;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.cell-start-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--blue-600);
  color: white;
  font-size: 8px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
}

/* Greeting Card Visualizer */
.card-studio-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.card-canvas-preview {
  background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 440px;
}

.greeting-stationery {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: 12px;
  padding: 36px 32px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08), 0 5px 15px rgba(0, 0, 0, 0.04);
  position: relative;
  border: 1px solid #f1f5f9;
}

.greeting-stationery::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(212, 175, 55, 0.35); /* subtle gold line */
  border-radius: 6px;
  pointer-events: none;
}

.greeting-salutation {
  font-family: var(--font-serif);
  font-size: 19px;
  color: #1e293b;
  margin-bottom: 18px;
  font-style: italic;
}

.greeting-body {
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.7;
  color: #334155;
  margin-bottom: 24px;
}

.greeting-signoff {
  font-family: var(--font-serif);
  font-size: 16px;
  color: #1e293b;
  font-style: italic;
}

.greeting-sender {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--blue-700);
  margin-top: 4px;
}

/* Responsive */
@media (max-width: 992px) {
  .app-sidebar {
    transform: translateX(-100%);
  }
  .app-sidebar.sidebar-open {
    transform: translateX(0);
  }
  .app-main {
    margin-left: 0;
  }
  .label-studio-layout,
  .card-studio-layout {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Seasonal Smart Card (Adaptive Holiday & Occasion Banner)
   ========================================================================== */
.seasonal-smart-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #172554 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.seasonal-smart-card::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.3) 0%, rgba(37, 99, 235, 0) 70%);
  pointer-events: none;
}

.seasonal-content {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 2;
}

.seasonal-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.seasonal-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.seasonal-badge {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(220, 38, 38, 0.25);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #fca5a5;
}

.seasonal-desc {
  font-size: 13.5px;
  color: #cbd5e1;
  max-width: 680px;
  line-height: 1.45;
}

.seasonal-btn {
  background: #ffffff;
  color: #0f172a;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 2;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.seasonal-btn:hover {
  background: #f1f5f9;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Quick Actions Grid (Large tactile buttons)
   ========================================================================== */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.quick-action-btn {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.quick-action-btn:hover {
  border-color: var(--blue-600);
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.quick-action-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.quick-action-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ==========================================================================
   Grouped Occasions Sections (Today, Tomorrow, This Week)
   ========================================================================== */
.occasion-timeline-group {
  margin-bottom: 20px;
}

.occasion-group-header {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  padding: 6px 0 8px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.occasion-group-count {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 10px;
  background: #e2e8f0;
  color: #475569;
}

/* ==========================================================================
   Contact Profile Slide-Over Drawer
   ========================================================================== */
.slide-drawer-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(3px);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.slide-drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.slide-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  z-index: 1060;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-drawer-backdrop.active .slide-drawer {
  transform: translateX(0);
}

.drawer-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
  background: #f8fafc;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.drawer-avatar-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.drawer-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.drawer-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.drawer-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.drawer-actions-bar {
  padding: 12px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  gap: 8px;
  background: #ffffff;
  overflow-x: auto;
}

.drawer-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.drawer-section {
  margin-bottom: 24px;
}

.drawer-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 12px;
  padding-bottom: 4px;
  border-bottom: 1px solid #f1f5f9;
}

.info-item {
  display: flex;
  margin-bottom: 10px;
  font-size: 13.5px;
}

.info-label {
  width: 120px;
  color: #64748b;
  flex-shrink: 0;
  font-weight: 500;
}

.info-val {
  color: #1e293b;
  font-weight: 500;
  flex: 1;
  word-break: break-word;
}

/* ==========================================================================
   Clickable Table Rows
   ========================================================================== */
.data-table tbody tr.clickable-row {
  cursor: pointer;
  transition: background 0.15s;
}

.data-table tbody tr.clickable-row:hover td {
  background-color: #f8fafc;
}

/* ==========================================================================
   6-Step CSV Wizard Stepper
   ========================================================================== */
.wizard-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.wizard-step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #94a3b8;
}

.wizard-step-item.active {
  color: var(--blue-600);
  font-weight: 700;
}

.wizard-step-item.completed {
  color: var(--success);
}

.wizard-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.wizard-step-line {
  flex: 1;
  height: 2px;
  background: #e2e8f0;
  margin: 0 12px;
}

.validation-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.metric-box {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
}

.metric-box.metric-success { border-color: #bbf7d0; background: #f0fdf4; color: #166534; }
.metric-box.metric-warning { border-color: #fde68a; background: #fffbeb; color: #92400e; }
.metric-box.metric-danger { border-color: #fecaca; background: #fef2f2; color: #991b1b; }

.metric-number {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
}

.metric-label {
  font-size: 12px;
  font-weight: 500;
  margin-top: 4px;
}

/* ==========================================================================
   Print Labels 3-Step Guided Workflow
   ========================================================================== */
.print-step-tabs {
  display: flex;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 6px;
  margin-bottom: 24px;
  gap: 8px;
}

.print-step-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.print-step-tab.active {
  background: #eff6ff;
  color: var(--blue-700);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.print-step-tab.completed {
  color: var(--success);
}

.print-step-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.print-step-tab.active .print-step-badge {
  background: var(--blue-600);
  color: #ffffff;
}

.print-step-tab.completed .print-step-badge {
  background: #dcfce7;
  color: #166534;
}

/* ==========================================================================
   Template Presets Gallery Cards
   ========================================================================== */
.template-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.template-preset-card {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.template-preset-card:hover {
  border-color: var(--blue-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.template-preset-card.selected {
  border-color: var(--blue-600);
  background: #f8fafc;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.template-card-preview {
  height: 90px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 28px;
}

.template-card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.template-card-spec {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 8px;
}

.template-card-tags {
  display: flex;
  gap: 6px;
  margin-top: auto;
}

/* ==========================================================================
   Label Designer 3-Column Layout: ELEMENTS | CANVAS | PROPERTIES
   ========================================================================== */
.designer-3col-workspace {
  display: grid;
  grid-template-columns: 200px 1fr 280px;
  gap: 20px;
  align-items: start;
}

@media (max-width: 1200px) {
  .designer-3col-workspace {
    grid-template-columns: 1fr;
  }
}

.designer-elements-panel {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.designer-element-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.designer-element-item:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: var(--blue-700);
  transform: translateX(2px);
}

.designer-canvas-center {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.label-zoom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.live-label-editor-canvas {
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  position: relative;
  overflow: hidden;
}

.editable-label-box {
  background: #ffffff;
  border: 1px solid #94a3b8;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  padding: 16px;
  position: relative;
  transition: all 0.2s ease;
}

.editable-label-box.snap-grid-active {
  background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
  background-size: 10px 10px;
}

/* ==========================================================================
   Notification Center Floating Dropdown
   ========================================================================== */
.notifications-dropdown-menu {
  position: absolute;
  top: 60px;
  right: 24px;
  width: 360px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 1050;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.notifications-dropdown-menu.active {
  display: flex;
}

.notification-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
}

.notification-body {
  max-height: 380px;
  overflow-y: auto;
}

.notification-item {
  padding: 12px 18px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  gap: 12px;
  font-size: 13px;
  transition: background 0.15s;
  cursor: pointer;
}

.notification-item:hover {
  background: #f8fafc;
}

/* Print Media Styles - Hides all navigation, sidebars, headers, and buttons for clean paper print */
@media print {
  .app-sidebar,
  .app-header,
  .page-header,
  .btn,
  .btn-icon,
  .card-studio-layout > div:first-child,
  .print-step-tabs,
  .designer-elements-panel,
  .label-zoom-bar,
  .modal-backdrop,
  #notifications-dropdown,
  #account-dropdown-menu {
    display: none !important;
  }

  body, .app-layout, .app-main, .content-body {
    background: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  .card-canvas-preview {
    background: transparent !important;
    padding: 0 !important;
  }

  .greeting-stationery {
    box-shadow: none !important;
    margin: 20px auto !important;
    page-break-inside: avoid !important;
    border: 2px solid #d4af37 !important;
  }

  .sheet-paper {
    box-shadow: none !important;
    margin: 0 auto !important;
    page-break-inside: avoid !important;
  }
}
