@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');
/* Kudo Axom Association Design Tokens */
:root {
  --color-surface: #f7fafc;
  --color-surface-dim: #d7dadc;
  --color-surface-bright: #f7fafc;
  --color-surface-lowest: #ffffff;
  --color-surface-low: #f1f4f6;
  --color-surface-container: #ebeef0;
  --color-surface-high: #e5e9eb;
  --color-surface-highest: #e0e3e5;
  --color-on-surface: #181c1e;
  --color-on-surface-variant: #5b403e;
  --color-inverse-surface: #2d3133;
  --color-inverse-on-surface: #eef1f3;
  --color-outline: #8f6f6d;
  --color-outline-variant: #e4beba;
  --color-surface-tint: #b91c24;
  
  --color-primary: #b51822; /* Crimson Red */
  --color-primary-hover: #93121b;
  --color-on-primary: #ffffff;
  --color-primary-container: #d93537;
  --color-on-primary-container: #fffbff;
  
  --color-secondary: #585e6c; /* Deep Charcoal */
  --color-secondary-dark: #272a30;
  --color-on-secondary: #ffffff;
  --color-secondary-container: #dde2f3;
  --color-on-secondary-container: #5e6473;
  
  --color-tertiary: #7a5500;
  --color-tertiary-container: #996c00;
  --color-on-tertiary: #ffffff;
  
  --color-success: #10b981; /* Emerald Green */
  --color-warning: #f59e0b; /* Gold/Amber */
  --color-error: #ba1a1a;
  --color-error-container: #ffdad6;
  --color-on-error-container: #93000a;
  
  /* Belt Colors mapping */
  --belt-white: #ffffff;
  --belt-yellow: #fbbf24;
  --belt-orange: #f97316;
  --belt-green: #10b981;
  --belt-blue: #3b82f6;
  --belt-purple: #8b5cf6;
  --belt-brown: #78350f;
  --belt-silver-brown: #a8a29e;
  --belt-golden-brown: #d97706;
  --belt-silver-black: #4b5563;
  --belt-black: #111827;
  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Rounded Corners */
  --radius-sm: 0.125rem;
  --radius-default: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-full: 9999px;
  
  /* Shadow */
  --shadow-soft: 0px 1px 3px rgba(0, 0, 0, 0.05), 0px 4px 6px rgba(26, 32, 44, 0.02);
  --shadow-hover: 0px 4px 10px rgba(0, 0, 0, 0.08), 0px 6px 12px rgba(26, 32, 44, 0.04);
}
/* Reset styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--font-body);
  background-color: var(--color-surface);
  color: var(--color-on-surface);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
}
/* Login Page Styling */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: radial-gradient(circle at top right, #3a1c1e, #181c1e 60%);
  padding: 16px;
}
.login-card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 420px;
  padding: 40px 32px;
  border-top: 5px solid var(--color-primary);
  animation: fadeIn 0.4s ease-out;
}
.login-logo {
  text-align: center;
  margin-bottom: 24px;
}
.login-logo h1 {
  font-size: 28px;
  color: var(--color-inverse-surface);
  letter-spacing: -0.01em;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.login-logo h1 span {
  color: var(--color-primary);
}
.login-logo p {
  color: var(--color-secondary);
  font-size: 14px;
  margin-top: 4px;
}
.login-group {
  margin-bottom: 20px;
}
.login-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-secondary);
  margin-bottom: 6px;
}
.login-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-default);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: all 0.2s ease;
}
.login-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(181, 24, 34, 0.15);
}
.login-btn {
  width: 100%;
  padding: 12px;
  background-color: var(--color-primary);
  color: var(--color-on-primary);
  border: none;
  border-radius: var(--radius-default);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-top: 10px;
}
.login-btn:hover {
  background-color: var(--color-primary-hover);
}
.login-error {
  background-color: var(--color-error-container);
  color: var(--color-on-error-container);
  padding: 10px 12px;
  border-radius: var(--radius-default);
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
  border: 1px solid #ffb9b9;
}
/* Dashboard Shell Layout */
.app-shell {
  display: flex;
  min-height: 100vh;
}
/* Sidebar Navigation */
.sidebar {
  width: 280px;
  background-color: var(--color-inverse-surface);
  color: var(--color-inverse-on-surface);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 100;
  transition: transform 0.3s ease;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
}
.sidebar-header {
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.sidebar-brand {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-brand span {
  color: var(--color-primary);
}
.sidebar-menu {
  list-style: none;
  padding: 16px 0;
  flex-grow: 1;
  overflow-y: auto;
  min-height: 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.sidebar-menu::-webkit-scrollbar {
  display: none;
}
.sidebar-item {
  margin: 4px 16px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #a0aec0;
  text-decoration: none;
  border-radius: var(--radius-default);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
}
.sidebar-link:hover {
  background-color: rgba(255, 255, 255, 0.03);
  color: #fff;
}
.sidebar-item.active .sidebar-link {
  background-color: rgba(255, 255, 255, 0.07);
  color: #fff;
}
.sidebar-item.active .sidebar-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 4px;
  background-color: var(--color-primary);
  border-radius: var(--radius-full);
}
.sidebar-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 12px;
  color: #a0aec0;
  text-align: center;
}
/* Main Content Area */
.main-wrapper {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
  margin-left: 280px;
}
/* App Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 90;
  height: 70px;
  background-color: #ffffff;
  border-bottom: 1px solid var(--color-surface-highest);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.header-title-container {
  display: flex;
  align-items: center;
  gap: 12px;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--color-on-surface);
}
.header-title h2 {
  font-size: 20px;
  font-family: var(--font-display);
}
.header-user-info {
  display: flex;
  align-items: center;
  gap: 16px;
}
.user-details {
  text-align: right;
}
.user-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-on-surface);
}
.user-role-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background-color: var(--color-secondary-container);
  color: var(--color-on-secondary-container);
  margin-top: 2px;
}
.user-role-badge.admin {
  background-color: #fee2e2;
  color: var(--color-primary);
}
.user-role-badge.coach {
  background-color: #d1fae5;
  color: var(--color-success);
}
.header-logout-btn {
  background: none;
  border: 1px solid var(--color-surface-highest);
  color: var(--color-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-default);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.header-logout-btn:hover {
  background-color: var(--color-surface-low);
  color: var(--color-primary);
  border-color: #fee2e2;
}
/* Page Containers */
.page-content {
  padding: 32px;
  flex-grow: 1;
  overflow-y: auto;
  max-width: var(--spacing-container-max);
  width: 100%;
  margin: 0 auto;
}
.dashboard-view {
  display: none;
}
.dashboard-view.active {
  display: block;
}
/* KPI Widgets Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.kpi-card {
  background-color: #ffffff;
  border: 1px solid var(--color-surface-highest);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-surface-dim);
}
.kpi-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.kpi-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-secondary);
}
.kpi-icon {
  font-size: 20px;
  color: var(--color-primary);
  background-color: #fee2e2;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.kpi-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-on-surface);
}
.kpi-footer {
  font-size: 12px;
  color: var(--color-secondary);
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}
/* Cards & Layout components */
.section-card {
  background-color: #ffffff;
  border: 1px solid var(--color-surface-highest);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 32px;
}
.section-title-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-surface-high);
}
.section-title {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--color-on-surface);
}
.section-subtitle {
  font-size: 14px;
  color: var(--color-secondary);
  margin-top: 4px;
}
/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-default);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  font-family: var(--font-body);
  height: 42px;
  box-sizing: border-box;
}
.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-on-primary);
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
}
.btn-secondary {
  background-color: transparent;
  color: var(--color-inverse-surface);
  border: 1px solid var(--color-secondary);
}
.btn-secondary:hover {
  background-color: var(--color-surface-low);
}
.btn-danger {
  background-color: var(--color-error);
  color: #fff;
  border-color: var(--color-error);
}
.btn-danger:hover {
  background-color: #9c1414;
  border-color: #9c1414;
}
.btn-sm {
  padding: 0 12px;
  font-size: 12px;
  height: 34px;
}
/* Form Styles */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}
.form-group {
  margin-bottom: 16px;
}
.form-group.full-width {
  grid-column: 1 / -1;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-on-surface);
  margin-bottom: 6px;
}
.form-group label .required {
  color: var(--color-primary);
}
.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-surface-highest);
  border-radius: var(--radius-default);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  background-color: #fff;
  transition: all 0.2s ease;
}
.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(181, 24, 34, 0.1);
}
.form-control:disabled {
  background-color: var(--color-surface-low);
  color: var(--color-secondary);
  cursor: not-allowed;
}
.file-upload-wrapper {
  border: 2px dashed var(--color-surface-highest);
  border-radius: var(--radius-default);
  padding: 16px;
  text-align: center;
  background-color: var(--color-surface-low);
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}
.file-upload-wrapper:hover {
  border-color: var(--color-primary);
  background-color: #fff;
}
.file-upload-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.file-upload-text {
  font-size: 13px;
  color: var(--color-secondary);
}
.file-upload-text strong {
  color: var(--color-primary);
}
.file-preview {
  margin-top: 8px;
  max-height: 80px;
  object-fit: contain;
  border-radius: var(--radius-default);
  display: none;
}
/* Two-Step Registration Wizard */
.wizard-stepper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 32px;
  gap: 16px;
}
.step-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--color-secondary);
}
.step-indicator.active {
  color: var(--color-primary);
}
.step-num {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background-color: var(--color-surface-highest);
  color: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.step-indicator.active .step-num {
  background-color: var(--color-primary);
  color: #fff;
}
.step-indicator.completed .step-num {
  background-color: var(--color-success);
  color: #fff;
}
.step-line {
  height: 2px;
  width: 60px;
  background-color: var(--color-surface-highest);
}
.wizard-panel {
  display: none;
}
.wizard-panel.active {
  display: block;
}
/* Data Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}
.data-table th {
  background-color: var(--color-surface-low);
  padding: 12px 16px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--color-secondary);
  border-bottom: 2px solid var(--color-surface-highest);
}
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-surface-highest);
  color: var(--color-on-surface);
  white-space: nowrap;
}
.data-table tbody tr {
  transition: background-color 0.15s ease;
}
.data-table tbody tr:hover {
  background-color: var(--color-surface-low);
}
/* Badges / Chips */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}
.badge-active {
  background-color: #d1fae5;
  color: #065f46;
}
.badge-inactive {
  background-color: #fee2e2;
  color: #991b1b;
}
.badge-pending {
  background-color: #fef3c7;
  color: #92400e;
}
.badge-success {
  background-color: #d1fae5;
  color: #065f46;
}
.badge-belt {
  border: 1px solid #d1d5db;
  background-color: #fff;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 11px;
  color: #111827;
}
/* Custom styles for belt classes */
.belt-border-white { border-color: #cccccc; color: #666; }
.belt-border-yellow { border-color: var(--belt-yellow); background-color: #fefbeb; color: #b45309; }
.belt-border-orange { border-color: var(--belt-orange); background-color: #fff7ed; color: #c2410c; }
.belt-border-green { border-color: var(--belt-green); background-color: #ecfdf5; color: #047857; }
.belt-border-blue { border-color: var(--belt-blue); background-color: #eff6ff; color: #1d4ed8; }
.belt-border-purple { border-color: var(--belt-purple); background-color: #f5f3ff; color: #6d28d9; }
.belt-border-brown { border-color: var(--belt-brown); background-color: #fdf6e2; color: var(--belt-brown); }
.belt-border-silver-brown { border-color: var(--belt-silver-brown); background-color: #fafaf9; color: #44403c; }
.belt-border-golden-brown { border-color: var(--belt-golden-brown); background-color: #fffbeb; color: #b45309; }
.belt-border-silver-black { border-color: var(--belt-silver-black); background-color: #f3f4f6; color: #1f2937; }
.belt-border-black { border-color: var(--belt-black); background-color: #111827; color: #ffffff; }
/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background-color: rgba(24, 28, 30, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.modal-container {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 680px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: translateY(-20px);
  transition: transform 0.25s ease;
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}
.modal-overlay.active .modal-container {
  transform: translateY(0);
}
.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-surface-highest);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-on-surface);
}
.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--color-secondary);
}
.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex-grow: 1;
}
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--color-surface-highest);
  background-color: var(--color-surface-low);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
/* ID Card Component Layout */
.id-card-modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.id-card-wrapper {
  width: 320px;
  height: 508px; /* Ratio equivalent to 638x1013 pixels scale */
  background-color: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-surface-highest);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  font-family: var(--font-body);
}
/* Watermark/Status Indicator */
.id-card-inactive-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 900;
  color: rgba(220, 38, 38, 0.15);
  border: 4px dashed rgba(220, 38, 38, 0.15);
  padding: 10px 20px;
  pointer-events: none;
  z-index: 5;
  text-transform: uppercase;
}
.id-card-header {
  background-color: var(--color-primary);
  color: #fff;
  padding: 14px;
  text-align: center;
  border-bottom: 3px solid var(--color-warning);
}
.id-card-header h3 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.id-card-header p {
  font-size: 10px;
  color: #fca5a5;
  margin-top: 2px;
}
.id-card-body {
  padding: 16px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #fafafa;
}
.id-card-photo-container {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 12px;
  border: 4px solid var(--belt-white);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  background-color: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
}
.id-card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.id-card-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-on-surface);
  text-align: center;
  margin-bottom: 4px;
}
.id-card-id {
  font-size: 11px;
  font-weight: 700;
  background-color: var(--color-surface-dim);
  color: var(--color-inverse-surface);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}
.id-card-details {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 8px;
  font-size: 11px;
  margin-bottom: 16px;
}
.id-card-detail-group {
  display: flex;
  flex-direction: column;
}
.id-card-label {
  font-size: 9px;
  color: var(--color-secondary);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1px;
}
.id-card-value {
  color: var(--color-on-surface);
  font-weight: 600;
}
.id-card-footer {
  background-color: var(--color-inverse-surface);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.id-card-footer-text {
  font-size: 9px;
  color: #a0aec0;
}
.id-card-barcode {
  font-family: monospace;
  font-size: 11px;
  color: #fff;
  letter-spacing: 2px;
  background-color: #000;
  padding: 2px 6px;
  border-radius: 2px;
}
/* Custom scale wrapper for exact pixel export */
.id-card-actual-export {
  width: 638px;
  height: 1013px;
  position: absolute;
  top: -9999px;
  left: -9999px;
  background-color: #fff;
  border: 1px solid #ccc;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
}
/* Notification logs drawer */
.notification-log-panel {
  position: fixed;
  right: -360px;
  top: 0;
  width: 360px;
  height: 100%;
  background-color: #ffffff;
  box-shadow: -4px 0 15px rgba(0, 0, 0, 0.08);
  z-index: 999;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 1px solid var(--color-surface-highest);
}
.notification-log-panel.active {
  right: 0;
}
.notification-log-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-surface-highest);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--color-surface-low);
}
.notification-log-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
}
.notification-log-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--color-secondary);
}
.notification-log-body {
  padding: 16px;
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.notif-card {
  border: 1px solid var(--color-surface-highest);
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 13px;
  background-color: #fff;
  transition: all 0.2s ease;
}
.notif-card:hover {
  border-color: var(--color-surface-dim);
}
.notif-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 11px;
  color: var(--color-secondary);
}
.notif-subject {
  font-weight: 600;
  color: var(--color-inverse-surface);
  margin-bottom: 4px;
}
.notif-recipient {
  font-size: 11px;
  color: var(--color-primary);
  margin-bottom: 6px;
}
.notif-content {
  color: var(--color-on-surface);
  line-height: 18px;
  background-color: var(--color-surface-low);
  padding: 8px;
  border-radius: var(--radius-sm);
  font-family: monospace;
  white-space: pre-wrap;
  max-height: 120px;
  overflow-y: auto;
  font-size: 11px;
}
/* Floating helper button */
.helper-floating-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background-color: var(--color-inverse-surface);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 998;
  font-size: 20px;
  transition: all 0.2s ease;
  border: none;
}
.helper-floating-btn:hover {
  background-color: var(--color-primary);
  transform: scale(1.05);
}
/* Grid helper for details views */
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.detail-item {
  display: flex;
  flex-direction: column;
}
.detail-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-secondary);
  text-transform: uppercase;
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}
.detail-value {
  font-size: 14px;
  color: var(--color-on-surface);
  font-weight: 500;
}
/* Search and filter bar styling */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.filter-item {
  flex: 1;
  min-width: 150px;
}
.filter-item-large {
  flex: 2;
  min-width: 250px;
}
/* Order Management Cart Grid */
.cart-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: start;
}
.cart-container > div {
  min-width: 0;
}
@media (max-width: 1199px) {
  .cart-container {
    grid-template-columns: 1fr;
  }
}
/* Wallet Grid */
.wallet-main-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 24px;
  align-items: start;
  max-width: 1200px;
  width: 100%;
}
.wallet-main-grid > div {
  min-width: 0;
}
@media (max-width: 1024px) {
  .wallet-main-grid {
    grid-template-columns: 1fr;
  }
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.product-card {
  background-color: #fff;
  border: 1px solid var(--color-surface-highest);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-soft);
  transition: all 0.2s ease;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-surface-dim);
}
.product-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}
.product-meta {
  font-size: 12px;
  color: var(--color-secondary);
  margin-bottom: 8px;
}
.product-price {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
}
.product-stock {
  font-size: 11px;
  color: var(--color-success);
  margin-top: 4px;
}
.product-stock.low-stock {
  color: var(--color-error);
}
.product-stock.out-of-stock {
  color: #718096;
}
/* Responsive breakdowns & backdrops */
.sidebar-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background-color: rgba(24, 28, 30, 0.5);
  z-index: 99;
}
.sidebar-backdrop.active {
  display: block;
}
@media (max-width: 991px) {
  .sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    bottom: 0;
    height: auto;
    transition: left 0.3s ease;
  }
  
  .sidebar.active {
    left: 0;
  }
  
  .main-wrapper {
    margin-left: 0;
  }
  
  .menu-toggle {
    display: block;
  }
}
@media (max-width: 576px) {
  .page-content {
    padding: 16px;
  }
  
  .app-header {
    padding: 0 16px;
  }
  
  .kpi-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 360px) {
  .id-card-wrapper {
    transform: scale(0.85);
    transform-origin: top center;
  }
}
.exam-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  align-items: flex-start;
}
.exam-grid > div {
  min-width: 0;
}
@media (max-width: 1199px) {
  .exam-grid {
    grid-template-columns: 1fr;
  }
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  margin-top: 24px;
  gap: 24px;
}
.dashboard-grid > div {
  min-width: 0;
}
@media (max-width: 991px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}
/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Print Overrides for Reports */
@media print {
  body {
    background-color: #fff;
    color: #000;
  }
  .sidebar, .app-header, .helper-floating-btn, .notification-log-panel, .btn, .filter-bar {
    display: none !important;
  }
  .main-wrapper {
    margin: 0 !important;
    padding: 0 !important;
  }
  .page-content {
    padding: 0 !important;
  }
  .section-card {
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  #reportHeaderTitle {
    display: block !important;
    font-size: 20pt !important;
    margin-bottom: 20px !important;
    text-align: center;
  }
  .data-table th, .data-table td {
    border: 1px solid #ddd !important;
    padding: 8px !important;
    font-size: 10pt !important;
  }
}
/* Profile Dropdown Menu styling */
.profile-dropdown-container {
  position: relative;
}
.profile-dropdown-trigger {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  transition: background-color 0.2s ease;
}
.profile-dropdown-trigger:hover {
  background-color: var(--color-surface-low);
}
.profile-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--color-primary-container);
  color: var(--color-on-primary-container);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  font-family: var(--font-display);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
}
.profile-greet {
  font-size: 14px;
  color: var(--color-on-surface);
  font-weight: 500;
}
.profile-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  background-color: #ffffff;
  border: 1px solid var(--color-surface-highest);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  display: none;
  animation: fadeIn 0.15s ease-out;
}
.profile-dropdown-menu.active {
  display: block;
}
.profile-dropdown-header {
  padding: 16px;
}
.profile-menu-item {
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-on-surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background-color 0.15s ease;
  border-bottom-left-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
}
.profile-menu-item:hover {
  background-color: var(--color-surface-low);
  color: var(--color-primary);
}
/* Custom Global Scrollbar Styles */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-surface-low);
}
::-webkit-scrollbar-thumb {
  background: var(--color-surface-highest);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-surface-dim);
}
* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-surface-highest) var(--color-surface-low);
}
/* Smooth Dynamic View Transition */
.page-content {
  animation: fadeInView 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes fadeInView {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Custom Standardized Pagination Styles */
.pagination {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 6px;
  justify-content: center;
  align-items: center;
}
.pagination li {
  display: inline-block;
}
.pagination li a,
.pagination li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-default);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}
.pagination li a {
  background-color: transparent;
  color: var(--color-inverse-surface);
  border: 1px solid var(--color-secondary);
}
.pagination li a:hover {
  background-color: var(--color-surface-low);
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.pagination li.active span {
  background-color: var(--color-primary);
  color: #fff;
  border: 1px solid var(--color-primary);
}
.pagination li.disabled span {
  background-color: transparent;
  color: var(--color-secondary);
  border: 1px solid var(--color-surface-highest);
  opacity: 0.5;
  cursor: not-allowed;
}
