/* ==========================================================================
   OMOHA.TECH Enterprise Operations Platform Design System
   Modern Enterprise SaaS — Polished, Restrained, Fully Responsive Aesthetic
   ========================================================================== */

:root {
  /* Corporate Color Palette */
  --bg-app: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-hover: #f8fafc;
  --bg-sidebar: #0f172a;
  --bg-sidebar-hover: #1e293b;
  --bg-sidebar-active: #1e293b;

  /* Typography */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-inverted: #f8fafc;

  /* Corporate Accents */
  --omoha-lime: #B7D63D;
  --omoha-lime-hover: #c4e246;
  --omoha-lime-text: #0f172a;
  --omoha-lime-border: #a3c32e;
  --brand-navy: #1e293b;
  --brand-blue: #2563eb;
  --brand-blue-hover: #1d4ed8;
  
  /* Status Colors */
  --status-success-bg: #f0fdf4;
  --status-success-text: #166534;
  --status-success-border: #bbf7d0;

  --status-warning-bg: #fffbeb;
  --status-warning-text: #92400e;
  --status-warning-border: #fde68a;

  --status-danger-bg: #fef2f2;
  --status-danger-text: #991b1b;
  --status-danger-border: #fecaca;

  --status-info-bg: #f0f9ff;
  --status-info-text: #075985;
  --status-info-border: #bae6fd;

  --status-neutral-bg: #f1f5f9;
  --status-neutral-text: #475569;
  --status-neutral-border: #cbd5e1;

  /* Borders & Radii */
  --border-main: #e2e8f0;
  --border-subtle: #f1f5f9;
  --border-focus: #3b82f6;

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 9px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Restrained Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -4px rgba(0, 0, 0, 0.02);

  /* Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, Monaco, monospace;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  touch-action: manipulation;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* Layout Framework */
.app-container {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  position: relative;
}

/* Backdrop for Mobile Navigation Drawer */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(2px);
  z-index: 45;
  display: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.sidebar-backdrop.active {
  display: block;
  opacity: 1;
}

/* Sidebar (Desktop Persistent / Mobile Drawer) */
.app-sidebar {
  width: 250px;
  background-color: var(--bg-sidebar);
  color: var(--text-inverted);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-logo-container {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sidebar-logo-img {
  height: 36px;
  width: auto;
}

.btn-sidebar-close {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.12s ease;
}

.btn-sidebar-close:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.sidebar-menu {
  padding: 14px 12px;
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.menu-section-header {
  font-size: 0.68rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.08em;
  padding: 12px 12px 4px;
  text-transform: uppercase;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: #cbd5e1;
  font-size: 0.84rem;
  font-weight: 500;
  min-height: 40px;
  transition: all 0.12s ease;
  border-left: 3px solid transparent;
}

.menu-item:hover {
  background-color: var(--bg-sidebar-hover);
  color: #ffffff;
}

.menu-item.active {
  background-color: var(--bg-sidebar-active);
  color: #ffffff;
  font-weight: 600;
  border-left-color: var(--omoha-lime);
}

.menu-icon {
  font-size: 0.95rem;
  opacity: 0.85;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-footer {
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background-color: rgba(0, 0, 0, 0.15);
}

.employee-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.emp-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.emp-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.emp-role {
  font-size: 0.68rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn-signout {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--radius-xs);
  font-size: 0.8rem;
  font-weight: 600;
  min-width: 34px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s ease;
}

.btn-signout:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  background-color: rgba(255, 255, 255, 0.08);
}

/* Main Content Area */
.app-main {
  margin-left: 250px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: calc(100% - 250px);
}

/* Application Header */
.app-header {
  height: 56px;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 30;
  gap: 12px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.btn-hamburger {
  display: none;
  background: transparent;
  border: 1px solid var(--border-main);
  border-radius: var(--radius-sm);
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 1.1rem;
  transition: all 0.12s ease;
  flex-shrink: 0;
}

.btn-hamburger:hover {
  background-color: var(--bg-subtle);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-main);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  width: 100%;
  max-width: 360px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  transition: border 0.12s ease, background-color 0.12s ease;
  min-width: 0;
}

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

.header-search input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  min-width: 0;
  font-family: inherit;
  font-size: 0.82rem;
  color: var(--text-primary);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.notif-bell-btn {
  background: transparent;
  border: 1px solid var(--border-main);
  border-radius: var(--radius-sm);
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  position: relative;
  transition: all 0.12s ease;
}

.notif-bell-btn:hover {
  background-color: var(--bg-subtle);
  color: var(--text-primary);
}

.notif-badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: #dc2626;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: var(--radius-full);
}

/* Page Body & Spacing Framework */
.page-body {
  padding: 28px 32px;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  min-width: 0;
}

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

.page-title {
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.25;
  word-break: break-word;
}

.page-subtitle {
  font-size: clamp(0.8rem, 2vw, 0.88rem);
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 5px;
  line-height: 1.4;
  word-break: break-word;
}

.page-date-meta {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Cards */
.card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  min-width: 0;
  overflow: hidden;
}

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

.card-title {
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.card-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Refined KPI Cards */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
  min-width: 0;
}

.metric-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease;
  min-width: 0;
}

.metric-box:hover {
  border-color: #cbd5e1;
}

.metric-box-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.metric-box-value {
  font-size: clamp(1.4rem, 3.5vw, 1.85rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
  word-break: break-word;
}

.metric-box-sub {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 4px;
  line-height: 1.3;
}

/* Standardized Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.12s ease;
  white-space: nowrap;
  touch-action: manipulation;
  min-height: 38px;
}

/* Primary Button: OMOHA Lemon-Green Accent */
.btn-primary {
  background-color: var(--omoha-lime);
  color: var(--omoha-lime-text);
  border-color: var(--omoha-lime-border);
  box-shadow: 0 1px 2px rgba(183, 214, 61, 0.3);
}

.btn-primary:hover {
  background-color: var(--omoha-lime-hover);
}

/* Secondary Button */
.btn-secondary {
  background-color: var(--bg-surface);
  border-color: var(--border-main);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--bg-subtle);
  border-color: #cbd5e1;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.78rem;
  min-height: 34px;
}

.btn-xs {
  padding: 4px 8px;
  font-size: 0.72rem;
  min-height: 28px;
}

.btn-outline-danger {
  background-color: transparent;
  border-color: var(--status-danger-border);
  color: var(--status-danger-text);
}

.btn-outline-danger:hover {
  background-color: var(--status-danger-bg);
}

/* Section Tabs / Segmented Buttons Component */
.section-tabs-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 2px;
  width: 100%;
}

.section-tabs-bar::-webkit-scrollbar {
  display: none;
}

.section-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-main);
  background-color: var(--bg-surface);
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-sm);
  min-height: 38px;
  touch-action: manipulation;
}

.section-btn:hover {
  background-color: #f7fee7;
  border-color: #d9f99d;
  color: var(--text-primary);
}

.section-btn.active {
  background-color: var(--omoha-lime);
  border-color: #a3c32e;
  color: var(--omoha-lime-text);
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(183, 214, 61, 0.4);
}

.section-btn:focus-visible {
  outline: 2px solid var(--omoha-lime);
  outline-offset: 2px;
}

.section-btn-count {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  background-color: rgba(0, 0, 0, 0.08);
}

.section-btn.active .section-btn-count {
  background-color: rgba(0, 0, 0, 0.15);
  color: var(--text-primary);
}

/* Tables & Responsive Scrollable Matrix */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
}

.enterprise-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.enterprise-table th {
  background-color: var(--bg-subtle);
  color: var(--text-muted);
  font-weight: 600;
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-main);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.enterprise-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
  vertical-align: middle;
}

.enterprise-table tbody tr:hover {
  background-color: var(--bg-hover);
}

/* Restrained Status Badges */
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid transparent;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.status-active, .status-applied, .status-connected {
  background-color: var(--status-info-bg);
  color: var(--status-info-text);
  border-color: var(--status-info-border);
}

.status-confirmed, .status-offer, .status-completed {
  background-color: var(--status-success-bg);
  color: var(--status-success-text);
  border-color: var(--status-success-border);
}

.status-interview, .status-assessment, .status-pending {
  background-color: var(--status-warning-bg);
  color: var(--status-warning-text);
  border-color: var(--status-warning-border);
}

.status-rejected, .status-closed, .status-error {
  background-color: var(--status-danger-bg);
  color: var(--status-danger-text);
  border-color: var(--status-danger-border);
}

.status-neutral {
  background-color: var(--status-neutral-bg);
  color: var(--status-neutral-text);
  border-color: var(--status-neutral-border);
}

/* Priority Indicators */
.priority-indicator {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  white-space: nowrap;
}

.priority-urgent { background-color: #fee2e2; color: #991b1b; }
.priority-high { background-color: #fef3c7; color: #92400e; }
.priority-normal { background-color: #f1f5f9; color: #475569; }
.priority-low { background-color: #f8fafc; color: #64748b; }

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  min-width: 0;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  min-width: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
  min-width: 0;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 8px 12px;
  height: 38px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-family: inherit;
  outline: none;
  transition: border 0.12s ease;
}

.form-textarea {
  height: auto;
  min-height: 70px;
  resize: vertical;
}

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

.form-helper {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Wizard Steps Header */
.wizard-steps-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  border-bottom: 1px solid var(--border-main);
  padding: 14px 20px;
  background-color: var(--bg-subtle);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.wizard-steps-header::-webkit-scrollbar {
  display: none;
}

.wizard-step-node {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.wizard-step-num {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background-color: #cbd5e1;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}

.wizard-step-node.active {
  color: var(--text-primary);
}

.wizard-step-node.active .wizard-step-num {
  background-color: var(--brand-navy);
}

.wizard-step-node.completed .wizard-step-num {
  background-color: #10b981;
}

.wizard-body {
  padding: 24px;
  min-width: 0;
}

.wizard-section-title {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  font-weight: 600;
  margin-bottom: 4px;
}

.wizard-section-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.4;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(2px);
  z-index: 1050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.active {
  display: flex;
}

.modal-box {
  background-color: var(--bg-surface);
  border-radius: var(--radius-md);
  max-width: 600px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-main);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  min-width: 0;
}

.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border-main);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background-color: var(--bg-subtle);
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* Refined Empty States */
.empty-data-box {
  text-align: center;
  padding: 36px 20px;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 1.75rem;
  margin-bottom: 8px;
  color: #94a3b8;
  display: inline-block;
}

.empty-data-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.empty-data-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Credential Display Box */
.credential-display-box {
  background-color: #f8fafc;
  border: 1px solid var(--border-main);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.credential-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background-color: #ffffff;
  border: 1px solid var(--border-main);
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  margin-top: 4px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.credential-val {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-navy);
  word-break: break-all;
}

.credential-warning {
  background-color: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  padding: 10px 12px;
  border-radius: var(--radius-xs);
  font-size: 0.78rem;
  line-height: 1.4;
  margin-top: 8px;
}

/* Toast */
.toast-bar {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: calc(100vw - 32px);
}

.toast-msg {
  background-color: #0f172a;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  box-shadow: var(--shadow-md);
  word-break: break-word;
}

/* Helper Utilities */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.p-0 { padding: 0 !important; }
.p-3 { padding: 12px !important; }
.p-4 { padding: 16px !important; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.ml-1 { margin-left: 4px; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.font-mono { font-family: var(--font-mono); }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.85rem; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-primary { color: var(--text-primary); }
.text-light { color: var(--text-light); }
.text-emerald { color: #059669; }
.text-danger { color: #dc2626; }
.overflow-hidden { overflow: hidden; }
.space-y-2 > * + * { margin-top: 8px; }
.space-y-3 > * + * { margin-top: 12px; }
.leading-relaxed { line-height: 1.6; }
.bg-slate-50 { background-color: #f8fafc; }
.border-main { border-color: var(--border-main); }
.border-subtle { border-color: var(--border-subtle); }
.rounded { border-radius: var(--radius-sm); }
.border { border: 1px solid var(--border-main); }
.border-b { border-bottom: 1px solid var(--border-main); }
.hover\:underline:hover { text-decoration: underline; }

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Laptop, Tablet, Mobile)
   ========================================================================== */

/* Laptop / Medium Desktop (max-width: 1024px) */
@media (max-width: 1024px) {
  .app-sidebar {
    transform: translateX(-100%);
    width: 270px;
    max-width: 85vw;
    box-shadow: var(--shadow-lg);
  }

  .app-sidebar.sidebar-open {
    transform: translateX(0);
  }

  .btn-sidebar-close {
    display: inline-flex;
  }

  .app-main {
    margin-left: 0;
    width: 100%;
  }

  .btn-hamburger {
    display: inline-flex;
  }

  .app-header {
    padding: 0 16px;
  }

  .page-body {
    padding: 24px 20px;
  }
}

/* Tablet & Large Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .page-body {
    padding: 16px 14px;
  }

  .page-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 18px;
  }

  .page-header > div:last-child {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }

  .page-header > div:last-child .btn {
    flex: 1;
  }

  .metrics-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 18px;
  }

  .form-grid, .form-grid-3 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .card {
    padding: 16px;
    margin-bottom: 16px;
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .card-header > a, .card-header > button {
    align-self: flex-start;
  }

  .header-search {
    max-width: 100%;
  }

  /* Prevent auto-zoom jump on iOS by using 16px minimum font size for form controls */
  .form-input, .form-select, .form-textarea, .header-search input {
    font-size: 16px;
  }

  .modal-box {
    max-width: 100%;
    width: 100%;
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
  }

  .modal-header, .modal-body, .modal-footer {
    padding: 14px 16px;
  }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
  .page-body {
    padding: 12px 10px;
  }

  .app-header {
    padding: 0 10px;
    gap: 8px;
  }

  .btn-hamburger {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
  }

  .notif-bell-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
  }

  .header-search {
    padding: 6px 10px;
  }

  .modal-footer {
    flex-direction: column-reverse;
  }

  .modal-footer .btn {
    width: 100%;
  }

  .toast-bar {
    left: 12px;
    right: 12px;
    bottom: 16px;
  }

  .credential-field {
    flex-direction: column;
    align-items: stretch;
  }

  .credential-field button {
    width: 100%;
    margin-top: 6px;
  }
}

/* Ultra-Narrow Mobile (max-width: 360px) */
@media (max-width: 360px) {
  .metrics-row {
    grid-template-columns: 1fr;
  }

  .page-title {
    font-size: 1.25rem;
  }

  .section-btn {
    padding: 7px 10px;
    font-size: 0.78rem;
  }
}
