/* ===========================
   FORM ANALYSIS PAGE STYLES
   Must load AFTER base.css and details.css
   =========================== */

/* CRITICAL FIX: Override details.css overflow hidden */
body {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  min-height: 100vh;
}

/* ===========================
   TOP BAR
   =========================== */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

@media (prefers-color-scheme: light) {
  .top-bar {
    background: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  }
}

.top-bar-content {
  max-width: 1600px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-title-section {
  display: flex;
  align-items: center;
  gap: 16px;
}

.page-title {
  font-size: 24px;
  font-weight: 800;
  color: white;
  margin: 0;
  letter-spacing: -0.02em;
}

@media (prefers-color-scheme: light) {
  .page-title {
    color: #2d2d2d;
  }
}

.runner-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
  color: white;
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 12px var(--accent-glow);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: var(--accent-color);
}

.breadcrumb .accent {
  color: var(--accent-color);
  font-weight: 600;
}

@media (prefers-color-scheme: light) {
  .breadcrumb {
    color: rgba(0, 0, 0, 0.6);
  }
  
  .breadcrumb a {
    color: rgba(0, 0, 0, 0.6);
  }
}

/* ===========================
   MAIN CONTAINER
   =========================== */
.main-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 32px;
}

.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}

.main-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ===========================
   UPLOAD SECTION
   =========================== */
.upload-section {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

@media (prefers-color-scheme: light) {
  .upload-section {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  }
}

.section-header {
  margin-bottom: 24px;
}

.section-title {
  font-size: 28px;
  font-weight: 800;
  color: white;
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
}

@media (prefers-color-scheme: light) {
  .section-title {
    color: #2d2d2d;
  }
}

.section-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

@media (prefers-color-scheme: light) {
  .section-subtitle {
    color: rgba(0, 0, 0, 0.6);
  }
}

.upload-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ===========================
   UPLOAD AREA
   =========================== */
.upload-area {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  background: rgba(0, 0, 0, 0.2);
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.upload-area:hover {
  border-color: var(--accent-color);
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 30px var(--accent-glow);
}

.upload-area.dragover {
  border-color: var(--accent-color);
  background: var(--accent-10, rgba(224, 120, 86, 0.1));
  box-shadow: 0 0 40px var(--accent-glow);
  transform: scale(1.02);
}

@media (prefers-color-scheme: light) {
  .upload-area {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.15);
  }

  .upload-area:hover {
    background: rgba(0, 0, 0, 0.05);
  }

  .upload-area.dragover {
    background: var(--accent-10, rgba(224, 120, 86, 0.08));
  }
}

.upload-icon {
  margin-bottom: 16px;
  color: var(--accent-color);
  opacity: 0.8;
}

.upload-text {
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin-bottom: 8px;
}

@media (prefers-color-scheme: light) {
  .upload-text {
    color: #2d2d2d;
  }
}

.upload-subtext {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  line-height: 1.6;
}

@media (prefers-color-scheme: light) {
  .upload-subtext {
    color: rgba(0, 0, 0, 0.5);
  }
}

.upload-btn {
  margin-top: 16px;
  padding: 12px 32px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  font-family: 'Inter', sans-serif;
}

/* ===========================
   UPLOAD INSTRUCTIONS
   =========================== */
.upload-instructions {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 24px;
}

@media (prefers-color-scheme: light) {
  .upload-instructions {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
  }
}

.upload-instructions h3 {
  font-size: 16px;
  font-weight: 700;
  color: white;
  margin: 0 0 8px 0;
}

@media (prefers-color-scheme: light) {
  .upload-instructions h3 {
    color: #2d2d2d;
  }
}

.instruction-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 16px 0;
}

@media (prefers-color-scheme: light) {
  .instruction-note {
    color: rgba(0, 0, 0, 0.6);
  }
}

.angle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.angle-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  transition: all 0.3s ease;
}

.angle-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-color);
  transform: translateY(-2px);
}

@media (prefers-color-scheme: light) {
  .angle-card {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(0, 0, 0, 0.08);
  }
  
  .angle-card:hover {
    background: rgba(255, 255, 255, 0.6);
  }
}

.angle-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.angle-name {
  font-size: 13px;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}

@media (prefers-color-scheme: light) {
  .angle-name {
    color: #2d2d2d;
  }
}

.angle-desc {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

@media (prefers-color-scheme: light) {
  .angle-desc {
    color: rgba(0, 0, 0, 0.5);
  }
}

/* ===========================
   FILE INFO
   =========================== */
.file-info {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
}

@media (prefers-color-scheme: light) {
  .file-info {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
  }
}

.file-count {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 12px;
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  font-size: 13px;
}

@media (prefers-color-scheme: light) {
  .file-item {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(0, 0, 0, 0.06);
  }
}

.file-name {
  color: white;
  font-weight: 500;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (prefers-color-scheme: light) {
  .file-name {
    color: #2d2d2d;
  }
}

.file-size {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  margin-left: 12px;
}

@media (prefers-color-scheme: light) {
  .file-size {
    color: rgba(0, 0, 0, 0.5);
  }
}

/* ===========================
   VIDEO PREVIEW
   =========================== */
.video-preview {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

@media (prefers-color-scheme: light) {
  .video-preview {
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  }
}

.video-preview video {
  width: 100%;
  display: block;
  background: #000;
}

/* ===========================
   SUBMIT BUTTON
   =========================== */
.submit-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.btn-analyze {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 48px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-family: 'Inter', sans-serif;
}

.btn-analyze:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===========================
   ANALYSIS DASHBOARD
   =========================== */
.analysis-dashboard {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

@media (prefers-color-scheme: light) {
  .analysis-dashboard {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  }
}

.analysis-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (prefers-color-scheme: light) {
  .analysis-header {
    border-bottom-color: rgba(0, 0, 0, 0.1);
  }
}

.analysis-title {
  font-size: 28px;
  font-weight: 800;
  color: white;
  margin: 0;
  letter-spacing: -0.02em;
}

@media (prefers-color-scheme: light) {
  .analysis-title {
    color: #2d2d2d;
  }
}

.status-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-chip.active {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
  color: white;
  border-color: transparent;
  box-shadow: 0 2px 12px var(--accent-glow);
}

@media (prefers-color-scheme: light) {
  .status-chip {
    background: rgba(0, 0, 0, 0.05);
    color: rgba(0, 0, 0, 0.6);
    border-color: rgba(0, 0, 0, 0.1);
  }
}

/* ===========================
   ANALYSIS GRID
   =========================== */
.analysis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

/* ===========================
   WIDGETS
   =========================== */
.widget {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
}

.widget:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

@media (prefers-color-scheme: light) {
  .widget {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(0, 0, 0, 0.08);
  }
  
  .widget:hover {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }
}

.widget-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (prefers-color-scheme: light) {
  .widget-header {
    border-bottom-color: rgba(0, 0, 0, 0.08);
  }
}

.widget-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-15, rgba(224, 120, 86, 0.15));
  border-radius: 8px;
  color: var(--accent-color);
  flex-shrink: 0;
}

.widget-icon svg {
  width: 18px;
  height: 18px;
}

.widget-title {
  font-size: 16px;
  font-weight: 700;
  color: white;
  margin: 0;
}

@media (prefers-color-scheme: light) {
  .widget-title {
    color: #2d2d2d;
  }
}

.widget-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ===========================
   METRICS
   =========================== */
.metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.metric-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

@media (prefers-color-scheme: light) {
  .metric-label {
    color: rgba(0, 0, 0, 0.7);
  }
}

.metric-value {
  font-size: 16px;
  font-weight: 700;
  color: white;
}

@media (prefers-color-scheme: light) {
  .metric-value {
    color: #2d2d2d;
  }
}

.metric-value.pending {
  color: rgba(255, 255, 255, 0.3);
  font-style: italic;
}

@media (prefers-color-scheme: light) {
  .metric-value.pending {
    color: rgba(0, 0, 0, 0.3);
  }
}

/* ===========================
   STATUS INDICATORS
   =========================== */
.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.status-good {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

.status-warning {
  background: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

.status-danger {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

/* ===========================
   PLACEHOLDER CHART
   =========================== */
.placeholder-chart {
  padding: 40px 20px;
  text-align: center;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  font-style: italic;
}

@media (prefers-color-scheme: light) {
  .placeholder-chart {
    background: rgba(0, 0, 0, 0.03);
    color: rgba(0, 0, 0, 0.5);
  }
}

/* ===========================
   INSIGHT TEXT
   =========================== */
.insight-text {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

@media (prefers-color-scheme: light) {
  .insight-text {
    color: rgba(0, 0, 0, 0.7);
  }
}

/* ===========================
   AI CHAT SIDEBAR
   =========================== */
.ai-chat-sidebar {
  position: sticky;
  top: 96px;
  height: calc(100vh - 128px);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

@media (prefers-color-scheme: light) {
  .ai-chat-sidebar {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  }
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (prefers-color-scheme: light) {
  .chat-header {
    border-bottom-color: rgba(0, 0, 0, 0.1);
  }
}

.chat-title {
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin: 0;
}

@media (prefers-color-scheme: light) {
  .chat-title {
    color: #2d2d2d;
  }
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
  padding-right: 8px;
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 10px;
}

.chat-message {
  padding: 14px 16px;
  border-radius: 12px;
  max-width: 85%;
  animation: messageSlideIn 0.3s ease;
}

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

.chat-message.user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
  color: white;
  border-bottom-right-radius: 4px;
}

.chat-message.bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  border-bottom-left-radius: 4px;
}

@media (prefers-color-scheme: light) {
  .chat-message.bot {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.1);
    color: #2d2d2d;
  }
}

.message-content {
  font-size: 14px;
  line-height: 1.6;
}

.chat-input-wrapper {
  display: flex;
  gap: 10px;
}

.chat-input {
  flex: 1;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: white;
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.chat-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.chat-input:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.chat-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (prefers-color-scheme: light) {
  .chat-input {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.1);
    color: #2d2d2d;
  }
  
  .chat-input::placeholder {
    color: rgba(0, 0, 0, 0.4);
  }
  
  .chat-input:focus {
    background: rgba(255, 255, 255, 0.8);
  }
}

#sendBtn {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 10px;
  white-space: nowrap;
}

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

@media (max-width: 1200px) {
  .content-wrapper {
    grid-template-columns: 1fr;
  }
  
  .ai-chat-sidebar {
    position: relative;
    top: 0;
    height: 500px;
  }
}

@media (max-width: 768px) {
  .main-container {
    padding: 20px;
  }
  
  .top-bar-content {
    padding: 12px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .page-title {
    font-size: 20px;
  }
  
  .runner-badge {
    font-size: 11px;
    padding: 5px 12px;
  }
  
  .breadcrumb {
    font-size: 12px;
  }
  
  .upload-section,
  .analysis-dashboard {
    padding: 24px;
    border-radius: 16px;
  }
  
  .section-title,
  .analysis-title {
    font-size: 22px;
  }
  
  .analysis-grid {
    grid-template-columns: 1fr;
  }
  
  .angle-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .upload-area {
    padding: 32px 20px;
  }
  
  .btn-analyze {
    padding: 14px 32px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .main-container {
    padding: 16px;
  }
  
  .content-wrapper {
    gap: 20px;
  }
  
  .main-content {
    gap: 20px;
  }
  
  .page-title-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .analysis-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .angle-grid {
    grid-template-columns: 1fr;
  }
  
  .chat-message {
    max-width: 95%;
  }
}

/* ===========================
   FILE INPUT (Hidden)
   =========================== */

input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
.logo-link {
    display: inline-flex;
    align-items: center;
    margin-right: 15px;
    text-decoration: none;
}

.header-logo {
    height: 40px;
    width: auto;
    transition: opacity 0.2s;
}

.header-logo:hover {
    opacity: 0.8;
}

.page-title-section {
    display: flex;
    align-items: center;
}

/* ===========================
   COMING SOON OVERLAY
   =========================== */
.coming-soon-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

@media (prefers-color-scheme: light) {
    .coming-soon-overlay {
        background: rgba(255, 255, 255, 0.92);
    }
}

.coming-soon-content {
    max-width: 500px;
    text-align: center;
    animation: comingSoonFadeIn 0.6s ease;
}

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

.coming-soon-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    border-radius: 50%;
    box-shadow: 0 8px 32px var(--accent-glow);
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 32px var(--accent-glow);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 48px var(--accent-glow);
    }
}

.coming-soon-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

.coming-soon-title {
    font-size: 42px;
    font-weight: 800;
    color: white;
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
}

@media (prefers-color-scheme: light) {
    .coming-soon-title {
        color: #2d2d2d;
    }
}

.coming-soon-text {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 32px 0;
}

@media (prefers-color-scheme: light) {
    .coming-soon-text {
        color: rgba(0, 0, 0, 0.6);
    }
}

.coming-soon-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
}

@media (prefers-color-scheme: light) {
    .feature-item {
        color: rgba(0, 0, 0, 0.7);
    }
}

.feature-item svg {
    width: 18px;
    height: 18px;
    color: var(--accent-color);
    flex-shrink: 0;
}

.coming-soon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    color: white;
    font-size: 15px;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px var(--accent-glow);
}

.coming-soon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

/* Blur the background content */
.coming-soon-blur {
    filter: blur(4px);
    pointer-events: none;
    user-select: none;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .coming-soon-icon {
        width: 64px;
        height: 64px;
    }

    .coming-soon-icon svg {
        width: 32px;
        height: 32px;
    }

    .coming-soon-title {
        font-size: 32px;
    }

    .coming-soon-text {
        font-size: 14px;
    }

    .feature-item {
        font-size: 14px;
    }
}