/* DataScope - Custom CSS */

/* Upload bar */
.upload-bar {
  background-color: #f8f9fa;
  padding: 12px 20px;
  border-bottom: 2px solid #18BC9C;
  margin-bottom: 15px;
}

.upload-bar .form-group {
  margin-bottom: 0;
}

/* Cards */
.stats-card {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 5px solid #007bff;
}

.narrative-box {
  background-color: #e6f3ff;
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 20px;
  border-left: 6px solid #007bff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  font-family: 'Roboto', sans-serif;
  line-height: 1.7;
  transition: background-color 0.3s ease;
}

.narrative-box:hover {
  background-color: #f0f8ff;
}

.narrative-box h5 {
  color: #2C3E50;
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 1.1em;
}

.narrative-box p {
  color: #34495E;
  margin-bottom: 8px;
}

/* ML cards */
.ml-config-card {
  border-left: 5px solid #18BC9C;
}

.ml-results-card {
  border-left: 5px solid #2C3E50;
}

.prediction-card {
  border-left: 5px solid #e74c3c;
}

/* Stored plots list */
.stored-plots-list {
  background-color: #f0fff4;
  padding: 15px;
  border-radius: 8px;
  border-left: 5px solid #18BC9C;
  margin-top: 10px;
}

/* EDA summary cards */
.eda-summary-card {
  border-left: 5px solid #9b59b6;
}

/* Tab content spacing */
.tab-content {
  margin-top: 10px;
}

/* Esquisse container */
.esquisse-container {
  height: 80vh !important;
  max-height: 800px;
}

/* GWalkR container */
.gwalkr-container {
  min-height: 700px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 10px;
}

/* Pivot table container */
.pivot-container {
  min-height: 700px;
}

/* Value boxes */
.info-box {
  background: linear-gradient(135deg, #2C3E50, #34495E);
  color: white;
  padding: 15px 20px;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 15px;
}

.info-box .value {
  font-size: 1.8em;
  font-weight: 700;
}

.info-box .label {
  font-size: 0.9em;
  opacity: 0.85;
}

/* Loading overlay */
.loading-message {
  color: #2C3E50;
  font-style: italic;
  padding: 20px;
  text-align: center;
}

/* Nav customization */
.navbar .nav-link {
  font-weight: 500;
}

.dropdown-menu {
  border: 1px solid #18BC9C;
}

/* Data table styling */
.dataTables_wrapper {
  padding: 10px 0;
}

/* Report section */
.report-checklist {
  max-height: 400px;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
}

/* Responsive fixes */
@media (max-width: 768px) {
  .upload-bar {
    padding: 8px 10px;
  }
  .narrative-box {
    padding: 15px;
  }
}

/* ============================================
   Start Screen
   ============================================ */
.start-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2C3E50 0%, #34495E 50%, #18BC9C 100%);
  padding: 40px 20px;
}

.start-screen-inner {
  max-width: 900px;
  width: 100%;
  text-align: center;
}

.start-title {
  color: white;
  font-size: 3.5em;
  font-weight: 700;
  margin-bottom: 0;
  letter-spacing: -1px;
}

.start-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.3em;
  margin-bottom: 40px;
}

.start-cards {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.start-card {
  background: white;
  border-radius: 16px;
  padding: 35px 30px;
  width: 380px;
  text-align: left;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.start-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.start-card h3 {
  color: #2C3E50;
  font-weight: 700;
  margin-bottom: 10px;
}

.start-card-desc {
  color: #7f8c8d;
  font-size: 0.95em;
  margin-bottom: 20px;
  line-height: 1.5;
}

.start-card-features {
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
}

.start-card-features li {
  padding: 4px 0;
  color: #34495E;
  font-size: 0.9em;
  padding-left: 18px;
  position: relative;
}

.start-card-features li::before {
  content: "\2014";
  position: absolute;
  left: 0;
  color: #18BC9C;
  font-weight: bold;
}

.start-btn {
  width: 100%;
}

.start-footer {
  margin-top: 40px;
  color: rgba(255, 255, 255, 0.5);
}

/* Mode switcher (in navbar when inside a mode) */
.mode-switcher {
  background: #f8f9fa;
  padding: 6px 20px;
  border-bottom: 1px solid #dee2e6;
  text-align: right;
}

.mode-switch-link {
  color: #18BC9C;
  font-weight: 500;
  font-size: 0.9em;
  text-decoration: none;
}

.mode-switch-link:hover {
  color: #2C3E50;
  text-decoration: underline;
}

/* Responsive: start screen */
@media (max-width: 768px) {
  .start-cards {
    flex-direction: column;
    align-items: center;
  }
  .start-card {
    width: 100%;
    max-width: 400px;
  }
  .start-title {
    font-size: 2.5em;
  }
}
