/* ========================================
   INCIDENT & NEAR-MISS MODULE DEMO - COMPLETE STYLES
   ======================================== */

/* ========================================
   RESET & VARIABLES
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Red Theme */
  --primary-color: #c41e3a;
  --secondary-color: #8b1538;
  --accent-color: #e63946;
  --brand-gradient: linear-gradient(135deg, #c41e3a 0%, #8b1538 100%);

  /* Base Colors */
  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --bg-primary: #f7fafc;
  --bg-secondary: #ffffff;
  --border-color: #e2e8f0;

  /* Status Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
    "Ubuntu", "Cantarell", sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
}

/* ========================================
   LOGIN SCREEN
   ======================================== */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-gradient);
  padding: 20px;
}

.login-card {
  background: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 480px;
  animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.brand-section {
  text-align: center;
  margin-bottom: 32px;
}

.brand-icon {
  font-size: 4rem;
  margin-bottom: 12px;
}

.brand-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.brand-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.demo-notice {
  background: rgba(0, 166, 81, 0.1);
  border: 2px solid rgba(0, 166, 81, 0.3);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: start;
  gap: 12px;
  margin-bottom: 24px;
}

.demo-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.demo-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.demo-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.login-form {
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
}

.btn-login {
  width: 100%;
  padding: 14px 20px;
  background: var(--brand-gradient);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-login:hover {
  box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
  transform: translateY(-2px);
}

.btn-arrow {
  font-size: 1.2rem;
  font-weight: 700;
}

.quick-access {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
}

.quick-access-title {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.role-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.role-btn {
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 16px 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.role-btn:hover {
  background: white;
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(196, 30, 58, 0.1);
}

.role-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.role-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ========================================
   DASHBOARD SCREEN
   ======================================== */
.dashboard-screen {
  min-height: 100vh;
  background: var(--bg-primary);
}

/* Header */
.header {
  background: var(--brand-gradient);
  color: white;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  font-size: 2.5rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.logo-sub {
  font-size: 0.7rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.framework-badge {
  background: rgba(255, 255, 255, 0.15);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.notification-icon {
  font-size: 1.5rem;
  cursor: pointer;
  position: relative;
}

.notification-icon::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 8px;
  height: 8px;
  background: var(--danger);
  border-radius: 50%;
  border: 2px solid var(--primary-color);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.user-details {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.user-role {
  font-size: 0.75rem;
  opacity: 0.85;
}

/* Main Content */
.main-content {
  padding: 32px;
  max-width: 1600px;
  margin: 0 auto;
}

/* Main Module Tabs - 2 TABS */
.main-module-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 24px 0;
  margin-bottom: 24px;
}

.main-module-tab {
  padding: 20px 24px;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  text-align: center;
}

.main-module-tab:hover {
  color: var(--primary-color);
  background: rgba(196, 30, 58, 0.05);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(196, 30, 58, 0.15);
}

.main-module-tab.active {
  color: white;
  background: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
}

/* Tab Content */
.main-tab-content {
  background: white;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  min-height: 600px;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-secondary);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.2s ease;
  border-left: 4px solid var(--primary-color);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-card.critical {
  border-left-color: var(--danger);
}

.stat-card.warning {
  border-left-color: var(--warning);
}

.stat-card.success {
  border-left-color: var(--success);
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Action Bar */
.action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.action-buttons {
  display: flex;
  gap: 12px;
}

/* View Toggle */
.view-toggle {
  display: flex;
  gap: 8px;
  background: var(--bg-primary);
  padding: 4px;
  border-radius: 8px;
}

.view-btn {
  padding: 8px 16px;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.view-btn.active {
  background: white;
  color: var(--primary-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background: var(--secondary-color);
  box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--border-color);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* Filters Bar */
.filters-bar {
  background: var(--bg-primary);
  padding: 20px 24px;
  border-radius: 12px;
  margin-bottom: 24px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.filter-select {
  padding: 8px 12px;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.9rem;
  background: var(--bg-secondary);
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.search-input {
  flex: 1;
  min-width: 250px;
}

.search-input input {
  width: 100%;
  padding: 10px 16px;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

.search-input input:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Incident Cards */
.incident-grid,
.nearmiss-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
  gap: 20px;
}

.incident-card,
.nearmiss-card {
  background: var(--bg-secondary);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border-left: 4px solid var(--primary-color);
  transition: all 0.2s ease;
  cursor: pointer;
}

.incident-card:hover,
.nearmiss-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.incident-card.critical,
.nearmiss-card.red {
  border-left-color: var(--danger);
}

.incident-card.high,
.nearmiss-card.amber {
  border-left-color: var(--warning);
}

.incident-card.medium,
.nearmiss-card.green {
  border-left-color: var(--info);
}

.incident-card.low {
  border-left-color: var(--success);
}

.incident-header,
.nearmiss-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 12px;
}

.incident-title,
.nearmiss-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  flex: 1;
}

.severity-badge,
.proximity-badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  display: inline-block;
  margin-left: 12px;
}

.severity-badge.critical {
  background: rgba(239, 68, 68, 0.9);
  color: white;
}

.severity-badge.high,
.proximity-badge.amber {
  background: rgba(245, 158, 11, 0.2);
  color: #b45309;
}

.severity-badge.medium,
.proximity-badge.green {
  background: rgba(59, 130, 246, 0.2);
  color: #1e40af;
}

.severity-badge.low {
  background: rgba(16, 185, 129, 0.2);
  color: #047857;
}

.proximity-badge.red {
  background: rgba(239, 68, 68, 0.2);
  color: #991b1b;
}

.incident-meta,
.nearmiss-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.incident-description,
.nearmiss-description {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.6;
}

.incident-impact,
.consequence-box {
  background: var(--bg-primary);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.incident-impact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.impact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.impact-item label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-weight: 600;
}

.impact-item span {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 600;
}

.consequence-box h5,
.barrier-info h5 {
  font-size: 0.9rem;
  color: var(--primary-color);
  margin-bottom: 8px;
  font-weight: 700;
}

.consequence-box p,
.barrier-info p {
  font-size: 0.9rem;
  color: var(--text-primary);
  margin: 0;
}

.barrier-info {
  background: var(--bg-primary);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.barrier-type {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 12px;
  background: white;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-color);
}

.incident-actions,
.nearmiss-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.incident-action-btn,
.nearmiss-action-btn {
  padding: 6px 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.incident-action-btn:hover,
.nearmiss-action-btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.incident-action-btn:disabled,
.nearmiss-action-btn:disabled,
.nearmiss-action-btn.recognized {
  opacity: 0.6;
  cursor: not-allowed;
  background: var(--success);
  color: white;
  border-color: var(--success);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* 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;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  padding: 24px 32px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--brand-gradient);
  color: white;
  border-radius: 12px 12px 0 0;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal-body {
  padding: 32px;
}

.modal-footer {
  padding: 20px 32px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Detail Sections */
.detail-section {
  margin-bottom: 24px;
  padding: 20px;
  background: var(--bg-primary);
  border-radius: 8px;
}

.detail-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-color);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.detail-value {
  font-size: 0.95rem;
  color: var(--text-primary);
}

/* Book Demo Modal */
.demo-modal-content {
  text-align: center;
}

.demo-icon-large {
  font-size: 5rem;
  margin-bottom: 20px;
}

.demo-modal-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.demo-modal-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
}

.demo-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  text-align: left;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.demo-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(16, 185, 129, 0.05);
  border-radius: 8px;
}

.feature-icon {
  font-weight: 700;
  color: var(--success);
  font-size: 1.2rem;
}

.btn-book-demo {
  display: inline-block;
  padding: 16px 32px;
  background: var(--brand-gradient);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-book-demo:hover {
  box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
  transform: translateY(-2px);
}

.demo-modal-footer {
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ========================================
   WALKTHROUGH STYLES
   ======================================== */
.walkthrough-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 480px;
  max-width: calc(100vw - 48px);
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  overflow: hidden;
  transform: translateY(120%);
  transition: transform 0.4s ease;
  border: 2px solid var(--primary-color);
}

.walkthrough-container.active {
  transform: translateY(0);
}

.walkthrough-header-simple {
  background: var(--brand-gradient);
  color: white;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.walkthrough-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.walkthrough-icon-simple {
  font-size: 1.5rem;
}

.walkthrough-title-simple {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

.walkthrough-close-simple {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.walkthrough-close-simple:hover {
  background: rgba(255, 255, 255, 0.3);
}

.walkthrough-body-simple {
  padding: 20px;
}

.walkthrough-step {
  display: none;
}

.walkthrough-step.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.step-number {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.step-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-emoji {
  font-size: 1.5rem;
}

.step-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.step-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.step-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px;
  background: var(--bg-primary);
  border-radius: 8px;
}

.step-feature-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-feature-text {
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.walkthrough-footer-simple {
  padding: 16px 20px;
  background: var(--bg-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.walkthrough-progress-simple {
  display: flex;
  gap: 6px;
  align-items: center;
}

.progress-dot-simple {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-color);
  transition: all 0.3s ease;
}

.progress-dot-simple.active {
  background: var(--primary-color);
  width: 24px;
  border-radius: 4px;
}

.walkthrough-controls {
  display: flex;
  gap: 8px;
}

.walkthrough-btn-simple {
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-prev-simple {
  background: white;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

.btn-prev-simple:hover {
  background: var(--bg-primary);
}

.btn-next-simple {
  background: var(--primary-color);
  color: white;
}

.btn-next-simple:hover {
  background: var(--secondary-color);
}

.btn-finish-simple {
  background: var(--success);
  color: white;
}

.btn-finish-simple:hover {
  background: #0d9668;
}

.help-float-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  padding: 12px 24px;
  background: var(--brand-gradient);
  color: white;
  border: none;
  border-radius: 28px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(196, 30, 58, 0.4);
  z-index: 9998;
  transition: all 0.3s ease;
}

.help-float-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 30, 58, 0.5);
}

.help-float-btn.hidden {
  display: none;
}

/* Responsive */
@media (max-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .main-content {
    padding: 20px;
  }

  .main-module-tabs {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .incident-grid,
  .nearmiss-grid {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .walkthrough-container {
    bottom: 16px;
    right: 16px;
    left: 16px;
    width: auto;
  }
}

@media (max-width: 480px) {
  .login-card {
    padding: 24px;
  }

  .role-buttons {
    grid-template-columns: 1fr;
  }
}
