/* 2KFilms OnSet Hub - Core CSS stylesheet */

:root {
  /* Premium Monochrome Color Palette */
  --bg-primary: #000000;
  --bg-secondary: #0a0a0c;
  --card-bg: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-hover-border: rgba(255, 255, 255, 0.16);
  
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  
  /* Accents mapped to white & silver-gray */
  --accent-amber: #ffffff;
  --accent-amber-glow: rgba(255, 255, 255, 0.08);
  --accent-red: #ef4444; /* Retain red ONLY for active recording safety flags */
  --accent-red-glow: rgba(239, 68, 68, 0.12);
  --accent-green: #ffffff;
  --accent-green-glow: rgba(255, 255, 255, 0.08);
  --accent-blue: #e4e4e7;
  --accent-blue-glow: rgba(228, 228, 231, 0.08);
  
  /* System Spacing & Sizing */
  --header-height: 70px;
  --nav-height: 75px;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Custom Typography Utility */
.technical-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: -0.02em;
}

/* Header Component */
.app-header {
  height: var(--header-height);
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.header-logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-svg-wrapper {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  flex-shrink: 0;
}

.logo-text h1 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.logo-text p {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

/* Header Actions Alignment */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Crew Profile Switcher Pill */
.profile-pill {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: 'Outfit', sans-serif;
  color: var(--text-primary);
  outline: none;
}

.profile-pill:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.profile-avatar {
  font-size: 0.85rem;
}

.profile-label {
  font-size: 0.75rem;
  font-weight: 600;
}

/* Live Network Connection Pill */
.connection-status-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.connection-status-pill.live-connected {
  background-color: var(--accent-green-glow);
  border-color: rgba(255, 255, 255, 0.3);
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-amber);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-amber);
}

.connection-status-pill.live-connected .status-dot {
  background-color: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
}

.status-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.connection-status-pill.live-connected .status-label {
  color: var(--text-primary);
}

/* Main Container Styles */
.app-container {
  flex: 1;
  padding: calc(var(--header-height) + 1.25rem) 1rem calc(var(--nav-height) + 1.25rem) 1rem;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
  overflow-y: auto;
}

/* Tab Switching Layouts */
.tab-content {
  display: none;
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Fade In Keyframe */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Glass Card Component */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-md);
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  border-color: var(--card-hover-border);
}

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

.card-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

/* Badges styling */
.badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
}

.sequence-badge {
  background-color: var(--accent-amber-glow);
  color: var(--accent-amber);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.label-badge {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--card-border);
}

.label-badge.amber {
  background-color: var(--accent-amber-glow);
  color: var(--accent-amber);
  border-color: rgba(255, 255, 255, 0.2);
}

.label-badge.info {
  background-color: var(--accent-blue-glow);
  color: var(--accent-blue);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Dashboard Grid Styles */
.dashboard-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.full-width-card {
  width: 100%;
}

/* Onboarding Card styling */
.onboarding-card {
  border-left: 3px solid var(--accent-amber);
  background: linear-gradient(180deg, var(--accent-amber-glow) 0%, rgba(255,255,255,0.01) 100%);
  animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.onboarding-welcome {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.45;
}

.onboarding-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--card-border);
  padding: 0.85rem 1rem;
  border-radius: var(--border-radius-sm);
  margin-bottom: 1.25rem;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
}

.check-item input[type="checkbox"] {
  margin-top: 0.25rem;
  accent-color: var(--accent-amber);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.check-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.35;
  transition: color 0.2s ease;
}

.check-item input[type="checkbox"]:checked + .check-label {
  color: var(--text-muted);
  text-decoration: line-through;
}

/* Handover section in onboarding */
.handover-verification-section {
  border-top: 1px dashed var(--card-border);
  padding-top: 1rem;
  margin-top: 0.5rem;
}

.handover-title {
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.handover-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.handover-gear-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.handover-gear-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 0.45rem 0.75rem;
}

.handover-item-name {
  font-size: 0.8rem;
  font-weight: 550;
}

.handover-item-category {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.handover-item-status-badge {
  font-size: 0.65rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-weight: 600;
}

.handover-item-status-badge.pending {
  background-color: var(--accent-amber-glow);
  color: var(--accent-amber);
}

.handover-item-status-badge.accepted {
  background-color: var(--accent-green-glow);
  color: var(--accent-green);
}

.btn-block {
  width: 100%;
}

/* Progress summary design */
.progress-summary-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.progress-summary-card .card-header {
  width: 100%;
}

.progress-ring-container {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-ring-bar {
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-ring-text {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.progress-ring-text .percentage {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

.progress-ring-text .subtitle {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-top: -2px;
}

.quick-stat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 1rem;
}

/* Interactive Simulator controls inside dashboard */
.simulator-controls .info-paragraph {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.button-group-row {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

/* Buttons System */
.btn {
  font-family: 'Outfit', sans-serif;
  font-weight: 550;
  font-size: 0.85rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--border-radius-sm);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
  user-select: none;
}

.btn-primary {
  background-color: var(--accent-amber);
  color: #000;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
  background-color: #e4e4e7;
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.75rem;
  flex: 1;
}

/* Live Director Alert Banner */
.highlight-card {
  border-left: 3px solid var(--accent-amber);
}

.live-indicator {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent-red);
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-red);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 1.2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.4); opacity: 1; box-shadow: 0 0 6px var(--accent-red); }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.feed-item-latest {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feed-author-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.crew-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #1c1c1e;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.director-color {
  background-color: #ffffff;
  color: #000000;
}

.bcam-color {
  background-color: #2c2c2e;
  color: #ffffff;
}

.author-name {
  font-size: 0.85rem;
  font-weight: 600;
}

.time-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.feed-text-preview {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
  background-color: rgba(255, 255, 255, 0.02);
  border-radius: var(--border-radius-sm);
  padding: 0.75rem;
  border: 1px dashed var(--card-border);
}

/* Alert Banner */
.alert-banner {
  grid-column: span 2;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background-color: var(--accent-red-glow);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--border-radius-md);
  padding: 1rem;
  animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.alert-banner.hidden {
  display: none !important;
}

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

.alert-icon {
  font-size: 1.2rem;
}

.alert-message h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.alert-message p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

/* Section Filters Component (Tab layouts) */
.section-controls {
  background-color: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-md);
  padding: 0.75rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sequence-filters {
  display: flex;
  gap: 0.3rem;
  background-color: rgba(0, 0, 0, 0.25);
  border-radius: var(--border-radius-sm);
  padding: 0.25rem;
}

.filter-tab {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 550;
  padding: 0.5rem 0;
  flex: 1;
  text-align: center;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.filter-tab:hover {
  color: var(--text-primary);
}

.filter-tab.active {
  background-color: rgba(255, 255, 255, 0.07);
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Scope switch buttons (My shots vs All shots) */
.shot-scope-toggle-container {
  display: flex;
  background-color: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-sm);
  padding: 0.2rem;
  width: 100%;
}

.scope-btn {
  flex: 1;
  background: transparent;
  border: none;
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0;
  border-radius: 4px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.scope-btn.active {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.hidden {
  display: none !important;
}

/* Progress bar inside controls */
.progress-bar-container {
  height: 4px;
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 2px;
  overflow: hidden;
  width: 100%;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-amber), var(--accent-green));
  border-radius: 2px;
  width: 0%;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gear-status-summary {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: center;
}

/* List container */
.list-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Shot Card Component (iOS Checklist Style) */
.shot-card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.shot-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background-color: rgba(255, 255, 255, 0.06);
}

.shot-check-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: transparent;
  transition: all 0.15s ease;
}

.shot-card.status-filmed .shot-check-circle {
  background-color: #ffffff;
  border-color: #ffffff;
  color: #000000;
}

.shot-card.status-filmed {
  opacity: 0.45;
}

.shot-card.status-filmed .shot-desc {
  text-decoration: line-through;
  color: var(--text-muted);
}

.shot-card.active-shooting {
  border-color: rgba(255, 255, 255, 0.25);
  background-color: rgba(255, 255, 255, 0.02);
}

.shot-card-content {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.shot-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.shot-id-tag {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--text-secondary);
  background-color: rgba(255, 255, 255, 0.06);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.active-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent-red);
  background-color: var(--accent-red-glow);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.shot-desc {
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.45;
}

.shot-meta-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* Gear Checklist Item Component */
.gear-item-card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-md);
  padding: 0.9rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.gear-item-card:hover {
  background-color: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.gear-item-card.checked {
  border-color: rgba(255, 255, 255, 0.16);
  background-color: rgba(255, 255, 255, 0.02);
}

.gear-left {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.gear-category-tag {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 700;
}

.gear-name {
  font-size: 0.9rem;
  font-weight: 550;
  color: var(--text-primary);
}

.gear-item-card.checked .gear-name {
  color: var(--text-muted);
  text-decoration: line-through;
}

.gear-audit-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

/* Custom interactive checkbox switch */
.gear-switch {
  width: 48px;
  height: 26px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  border-radius: 13px;
  position: relative;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.gear-switch-knob {
  width: 20px;
  height: 20px;
  background-color: var(--text-secondary);
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
}

.gear-item-card.checked .gear-switch {
  background-color: #ffffff;
  border-color: #ffffff;
}

.gear-item-card.checked .gear-switch-knob {
  transform: translateX(22px);
  background-color: #000000;
  box-shadow: none;
}

/* Broadcast Tab (Chat Panel) Layout */
.chat-wrapper {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--header-height) - var(--nav-height) - 2.5rem);
  background-color: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

.chat-history {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Message Bubbles layout */
.message-bubble {
  display: flex;
  gap: 0.85rem;
  max-width: 85%;
}

.message-bubble.incoming {
  align-self: flex-start;
}

.message-bubble.outgoing {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.msg-main {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.msg-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.msg-sender {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.message-bubble.outgoing .msg-sender {
  color: var(--text-secondary);
}

.msg-body {
  font-size: 0.88rem;
  color: var(--text-primary);
  background-color: #1c1c1e;
  border: 1px solid #1c1c1e;
  padding: 0.8rem 1.1rem;
  border-radius: var(--border-radius-md);
  line-height: 1.45;
}

.message-bubble.incoming .msg-body {
  border-top-left-radius: 4px;
}

.message-bubble.outgoing .msg-body {
  background-color: #ffffff;
  border-color: #ffffff;
  color: #000000;
  border-top-right-radius: 4px;
}

/* Critical Announcements */
.message-bubble.critical-memo .msg-body {
  background-color: var(--accent-red-glow) !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
  border-left: 3px solid var(--accent-red) !important;
  color: #ffffff !important;
}

/* Input Form Area & Attachments */
.chat-attachment-preview {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background-color: rgba(0, 0, 0, 0.4);
  border-top: 1px solid var(--card-border);
  position: relative;
  animation: slideUp 0.2s ease;
}

.chat-attachment-preview img {
  height: 50px;
  width: auto;
  border-radius: 6px;
  border: 1px solid var(--card-border);
  object-fit: cover;
}

.btn-clear-attachment {
  width: 20px;
  height: 20px;
  background-color: rgba(239, 68, 68, 0.8);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-clear-attachment:hover {
  background-color: rgb(239, 68, 68);
}

.chat-input-area {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background-color: rgba(0, 0, 0, 0.25);
  border-top: 1px solid var(--card-border);
}

.btn-attach {
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-sm);
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-attach:hover {
  background-color: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--accent-amber);
}

.chat-input-area input {
  flex: 1;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-sm);
  padding: 0.65rem 1rem;
  font-family: 'Outfit', sans-serif;
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s ease;
}

.chat-input-area input:focus {
  border-color: rgba(255, 255, 255, 0.4);
  background-color: rgba(255, 255, 255, 0.05);
}

.chat-input-area .btn-primary {
  width: 44px;
  height: 40px;
  padding: 0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Image in Message Bubble */
.msg-image {
  margin-top: 0.5rem;
  max-width: 100%;
  max-height: 200px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.msg-image:hover {
  filter: brightness(1.1);
  transform: scale(1.01);
}

/* Bluetooth BLE Sync module */
.ble-sync-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ble-camera-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ble-camera-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-sm);
  padding: 0.75rem 1rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ble-camera-item.connected {
  border-color: rgba(255, 255, 255, 0.25);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.01) 100%);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.05);
}

.cam-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cam-status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--text-muted);
  display: inline-block;
}

.ble-camera-item.connected .cam-status-indicator {
  background-color: var(--accent-green);
  box-shadow: 0 0 6px var(--accent-green);
  animation: pulseIndicator 1.5s infinite;
}

@keyframes pulseIndicator {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(1); opacity: 0.8; }
}

.cam-name {
  font-size: 0.85rem;
  font-weight: 600;
  display: block;
}

.cam-meta-detail {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.ble-console-log {
  background-color: #08080a;
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-sm);
  padding: 0.75rem;
  max-height: 120px;
  overflow-y: auto;
  margin-top: 0.5rem;
}

/* Settings Form elements */
.settings-card {
  padding: 1.5rem;
}

.settings-card h3 {
  font-size: 1.1rem;
  font-weight: 650;
  margin-bottom: 0.25rem;
}

.settings-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
  width: 100%;
}

.form-group-row {
  display: flex;
  gap: 0.75rem;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input {
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-sm);
  padding: 0.65rem 0.9rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-primary);
  font-size: 0.8rem;
  outline: none;
  width: 100%;
  transition: all 0.2s ease;
}

.form-group input:focus {
  border-color: rgba(255, 255, 255, 0.4);
}

/* Handover dashboard elements */
.handover-manager {
  background-color: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-md);
  padding: 1rem;
}

.crew-status-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
}

.crew-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.crew-status-dot.green {
  background-color: var(--accent-green);
  box-shadow: 0 0 6px var(--accent-green);
}

.crew-status-title {
  flex: 1;
}

.handover-status-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.handover-status-badge.success {
  background-color: var(--accent-amber-glow);
  color: var(--accent-amber);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.kit-selections {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.kit-checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.01);
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.kit-checkbox-item:hover {
  background-color: rgba(255, 255, 255, 0.03);
  border-color: var(--card-border);
}

.kit-checkbox-item input[type="checkbox"] {
  accent-color: var(--accent-amber);
  width: 14px;
  height: 14px;
}

/* DNS Setup Routing table visualizer */
.routing-table {
  background-color: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-sm);
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.routing-row {
  display: grid;
  grid-template-columns: 80px 100px 1fr;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  align-items: center;
  font-size: 0.8rem;
}

.routing-row:last-child {
  border-bottom: none;
}

.routing-row.header {
  font-weight: 650;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  background-color: rgba(255,255,255,0.01);
}

.mono-badge {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  text-align: center;
  width: max-content;
}

.dns-type {
  background-color: var(--accent-blue-glow);
  color: var(--accent-blue);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.75rem;
}

.mono-text {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-secondary);
}

.select-all {
  user-select: all;
  color: var(--text-primary);
}

.instructions-block {
  border-top: 1px dashed var(--card-border);
  padding-top: 1rem;
}

.instructions-block h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.instructions-block ol {
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.instructions-block li {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.instructions-block li code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  background-color: rgba(255,255,255,0.05);
  padding: 0.05rem 0.25rem;
  border-radius: 3px;
  color: var(--accent-amber);
}

/* Floating Bottom Navigation Dock */
.bottom-nav {
  height: var(--nav-height);
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--card-border);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 0.5rem;
  z-index: 100;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  flex: 1;
  height: 100%;
  position: relative;
  transition: all 0.2s ease;
}

.nav-item:hover {
  color: var(--text-secondary);
}

.nav-item.active {
  color: var(--accent-amber);
}

.nav-icon {
  width: 22px;
  height: 22px;
  transition: transform 0.2s ease;
}

.nav-item.active .nav-icon {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 4px var(--accent-amber-glow));
}

.nav-label {
  font-size: 0.65rem;
  font-weight: 550;
  letter-spacing: 0.02em;
}

.nav-badge {
  position: absolute;
  top: 12px;
  right: 22px;
  background-color: var(--accent-red);
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  font-weight: 700;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 6px var(--accent-red);
}

.nav-badge.hidden {
  display: none !important;
}

/* Modal Overlay styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

.modal-content {
  width: 100%;
  max-width: 480px;
  margin-bottom: 0;
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-header h3 {
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--text-primary);
}

.close-modal-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.close-modal-btn:hover {
  color: var(--text-primary);
}

.profile-options-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.profile-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-md);
  padding: 1rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-primary);
  width: 100%;
}

.profile-option:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

.profile-option.active {
  border-color: var(--accent-amber);
  background-color: var(--accent-amber-glow);
}

.option-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.option-details h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.option-details p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* Toast Notification Alert */
.notification-toast {
  position: fixed;
  top: calc(var(--header-height) + 1rem);
  left: 1rem;
  right: 1rem;
  max-width: 400px;
  margin: 0 auto;
  background-color: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-left: 4px solid var(--accent-amber);
  border-radius: var(--border-radius-sm);
  padding: 0.85rem 1.25rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: slideInToast 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
}

.notification-toast.hidden {
  display: none;
}

@keyframes slideInToast {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.toast-body {
  display: flex;
  flex-direction: column;
}

.toast-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-amber);
  letter-spacing: 0.05em;
}

.toast-text {
  font-size: 0.82rem;
  color: var(--text-primary);
  margin-top: 0.1rem;
}

/* Tablet adjustments */
@media (min-width: 600px) {
  .app-container {
    padding: calc(var(--header-height) + 2rem) 1.5rem calc(var(--nav-height) + 2rem) 1.5rem;
  }
  
  .glass-card {
    padding: 1.5rem;
  }

  .dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .full-width-card {
    grid-column: span 2;
    width: auto;
  }
}
