/* ============================================
   SUPREME ONE HUB - Main Stylesheet
   Unified with Supreme One Platform Design System
   ============================================ */

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

:root {
  /* Supreme One Brand Colors */
  --primary-blue: #1e40af;
  --secondary-red: #dc2626;
  --dark-gray: #1f2937;
  --light-gray: #f3f4f6;
  --white: #ffffff;
  --success-green: #10b981;
  --warning-yellow: #f59e0b;
  --danger-red: #dc2626;
  --info-blue: #3b82f6;
  --text-dark: #111827;
  --text-light: #6b7280;
  --border-color: #e5e7eb;

  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
}

body {
  font-family: var(--font-family);
  background: #f8fafc;
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--primary-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ============================================
   LOGIN PAGE
   ============================================ */

.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-red) 100%);
}

.login-container {
  width: 100%;
  max-width: 400px;
  padding: var(--spacing-lg);
}

.login-box {
  background: var(--white);
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px rgba(0,0,0,0.25);
  padding: 2.5rem;
}

.login-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.login-logo {
  max-width: 120px;
  margin-bottom: var(--spacing-md);
}

.login-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-gray);
  margin-bottom: var(--spacing-xs);
}

.login-header p {
  color: var(--text-light);
  font-size: 0.875rem;
}

.login-form .form-group {
  margin-bottom: var(--spacing-md);
}

.login-form label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
  font-size: 0.875rem;
}

.login-form input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.3s;
}

.login-form input:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.login-links {
  text-align: center;
  margin-top: var(--spacing-md);
}

.login-links a {
  font-size: 0.875rem;
}

.login-footer {
  text-align: center;
  margin-top: var(--spacing-lg);
  color: var(--text-light);
  font-size: 0.875rem;
}

.form-description {
  color: var(--text-light);
  font-size: 0.875rem;
  margin-bottom: var(--spacing-md);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  gap: 0.5rem;
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-red) 100%);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #1e3a8a 0%, #b91c1c 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.btn-secondary {
  background: var(--light-gray);
  color: var(--text-dark);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover:not(:disabled) {
  background: #e5e7eb;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
}

.btn-outline:hover:not(:disabled) {
  background: var(--primary-blue);
  color: white;
}

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

.btn-danger:hover:not(:disabled) {
  background: #b91c1c;
}

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

.btn-success:hover:not(:disabled) {
  background: #059669;
}

.btn-warning {
  background: var(--warning-yellow);
  color: var(--text-dark);
}

.btn-warning:hover:not(:disabled) {
  background: #d97706;
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-link {
  background: none;
  border: none;
  color: var(--primary-blue);
  padding: var(--spacing-xs) var(--spacing-sm);
  text-decoration: underline;
}

.btn-link:hover {
  color: #1e3a8a;
}

.btn-group {
  display: flex;
  gap: var(--spacing-sm);
}

/* ============================================
   SPINNER
   ============================================ */

.spinner {
  animation: rotate 1s linear infinite;
  width: 24px;
  height: 24px;
}

.spinner-path {
  stroke: currentColor;
  stroke-linecap: round;
  animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
  100% { transform: rotate(360deg); }
}

@keyframes dash {
  0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }
  50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; }
  100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; }
}

.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xl);
  color: var(--text-light);
}

.loading-spinner p {
  margin-top: var(--spacing-md);
}

/* ============================================
   MESSAGES
   ============================================ */

.error-message {
  background-color: #fee2e2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: var(--spacing-md);
  border-radius: 0.5rem;
}

.success-message {
  background-color: #d1fae5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: var(--spacing-md);
  border-radius: 0.5rem;
}

/* ============================================
   MAIN HEADER
   ============================================ */

.main-header {
  background: var(--white);
  padding: 1rem 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
}

.header-left {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.header-logo {
  height: 55px;
  width: auto;
  object-fit: contain;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--dark-gray);
}

.logo-icon {
  width: 40px;
  height: 40px;
  margin-right: 10px;
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-red));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 0.875rem;
}

.header-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark-gray);
}

.main-nav {
  display: flex;
  gap: 0.5rem;
}

.nav-tab {
  padding: 0.625rem 1.25rem;
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  border-radius: 0.5rem;
  transition: all 0.2s;
  font-size: 0.9375rem;
  text-decoration: none;
  font-weight: 500;
}

.nav-tab:hover {
  background: var(--light-gray);
  color: var(--text-dark);
  text-decoration: none;
}

.nav-tab.active {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-red) 100%);
  color: white;
}

.header-right {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

/* User Menu */
.user-menu {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-menu-btn {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  background: none;
  border: none;
  color: var(--text-dark);
  cursor: pointer;
  padding: var(--spacing-sm);
  border-radius: 0.5rem;
}

.user-menu-btn:hover {
  background: var(--light-gray);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-red));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  color: white;
}

.user-name {
  font-size: 0.875rem;
  font-weight: 500;
}

.user-menu-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  display: none;
  overflow: hidden;
  margin-top: 4px;
}

.user-menu-dropdown.show {
  display: block;
}

.user-menu-dropdown a {
  display: block;
  padding: var(--spacing-sm) var(--spacing-md);
  color: var(--text-dark);
  transition: background 0.2s;
}

.user-menu-dropdown a:hover {
  background: var(--light-gray);
  text-decoration: none;
}

.user-menu-dropdown hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: var(--spacing-xs) 0;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main-content {
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 2rem;
  min-height: calc(100vh - 120px);
}

/* ============================================
   DASHBOARD
   ============================================ */

.dashboard-header {
  margin-bottom: 2rem;
}

.dashboard-header h2 {
  font-size: 2rem;
  color: var(--dark-gray);
  font-weight: 600;
}

.dashboard-header p {
  color: var(--text-light);
  font-size: 1rem;
}

/* Welcome Banner - Gradient Style */
.welcome-banner {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-red) 100%);
  border-radius: 1rem;
  padding: 2rem 2.5rem;
  margin-bottom: 2rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.welcome-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.welcome-banner h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.welcome-banner p {
  font-size: 1rem;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

.welcome-section {
  margin-bottom: 2rem;
}

.welcome-section h1 {
  font-size: 2.5rem;
  color: var(--dark-gray);
}

.motto {
  color: var(--secondary-red);
  font-size: 1.2rem;
  font-style: italic;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
}

.dashboard-card {
  background: white;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.dashboard-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

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

.card-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--dark-gray);
}

.card-header a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary-blue);
  text-decoration: none;
}

.card-header a:hover {
  text-decoration: underline;
}

.card-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--dark-gray);
}

.card-body {
  padding: 0;
}

.card-footer {
  padding-top: var(--spacing-md);
  margin-top: var(--spacing-md);
  border-top: 1px solid var(--border-color);
  background: var(--light-gray);
  margin: var(--spacing-md) calc(-1.5rem);
  margin-bottom: calc(-1.5rem);
  padding: var(--spacing-md) 1.5rem;
  border-radius: 0 0 1rem 1rem;
}

/* Stats Cards - Training App Style */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.stat-card-content {
  flex: 1;
}

.stat-card h4 {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

.stat-card .stat-value {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
}

.stat-card .stat-change {
  font-size: 0.875rem;
  margin-top: var(--spacing-xs);
}

.stat-card .stat-change.positive {
  color: var(--success-green);
}

.stat-card .stat-change.negative {
  color: var(--danger-red);
}

.stat-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  margin-left: 1rem;
}

.stat-card-icon.blue {
  background: rgba(59, 130, 246, 0.1);
  color: var(--info-blue);
}

.stat-card-icon.green {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success-green);
}

.stat-card-icon.red {
  background: rgba(220, 38, 38, 0.1);
  color: var(--danger-red);
}

.stat-card-icon.yellow {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning-yellow);
}

.stat-card-icon.purple {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

/* Performance Stats */
.performance-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.stat {
  text-align: center;
  padding: 0.5rem;
  background: var(--light-gray);
  border-radius: 0.5rem;
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-light);
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-blue);
}

/* ============================================
   TABLES
   ============================================ */

.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

th {
  background: var(--light-gray);
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
  color: var(--text-dark);
}

td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

tbody tr:hover {
  background: #f9fafb;
}

/* ============================================
   FORMS
   ============================================ */

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
  font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-group small {
  display: block;
  margin-top: var(--spacing-xs);
  color: var(--text-light);
  font-size: 0.875rem;
}

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

/* ============================================
   BADGES & TAGS
   ============================================ */

.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
}

.badge-success {
  background: #d1fae5;
  color: #065f46;
}

.badge-warning {
  background: #fef3c7;
  color: #92400e;
}

.badge-danger {
  background: #fee2e2;
  color: #991b1b;
}

.badge-info {
  background: #dbeafe;
  color: #1e40af;
}

.badge-secondary {
  background: #e5e7eb;
  color: #4b5563;
}

/* Priority Badges */
.priority-urgent {
  background: var(--danger-red);
  color: white;
}

.priority-high {
  background: #f97316;
  color: white;
}

.priority-medium {
  background: #eab308;
  color: white;
}

.priority-low {
  background: var(--success-green);
  color: white;
}

/* ============================================
   MODALS
   ============================================ */

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal.open {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 1.25rem;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px rgba(0,0,0,0.25);
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 1.25rem 1.25rem 0 0;
}

.modal-header h2 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xs);
  color: var(--dark-gray);
  font-weight: 600;
}

.modal-header p {
  color: var(--text-light);
  font-size: 0.875rem;
}

.modal-content form {
  padding: var(--spacing-lg);
}

.modal-content.modal-sm {
  max-width: 400px;
}

.modal-content.modal-lg {
  max-width: 700px;
}

.modal-content.modal-xl {
  max-width: 900px;
}

.modal-body {
  padding: var(--spacing-lg);
  max-height: 60vh;
  overflow-y: auto;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--spacing-sm);
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  background: #f8fafc;
  border-radius: 0 0 1.25rem 1.25rem;
}

.modal-close {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-light);
  cursor: pointer;
  line-height: 1;
  padding: var(--spacing-xs);
  border-radius: 0.25rem;
  transition: color 0.2s, background 0.2s;
}

.modal-close:hover {
  color: var(--text-dark);
  background: var(--light-gray);
}

/* ============================================
   FORM TABS (Multi-step forms)
   ============================================ */

.form-tabs {
  display: flex;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: var(--spacing-lg);
  gap: var(--spacing-xs);
}

.form-tab {
  padding: var(--spacing-sm) var(--spacing-lg);
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}

.form-tab:hover {
  color: var(--text-dark);
}

.form-tab.active {
  color: var(--primary-blue);
}

.form-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-blue);
}

.form-tab-content {
  display: none;
}

.form-tab-content.active {
  display: block;
}

/* ============================================
   CHECKBOX & RADIO GROUPS
   ============================================ */

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.checkbox-item input[type="checkbox"],
.checkbox-item input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary-blue);
}

.checkbox-item label {
  margin: 0;
  font-weight: normal;
  cursor: pointer;
}

/* Switch/Toggle */
.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border-color);
  transition: 0.3s;
  border-radius: 24px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.switch input:checked + .switch-slider {
  background-color: var(--primary-blue);
}

.switch input:checked + .switch-slider:before {
  transform: translateX(24px);
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */

.toast-container {
  position: fixed;
  top: 80px;
  right: var(--spacing-lg);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  max-width: 400px;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md) var(--spacing-lg);
  background: white;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.3s ease;
  border-left: 4px solid var(--info-blue);
}

.toast.success {
  border-left-color: var(--success-green);
}

.toast.error {
  border-left-color: var(--danger-red);
}

.toast.warning {
  border-left-color: var(--warning-yellow);
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 600;
  margin-bottom: 2px;
}

.toast-message {
  font-size: 0.875rem;
  color: var(--text-light);
}

.toast-close {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  font-size: 18px;
  padding: var(--spacing-xs);
}

.toast-close:hover {
  color: var(--text-dark);
}

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

@keyframes slideOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}

.toast.hiding {
  animation: slideOut 0.3s ease forwards;
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-lg);
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark-gray);
}

.section-header .btn {
  flex-shrink: 0;
}

/* ============================================
   CONFIRMATION MODAL
   ============================================ */

.confirm-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--spacing-lg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.confirm-icon.danger {
  background: #fee2e2;
  color: var(--danger-red);
}

.confirm-icon.warning {
  background: #fef3c7;
  color: #92400e;
}

.confirm-icon.success {
  background: #d1fae5;
  color: var(--success-green);
}

.confirm-content {
  text-align: center;
  padding: var(--spacing-lg);
}

.confirm-content h3 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
}

.confirm-content p {
  color: var(--text-light);
  margin-bottom: var(--spacing-lg);
}

.confirm-actions {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
}

/* ============================================
   EMPTY STATES
   ============================================ */

.empty-state {
  text-align: center;
  padding: var(--spacing-xl);
  color: var(--text-light);
}

.empty-state svg {
  width: 64px;
  height: 64px;
  margin-bottom: var(--spacing-md);
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xs);
  color: var(--text-dark);
}

/* ============================================
   SARAH AI CHAT WIDGET
   ============================================ */

.sarah-chat-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
}

.sarah-toggle {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-red));
  color: white;
  border: none;
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: 100px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}

.sarah-toggle:hover {
  transform: scale(1.05);
}

.sarah-label {
  font-weight: 500;
}

.sarah-chat {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 380px;
  height: 500px;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sarah-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md) var(--spacing-lg);
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-red));
  color: white;
}

.sarah-header h3 {
  font-size: 1rem;
  font-weight: 600;
}

.sarah-close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.sarah-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--spacing-md);
  background: #f9fafb;
}

.sarah-message {
  margin-bottom: var(--spacing-md);
  max-width: 85%;
}

.sarah-message.user {
  margin-left: auto;
}

.sarah-message p {
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: 1rem;
  line-height: 1.4;
  font-size: 0.875rem;
}

.sarah-message.assistant p {
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sarah-message.user p {
  background: var(--primary-blue);
  color: white;
}

.sarah-input {
  display: flex;
  padding: var(--spacing-md);
  border-top: 1px solid var(--border-color);
  gap: var(--spacing-sm);
}

.sarah-input input {
  flex: 1;
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  font-size: 0.875rem;
}

.sarah-input input:focus {
  outline: none;
  border-color: var(--primary-blue);
}

.sarah-input button {
  background: var(--primary-blue);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sarah-input button:hover {
  background: #1e3a8a;
}

/* ============================================
   APP LAUNCHER
   ============================================ */

.app-launcher {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.app-card {
  background: white;
  border-radius: 1rem;
  padding: var(--spacing-xl);
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  border: 1px solid var(--border-color);
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
  border-color: transparent;
}

.app-card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--spacing-md);
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.app-card h4 {
  font-size: 1rem;
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
  color: var(--text-dark);
}

.app-card h3 {
  font-size: 1rem;
  margin-bottom: var(--spacing-xs);
}

.app-card p {
  color: var(--text-light);
  font-size: 0.875rem;
  margin: 0;
}

/* ============================================
   LIST ITEMS
   ============================================ */

.list-item {
  display: flex;
  align-items: center;
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--border-color);
  gap: var(--spacing-md);
  transition: background 0.2s ease;
}

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

.list-item:hover {
  background: #f0f7ff;
}

.list-item[data-task-id] {
  cursor: pointer;
}

.list-item[data-task-id]:hover {
  background: #e8f4ff;
}

.list-item-content {
  flex: 1;
}

.list-item-title {
  font-weight: 500;
  margin-bottom: 2px;
}

.list-item-subtitle {
  font-size: 0.875rem;
  color: var(--text-light);
}

.list-item-actions {
  display: flex;
  gap: var(--spacing-sm);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.hidden {
  display: none !important;
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-light); }
.text-success { color: var(--success-green); }
.text-danger { color: var(--danger-red); }
.text-warning { color: var(--warning-yellow); }

.positive { color: var(--success-green); }
.negative { color: var(--danger-red); }

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }

.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: var(--spacing-sm); }
.gap-2 { gap: var(--spacing-md); }

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

section.active {
  animation: fadeIn 0.3s;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .main-header {
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
    gap: 0.5rem;
  }

  .main-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-top: var(--spacing-md);
    display: flex;
    gap: 0.25rem;
  }

  .nav-tab {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    white-space: nowrap;
  }

  .header-title {
    font-size: 1rem;
  }

  .user-name {
    display: none;
  }

  .main-content {
    padding: 1rem;
    margin: 1rem auto;
  }

  .sarah-chat {
    width: calc(100vw - 40px);
    height: calc(100vh - 120px);
    bottom: 60px;
    right: -12px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-card {
    padding: 1rem;
  }

  .stat-card .stat-value {
    font-size: 1.75rem;
  }

  .stat-card-icon {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .welcome-banner {
    padding: 1.5rem;
  }

  .welcome-banner h1 {
    font-size: 1.5rem;
  }

  .welcome-banner p {
    font-size: 0.875rem;
  }

  .dashboard-header h2,
  .welcome-section h1 {
    font-size: 1.5rem;
  }

  .modal-content {
    width: 95%;
    max-width: none;
    padding: 1rem;
    max-height: 85vh;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 1rem;
  }

  .stat-card .stat-value {
    font-size: 1.5rem;
  }

  .stat-card-icon {
    width: 40px;
    height: 40px;
  }

  .welcome-banner {
    padding: 1.25rem;
    border-radius: 0.75rem;
  }

  .welcome-banner h1 {
    font-size: 1.25rem;
  }

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

  .performance-stats {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================
   DASHBOARD - Featured Row Layout
   ============================================ */

.dashboard-featured-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.featured-card {
  min-height: 320px;
  display: flex;
  flex-direction: column;
}

.featured-card .card-body {
  flex: 1;
  overflow: hidden;
}

.featured-scroll {
  max-height: 260px;
  overflow-y: auto;
  padding: var(--spacing-md) !important;
  scroll-behavior: smooth;
}

.featured-scroll::-webkit-scrollbar {
  width: 6px;
}

.featured-scroll::-webkit-scrollbar-track {
  background: var(--light-gray);
  border-radius: 3px;
}

.featured-scroll::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.featured-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--text-light);
}

/* Featured Items (News) */
.featured-item {
  padding: var(--spacing-md);
  border-radius: 12px;
  background: #f8fafc;
  margin-bottom: var(--spacing-md);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--border-color);
}

.featured-item:last-child {
  margin-bottom: 0;
}

.featured-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-color: transparent;
}

.featured-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-sm);
}

.featured-item-type {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--primary-blue);
  color: white;
}

.featured-item-type.announcement {
  background: var(--secondary-red);
}

.featured-item-type.update {
  background: var(--info-blue);
}

.featured-item-type.welcome {
  background: var(--success-green);
}

.featured-item-type.policy {
  background: var(--warning-yellow);
  color: var(--text-dark);
}

.featured-item-date {
  font-size: 12px;
  color: var(--text-light);
}

.featured-item-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--spacing-xs);
}

.featured-item-preview {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
  margin: 0;
}

.pinned-badge {
  display: inline-block;
  font-size: 11px;
  margin-top: var(--spacing-sm);
  color: var(--warning-yellow);
}

/* News Carousel */
.news-slide {
  display: none;
  animation: fadeIn 0.4s ease-in-out;
}

.news-slide.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.news-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.news-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-color);
  cursor: pointer;
  transition: all 0.3s ease;
}

.news-dot:hover {
  background: var(--text-light);
}

.news-dot.active {
  background: var(--primary-blue);
  width: 24px;
  border-radius: 4px;
}

/* Shoutouts Carousel */
.shoutout-slide {
  display: none;
  animation: fadeIn 0.4s ease-in-out;
}

.shoutout-slide.active {
  display: block;
}

.shoutout-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.shoutout-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-color);
  cursor: pointer;
  transition: all 0.3s ease;
}

.shoutout-dot:hover {
  background: var(--text-light);
}

.shoutout-dot.active {
  background: var(--warning-yellow);
  width: 24px;
  border-radius: 4px;
}

/* Shoutout Items */
.shoutout-item {
  background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
  border: 1px solid #fde047;
}

.shoutout-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

.shoutout-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-red));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}

.shoutout-meta {
  flex: 1;
}

.shoutout-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-dark);
}

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

.shoutout-type {
  font-size: 24px;
}

.shoutout-message {
  font-size: 14px;
  font-style: italic;
  color: var(--text-dark);
  margin: var(--spacing-sm) 0;
  line-height: 1.5;
}

.shoutout-from {
  font-size: 12px;
  color: var(--text-light);
  text-align: right;
}

/* Reaction Buttons */
.reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 13px;
  transition: all 0.2s ease;
}

.reaction-btn:hover {
  transform: scale(1.05);
  background: var(--light-gray);
}

.reaction-btn.active {
  background: var(--primary-blue);
  color: white;
  border-color: var(--primary-blue);
}

.reaction-count {
  font-size: 12px;
  min-width: 10px;
}

/* Comments Section */
.comments-section {
  background: var(--light-gray);
  border-radius: 8px;
  padding: var(--spacing-sm);
}

.comment-item {
  background: white;
  border-radius: 6px;
  padding: 8px 12px !important;
  margin-bottom: 6px;
}

.comment-item:last-child {
  margin-bottom: 0;
}

.comments-list:empty::after {
  content: "No comments yet. Be the first!";
  display: block;
  text-align: center;
  color: var(--text-light);
  font-size: 13px;
  padding: 12px;
}

/* Tasks Card - Horizontal Layout */
.tasks-card {
  margin-bottom: var(--spacing-lg);
}

.tasks-horizontal {
  display: flex;
  gap: var(--spacing-md);
  overflow-x: auto;
  padding: var(--spacing-md) !important;
  scroll-behavior: smooth;
}

.tasks-horizontal::-webkit-scrollbar {
  height: 6px;
}

.tasks-horizontal::-webkit-scrollbar-track {
  background: var(--light-gray);
  border-radius: 3px;
}

.tasks-horizontal::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.task-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  min-width: 280px;
  max-width: 320px;
  padding: var(--spacing-md);
  background: #f8fafc;
  border-radius: 12px;
  flex-shrink: 0;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--border-color);
}

.task-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-color: transparent;
}

.task-priority {
  width: 4px;
  height: 40px;
  border-radius: 2px;
  flex-shrink: 0;
}

.task-priority.priority-low {
  background: var(--text-light);
}

.task-priority.priority-medium {
  background: var(--info-blue);
}

.task-priority.priority-high {
  background: var(--warning-yellow);
}

.task-priority.priority-urgent {
  background: var(--danger-red);
}

.task-content {
  flex: 1;
  min-width: 0;
}

.task-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-meta {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 2px;
}

/* Quick Launch Section */
.quick-launch-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.quick-launch-section h3 {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* Priority Badges */
.badge.priority-low {
  background: var(--text-light);
  color: white;
}

.badge.priority-medium {
  background: var(--info-blue);
  color: white;
}

.badge.priority-high {
  background: var(--warning-yellow);
  color: var(--text-dark);
}

.badge.priority-urgent {
  background: var(--danger-red);
  color: white;
}

/* Responsive Dashboard */
@media (max-width: 900px) {
  .dashboard-featured-row {
    grid-template-columns: 1fr;
  }

  .featured-card {
    min-height: 250px;
  }

  .tasks-horizontal {
    flex-wrap: wrap;
  }

  .task-item {
    min-width: 100%;
    max-width: 100%;
  }
}

/* ============================================
   ORG CHART
   ============================================ */

.org-chart-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: fit-content;
}

.org-node-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.org-node {
  background: var(--white);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 16px 20px;
  text-align: center;
  min-width: 160px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  z-index: 1;
}

.org-node:hover {
  border-color: var(--primary-blue);
  box-shadow: 0 4px 16px rgba(30, 64, 175, 0.15);
  transform: translateY(-2px);
}

.org-node-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-red));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  margin: 0 auto 8px;
}

.org-node-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.org-node-title {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 2px;
}

.org-node-dept {
  font-size: 11px;
  color: var(--primary-blue);
  font-weight: 500;
}

.org-children {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
  position: relative;
  padding-top: 24px;
}

/* Connector lines */
.org-children::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 24px;
  border-left: 2px solid var(--border-color);
}

.org-children > .org-node-wrapper {
  position: relative;
}

.org-children > .org-node-wrapper::before {
  content: '';
  position: absolute;
  top: -24px;
  left: 50%;
  width: 0;
  height: 24px;
  border-left: 2px solid var(--border-color);
}

/* Horizontal connector line spanning all children */
.org-children > .org-node-wrapper:first-child:not(:only-child)::after,
.org-children > .org-node-wrapper:last-child:not(:only-child)::after {
  content: '';
  position: absolute;
  top: -24px;
  height: 0;
  border-top: 2px solid var(--border-color);
}

.org-children > .org-node-wrapper:first-child:not(:only-child)::after {
  left: 50%;
  right: -12px;
}

.org-children > .org-node-wrapper:last-child:not(:only-child)::after {
  left: -12px;
  right: 50%;
}

.org-children > .org-node-wrapper:not(:first-child):not(:last-child)::after {
  content: '';
  position: absolute;
  top: -24px;
  left: -12px;
  right: -12px;
  height: 0;
  border-top: 2px solid var(--border-color);
}

/* Parent to children vertical connector */
.org-node-wrapper > .org-children::before {
  content: '';
  position: absolute;
  top: -32px;
  left: 50%;
  width: 0;
  height: 32px;
  border-left: 2px solid var(--border-color);
}

/* ============================================
   RATING CIRCLES (Performance Reviews)
   ============================================ */

.rating-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #ddd;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
  cursor: pointer;
  color: #888;
  background: transparent;
}

.rating-circle:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  background: rgba(30, 64, 175, 0.05);
}

.rating-circle.selected,
input[type="radio"]:checked + .rating-circle {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: white;
}

/* ============================================
   SIGNATURE PAD
   ============================================ */

.signature-pad-container {
  border: 2px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
  background: white;
}

.signature-pad-container canvas {
  display: block;
  width: 100%;
  cursor: crosshair;
}

/* Signature Font Options */
.sig-font-option {
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.sig-font-option:hover {
  border-color: var(--primary-color) !important;
  background: #f8faff !important;
  transform: scale(1.02);
}
.sig-font-option.selected {
  border-color: var(--primary-color) !important;
  background: #f0f4ff !important;
  box-shadow: 0 0 0 1px var(--primary-color);
}

/* Signature Method Tabs */
.sig-method-tab {
  transition: all 0.2s ease;
}
.sig-method-tab:hover:not(.active) {
  background: #f0f4ff !important;
}

/* Task Completion Modal — Dropzone */
#taskUploadDropzone {
  transition: border-color 0.2s, background 0.2s;
}
#taskUploadDropzone:hover {
  border-color: var(--primary-color);
  background: #f8faff;
}

/* E-Sign Disclosure checkbox alignment */
#taskEsignConsent:checked + label strong {
  color: #065f46;
}

/* Modal XL — large but not full-screen */
.modal-content.modal-xl {
  max-width: 1000px;
  width: 95vw;
  max-height: 92vh;
  height: 92vh;
  display: flex;
  flex-direction: column;
}
.modal-content.modal-xl .modal-body {
  flex: 1;
  overflow-y: auto;
}

/* Inline PDF Form Viewer */
#pdfFormViewer {
  scrollbar-width: thin;
  scrollbar-color: #888 #525659;
}
#pdfFormViewer::-webkit-scrollbar {
  width: 8px;
}
#pdfFormViewer::-webkit-scrollbar-track {
  background: #525659;
}
#pdfFormViewer::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}
#pdfFormViewer input[type="text"]:focus,
#pdfFormViewer textarea:focus,
#pdfFormViewer select:focus {
  box-shadow: 0 0 0 2px rgba(37,99,235,0.3);
  z-index: 1;
}

/* ============================================
   LEAVE CALENDAR
   ============================================ */

.leave-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--border-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.leave-calendar-header {
  background: var(--light-gray);
  padding: 8px 4px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
}

.leave-calendar-day {
  background: white;
  padding: 6px 4px;
  min-height: 60px;
  font-size: 12px;
}

.leave-calendar-day.other-month {
  background: #fafafa;
  color: #ccc;
}

.leave-calendar-day.today {
  background: #eff6ff;
}

.leave-calendar-day .day-number {
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--text-dark);
}

.leave-calendar-day.other-month .day-number {
  color: #ccc;
}

.leave-badge {
  display: block;
  font-size: 10px;
  padding: 1px 4px;
  border-radius: 3px;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.leave-badge.vacation { background: #dbeafe; color: #1e40af; }
.leave-badge.sick { background: #fee2e2; color: #991b1b; }
.leave-badge.personal { background: #fef3c7; color: #92400e; }
.leave-badge.other { background: #e5e7eb; color: #4b5563; }

/* ============================================
   ONBOARDING TRACKER CARD
   ============================================ */

.tracker-card {
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
  transition: box-shadow 0.2s;
}

.tracker-card:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.tracker-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  cursor: pointer;
  background: white;
}

.tracker-card-header:hover {
  background: #f8fafc;
}

.tracker-card-body {
  border-top: 1px solid var(--border-color);
  background: #fafbfc;
}

/* ============================================
   HR SECTION TABS
   ============================================ */

.hr-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--border-color);
  overflow-x: auto;
}

.hr-tab {
  padding: 10px 20px;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition: color 0.2s;
}

.hr-tab:hover {
  color: var(--text-dark);
}

.hr-tab.active {
  color: var(--primary-blue);
}

.hr-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-blue);
}
