/* Root Variables for Colors and Styling */
:root {
  --primary-color: #1e3a8a;
  --secondary-color: #4b5563;
  --success-color: #2e7d32;
  --danger-color: #d32f2f;
  --warning-color: #f57c00;
  --info-color: #0288d1;
  --light-color: #f5f5f5;
  --dark-color: #1a2526;
  --text-light: #212121;
  --text-dark: #e0e0e0;
  --glass-bg: rgba(255, 255, 255, 0.95);
  --glass-border: #b0bec5;
  --dark-glass-bg: rgba(55, 65, 81, 0.85);
  --dark-glass-border: rgba(107, 114, 128, 0.5);
  --gradient-primary: linear-gradient(90deg, #1e3a8a, #1565c0);
  --gradient-success: linear-gradient(90deg, #2e7d32, #4caf50);
  --controls-bg: #e8ecef;
  --controls-bg-dark: #2a3b3c;
  --shadow-light: 0 4px 10px rgba(0, 0, 0, 0.08);
  --shadow-dark: 0 4px 10px rgba(0, 0, 0, 0.25);
  --bg-green: #004f48;
}

/* Base Body Styles */
body {
  font-family: 'Roboto', sans-serif;
  min-height: 100vh;
  background: var(--bg-green);
  transition: background 0.3s ease, color 0.3s ease;
  padding-top: 80px;
}

body[data-bs-theme="dark"] {
  background: var(--dark-color);
  color: var(--text-dark);
}
.navbar {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}
/* Beta Banner Styles */
.beta-banner {
  background: #e0f7fa;
  color: #006064;
  font-weight: 500;
  border-top: 2px solid #b2ebf2;
  border-bottom: 2px solid #b2ebf2;
  font-size: 0.9rem;
}

[data-bs-theme="dark"] .beta-banner {
  background: #006064;
  color: #e0f7fa;
  border-color: #4dd0e1;
}

.tab-pane form {
  max-width: 100%;
  width: 100%;
}
.tab-pane .d-flex {
  justify-content: center;
}
.form-wrapper {
  width: 100%;
  max-width: 700px; /* same as dropzone or main-card layout */
}

[data-bs-theme="dark"] .main-card {
  background: var(--dark-glass-bg);
  border-color: var(--dark-glass-border);
  box-shadow: var(--shadow-dark);
  backdrop-filter: blur(10px);
  color: var(--text-dark);
}

/* Upload Section Styles */
.upload-section {
  border: 1px solid #b0bec5;
  background: var(--glass-bg);
  border-radius: 8px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.upload-section.dragover {
  border-color: var(--primary-color);
  background: rgba(30, 58, 138, 0.05);
  box-shadow: 0 0 10px rgba(30, 58, 138, 0.2);
}

[data-bs-theme="dark"] .upload-section {
  border-color: #78909c;
  background: var(--dark-glass-bg);
}

[data-bs-theme="dark"] .upload-section.dragover {
  background: rgba(59, 130, 246, 0.05);
}

/* Upload Button Styles */
.upload-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
  background: #ffffff;
  border: 1px solid #1e3a8a;
  color: #1e3a8a;
}

.upload-btn:hover {
  background: #1e3a8a;
  color: #ffffff;
  transform: scale(1.02);
}

[data-bs-theme="dark"] .upload-btn {
  background: #2a3b3c;
  border-color: #4b6cb7;
  color: #4b6cb7;
}

[data-bs-theme="dark"] .upload-btn:hover {
  background: #4b6cb7;
  color: #ffffff;
}

/* Dropzone Styles */
.dropzone {
  border: 2px dashed #b0bec5;
  background: #fafafa;
  border-radius: 8px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.dropzone.dragover {
  border-color: var(--primary-color);
  background: #e3f2fd;
  box-shadow: 0 0 10px rgba(30, 58, 138, 0.2);
}

.dropzone.dragover #dropzoneMessage {
  color: var(--primary-color);
  font-weight: 600;
}

[data-bs-theme="dark"] .dropzone {
  border-color: #78909c;
  background: #2a3b3c;
}

[data-bs-theme="dark"] .dropzone.dragover {
  background: #37474f;
}

/* Upload Placeholder Styles */
.upload-placeholder {
  transition: opacity 0.3s ease;
}

.upload-placeholder.d-none {
  opacity: 0;
}

/* Progress Bar Styles */
.progress {
  height: 8px;
  background: #eceff1;
  border-radius: 4px;
  overflow: hidden;
}

[data-bs-theme="dark"] .progress {
  background: #455a64;
}

.progress-bar {
  transition: width 0.4s ease;
  background: var(--primary-color);
}

.progress-bar-0 {
  width: 0%;
}

.progress-bar-20 {
  width: 20%;
}

.progress-bar-50 {
  width: 50%;
}

.progress-bar-70 {
  width: 70%;
}

.progress-bar-100 {
  width: 100%;
}

/* Controls Container Styles */
.controls-container {
  background: #fafafa;
  border: 1px solid #b0bec5;
  border-radius: 8px;
  padding: 1.5rem;
}

[data-bs-theme="dark"] .controls-container {
  background: #2a3b3c;
  border-color: #78909c;
}

/* Control Cell Styles */
.control-cell {
  border: 1px solid #b0bec5;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: var(--shadow-light);
  padding: 1.5rem;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

[data-bs-theme="dark"] .control-cell {
  background: #37474f;
  border-color: #78909c;
  box-shadow: var(--shadow-dark);
}

/* Range Input Styles */
.form-range {
  width: 100%;
  max-width: 180px;
  cursor: pointer;
}

.form-range::-webkit-slider-thumb {
  background: var(--primary-color);
  transition: transform 0.2s ease;
}

.form-range::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.form-range::-moz-range-thumb {
  background: var(--primary-color);
  transition: transform 0.2s ease;
}

.form-range::-moz-range-thumb:hover {
  transform: scale(1.1);
}

/* Volume Range Specific Style */
.volume-range {
  width: 100px;
}

/* Slider Value Display Styles */
#sensitivityValue,
#segmentDurationValue {
  font-size: 0.85rem;
  text-align: center;
  color: var(--text-light);
}

[data-bs-theme="dark"] #sensitivityValue,
[data-bs-theme="dark"] #segmentDurationValue {
  color: var(--text-dark);
}

/* Checkbox and Radio Input Styles */
.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.form-check-label {
  font-size: 0.9rem;
}

.form-check {
  margin-bottom: 0.5rem;
}

/* Waveform Container Styles */
.waveform-container {
  background: #ffffff;
  border: 1px solid #b0bec5;
  border-radius: 8px;
  box-shadow: var(--shadow-light);
  padding: 1rem;
}

[data-bs-theme="dark"] .waveform-container {
  background: #37474f;
  border-color: #78909c;
  box-shadow: var(--shadow-dark);
}

#waveformCanvas {
  width: 100%;
  height: 140px;
  max-height: 140px;
  display: block;
}

/* Control Group Styles (for audio controls) */
.control-group {
  padding: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-start;
}

.control-group .btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  min-width: 80px;
  line-height: 1.4;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.control-group .btn-sm:hover {
  transform: scale(1.02);
}

.control-group .form-range {
  width: 100px;
  height: 1.2rem;
}

.control-group label {
  font-size: 0.9rem;
  margin: 0 0.5rem;
}

/* Segments Container Styles */
#segmentsContainer {
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.segments-box {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #b0bec5;
  border-radius: 6px;
  padding: 1rem;
  background: #ffffff;
  box-shadow: var(--shadow-light);
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) #eceff1;
}

.segments-box::-webkit-scrollbar {
  width: 8px;
}

.segments-box::-webkit-scrollbar-track {
  background: #eceff1;
  border-radius: 4px;
}

.segments-box::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

.segments-box::-webkit-scrollbar-thumb:hover {
  background: #1565c0;
}

[data-bs-theme="dark"] .segments-box {
  background: #37474f;
  border-color: #78909c;
}

[data-bs-theme="dark"] .segments-box::-webkit-scrollbar-track {
  background: #455a64;
}

[data-bs-theme="dark"] .segments-box::-webkit-scrollbar-thumb {
  background: var(--primary-color);
}

[data-bs-theme="dark"] .segments-box::-webkit-scrollbar-thumb:hover {
  background: #1565c0;
}

/* Segment Item Styles */
.segment-item {
  transition: background-color 0.2s ease, transform 0.2s ease;
  border-radius: 4px;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 0.5rem;
  padding: 0.75rem;
  border: 1px solid #eceff1;
}

.segment-item:hover {
  background-color: #e3f2fd;
  transform: translateY(-1px);
}

[data-bs-theme="dark"] .segment-item {
  background: #455a64;
  border-color: #607d8b;
}

[data-bs-theme="dark"] .segment-item:hover {
  background-color: #546e7a;
}

/* Modal Styles */
.modal-content {
  border-radius: 8px;
  border: 1px solid #b0bec5;
  background: #ffffff;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

[data-bs-theme="dark"] .modal-content {
  background: #37474f;
  border-color: #78909c;
}

.modal-backdrop {
  backdrop-filter: blur(3px);
  background-color: rgba(0, 0, 0, 0.5);
}

/* Loading Emoji Styles */
.loading-emoji {
  font-size: 2.5rem;
  animation: spin 1.5s linear infinite;
}

.emotional-message {
  font-size: 1.1rem;
  font-weight: 600;
  color: #212121;
}

#loadingSubMessage {
  font-size: 0.85rem;
}

[data-bs-theme="dark"] .emotional-message {
  color: #e0e0e0;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Toast Container Styles */
#toastContainer {
  z-index: 1050;
}

/* Error Banner Styles */
#errorBanner {
  margin-top: 1rem;
  font-weight: 500;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--danger-color);
  border-radius: 6px;
  background-color: rgba(211, 47, 47, 0.1);
  color: var(--danger-color);
  display: block;
}

[data-bs-theme="dark"] #errorBanner {
  background-color: rgba(211, 47, 47, 0.2);
  color: #ffcdd2;
  border-color: #ef9a9a;
}


.forensic-container {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  padding: 32px 38px;
  width: 100%;
  max-width: 1000px;
  z-index: 11;
  display: flex;
  flex-direction: column;
  align-items: center;
}
@media (max-width: 1200px) {
  .forensic-container {
    max-width: 98vw;
    padding: 16px 2vw;
  }
}
#inputTabs {
  width: 70%;
  justify-content: center; /* or flex-start if you want them left-aligned */
  display: flex !important;
  gap: 16px;
}

#inputTabs .nav-item {
  flex: 1 1 0;
  min-width: 140px; /* Or adjust to your liking */
  text-align: center;
}


/* Footer Styles */
footer {
  border-top: 1px solid #b0bec5;
  background: #ffffff;
  box-shadow: var(--shadow-light);
  padding: 1rem;
  margin-top: auto;
}
#resultsContainer {
  max-width: 950px;     /* Wider result section */
  width: 100%;
  margin: 0 auto 32px auto;
  padding: 0 24px;
}


[data-bs-theme="dark"] footer {
  background: #2a3b3c;
  border-color: #78909c;
  box-shadow: var(--shadow-dark);
}

/* Responsive Design */
@media (max-width: 576px) {
  .main-card {
    padding: 1.5rem;
  }
  .upload-section {
    padding: 1.5rem;
  }
  .modal-body {
    padding: 1.5rem;
  }
  .loading-emoji {
    font-size: 2rem;
  }
  .emotional-message {
    font-size: 1rem;
  }
  .form-range {
    max-width: 150px;
  }
  .controls-container {
    padding: 1rem;
  }
  #waveformCanvas {
    height: 120px;
  }
  .waveform-container {
    max-width: 900px;     /* Wider waveform box */
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }
  .control-cell {
    min-height: auto;
    padding: 1rem;
  }
  .control-group .btn-sm {
    min-width: 70px;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
  .control-group .form-range {
    width: 100px;
  }
}

@media (min-width: 576px) and (max-width: 768px) {
  .main-card {
    padding: 2rem;
  }
  .upload-section {
    padding: 2rem;
  }
  #waveformCanvas {
    height: 130px;
  }
}

@media (min-width: 768px) and (max-width: 992px) {
  .main-card {
    padding: 2.5rem;
  }
  .upload-section {
    padding: 2.5rem;
  }
  #waveformCanvas {
    height: 135px;
  }
}

@media (min-width: 992px) {
  .main-card {
    padding: 3rem;
  }
  .upload-section {
    padding: 3rem;
  }
}

.tiktok-icon {
  height: 22px !important;
  width: 22px !important;
  margin-right: 4px;
  vertical-align: middle;
  object-fit: contain;
}
.twitter-icon {
  height: 22px !important;
  width: 22px !important;
  margin-right: 4px;
  vertical-align: middle;
  object-fit: contain;
}

.youtube-icon {
  height: 22px !important;
  width: 22px !important;
  margin-right: 4px;
  vertical-align: middle;
  object-fit: contain;
}
#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.upload-box {
  border: 2px dashed #ccc;
  border-radius: 12px;
  padding: 40px 20px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.upload-box:hover {
  border-color: #4b91f1;
  background: #f8faff;
}

.upload-box.dragover {
  background: #e6f0ff;
  border-color: #1d72f3;
}

.upload-icon i {
  font-size: 2rem;
  opacity: 0.6;
}
.wide-tab-content {
  max-width: 750px;         /* or 800px, tweak as needed */
  width: 100%;
  margin: 0 auto;
  padding: 0 32px 32px 32px;  /* More horizontal padding */
  box-sizing: border-box;
}

/* Optional: on mobile, allow 95vw max width */
@media (max-width: 900px) {
  .wide-tab-content {
    max-width: 97vw;
    padding: 0 6vw 18px 6vw;
  }
}
@media (max-width: 1000px) {
  #resultsContainer,
  .waveform-container {
    max-width: 98vw;
    padding: 0 2vw;
  }
}

.forensic-wrapper {
  width: 100vw;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  padding: 0 0 40px 0;
  position: relative;
  align-items: center;      /* vertical centering */
  justify-content: center;  /* horizontal centering */
}

.hero-header {
  background: #e3eeff;
  border-radius: 0 0 24px 24px;
  padding: 48px 0 32px 0;
  margin-bottom: 0;
  width: 100vw;
  min-width: 360px;
  box-shadow: 0 4px 32px 0 rgba(60, 80, 150, 0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.hero-header-content {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
  z-index: 2;
}
.hero-logo {
  height: 72px;
  width: 72px;
  border-radius: 16px;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}
.hero-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #213253;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.hero-badge {
  background: #26d962;
  color: #fff;
  font-size: 1rem;
  border-radius: 7px;
  padding: 3px 13px;
  margin-left: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 600;
  color: #174a6f;
  margin-bottom: 4px;
}
.hero-description {
  color: #456;
  font-size: 1rem;
  font-weight: 400;
  margin-top: 10px;
}
.hero-divider {
  margin-top: 24px;
  width: 88vw;
  max-width: 1700px;
  height: 5px;
  border-radius: 5px;
  background: linear-gradient(90deg, #bbd1fc 0%, #bad6f9 100%);
  opacity: 0.4;
  z-index: 1;
}

/* Main Card for content */
.main-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 20px 0 rgba(41,60,90,0.10);
  margin: 0 auto;
  margin-top: 100px; /* Overlap the card a bit with the hero */
  padding: 32px 42px;
  width: 100%;
  max-width: 900px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(-30px);
}
/* === Logo === */
#naussLogo {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  height: 120px;
  transition: transform 0.3s ease;
}
#naussLogo:hover {
  transform: translateX(-50%) scale(1.05);
}

/* Tab styles can stay as Bootstrap or be customized further */
