/* OMNI Athlete Biomarker Analyzer Styles */

:root {
  --omni-burgundy: #800020;
  --omni-gold: #D4AF37;
  --omni-light-gold: #F8F4E3;
  --omni-dark: #333333;
  --omni-light: #F5F5F5;
  --status-low: #FF5252;
  --status-borderline: #FFC107;
  --status-optimal: #4CAF50;
  --status-high: #FF5252;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.6;
  color: var(--omni-dark);
  background-color: var(--omni-light);
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 0;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
.site-header {
  background-color: #000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.site-title a {
  text-decoration: none;
}

.site-title h1 {
  color: var(--omni-gold);
  margin: 0;
  font-size: 1.8rem;
  font-weight: 500;
}

.site-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav li {
  margin-left: 30px;
}

.site-nav a {
  text-decoration: none;
  color: #000;
  font-weight: 500;
  transition: all 0.3s ease;
  background-color: var(--omni-gold);
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid var(--omni-gold);
}

.site-nav a:hover {
  background-color: #e0b93d;
  color: #000;
}

.back-link {
  display: flex;
  align-items: center;
  color: var(--omni-burgundy);
  text-decoration: none;
  font-weight: 500;
}

.back-link:hover {
  text-decoration: underline;
}

/* Hero Section */
.hero {
  background: linear-gradient(to right, var(--omni-burgundy), #A52A2A);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px;
}

/* Main Content */
.main-content {
  padding: 60px 0;
}

.section {
  margin-bottom: 60px;
}

.section-title {
  color: var(--omni-burgundy);
  margin-bottom: 30px;
  text-align: center;
  font-size: 2rem;
}

/* Form Styles */
.form-container {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.form-tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.form-tab {
  padding: 10px 20px;
  cursor: pointer;
  font-weight: 500;
  border-bottom: 3px solid transparent;
}

.form-tab.active {
  color: var(--omni-burgundy);
  border-bottom-color: var(--omni-burgundy);
}

.tab-content {
  display: none;
}

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

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
}

.form-col {
  flex: 1;
  padding: 0 10px;
  min-width: 200px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.input-group {
  display: flex;
  align-items: center;
}

input[type="number"],
input[type="file"],
input[type="text"] {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

.input-unit {
  margin-left: 10px;
  color: #777;
  min-width: 60px;
}

.biomarker-info {
  color: #666;
  font-size: 0.85rem;
  margin-top: 5px;
}

.biomarker-section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--omni-burgundy);
  margin: 25px 0 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--omni-light-gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-buttons {
  margin-top: 30px;
  text-align: center;
}

.btn {
  background-color: var(--omni-burgundy);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #600018;
}

.btn-secondary {
  background-color: #6c757d;
}

.btn-secondary:hover {
  background-color: #5a6268;
}

/* Results Styles */
.results-container {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.results-summary {
  text-align: center;
  margin-bottom: 40px;
}

.summary-number {
  font-size: 4rem;
  font-weight: 700;
  color: var(--omni-burgundy);
  margin: 0;
}

.summary-text {
  font-size: 1.2rem;
  margin-top: 10px;
}

.biomarker-list {
  margin-top: 30px;
}

.biomarker-item {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.biomarker-item:last-child {
  border-bottom: none;
}

.biomarker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.biomarker-name {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--omni-dark);
  margin: 0;
}

.biomarker-value {
  font-size: 1.2rem;
  font-weight: 700;
}

.biomarker-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.status-low {
  background-color: var(--status-low);
  color: white;
}

.status-borderline {
  background-color: var(--status-borderline);
  color: black;
}

.status-optimal, .status-normal {
  background-color: var(--status-optimal);
  color: white;
}

.status-high, .status-diabetes {
  background-color: var(--status-high);
  color: white;
}

.biomarker-range {
  margin-top: 5px;
  color: #666;
  font-size: 0.9rem;
}

.biomarker-meter {
  height: 10px;
  background-color: #eee;
  border-radius: 5px;
  margin: 15px 0;
  position: relative;
  overflow: hidden;
}

.biomarker-progress {
  height: 100%;
  border-radius: 5px;
  transition: width 1s ease-out;
}

.biomarker-recommendation {
  margin-top: 15px;
  padding: 15px;
  background-color: var(--omni-light-gold);
  border-left: 4px solid var(--omni-gold);
  border-radius: 4px;
}

.biomarker-recommendation h4 {
  margin-top: 0;
  color: var(--omni-burgundy);
}

.actions {
  margin-top: 40px;
  text-align: center;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero {
    padding: 60px 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .form-col {
    flex: 100%;
    margin-bottom: 15px;
  }
  
  .biomarker-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .biomarker-value {
    font-size: 1rem;
  }
  
  .site-nav ul {
    flex-direction: column;
  }
  
  .site-nav li {
    margin-left: 0;
    margin-bottom: 10px;
  }
}

/* Helper Classes */
.mb-0 {
  margin-bottom: 0;
}

.text-center {
  text-align: center;
}

.hidden {
  display: none;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

/* PDF Upload Styles */
.pdf-upload-container {
  text-align: center;
  padding: 40px 20px;
  border: 2px dashed #ccc;
  border-radius: 8px;
  margin-bottom: 20px;
  transition: all 0.3s;
}

.pdf-upload-container.dragover {
  background-color: rgba(212, 175, 55, 0.1);
  border-color: var(--omni-gold);
}

.upload-icon {
  font-size: 48px;
  color: #aaa;
  margin-bottom: 15px;
}

.pdf-upload-text {
  margin-bottom: 20px;
}

.file-requirements {
  font-size: 0.85rem;
  color: #777;
  margin-top: 15px;
}

/* Loading indicator */
.loading {
  display: none;
  text-align: center;
  padding: 20px;
}

.loading-spinner {
  border: 5px solid #f3f3f3;
  border-top: 5px solid var(--omni-burgundy);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Footer */
.site-footer {
  background-color: var(--omni-dark);
  color: white;
  padding: 40px 0 20px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-section {
  flex: 1;
  min-width: 250px;
  margin-bottom: 30px;
  padding-right: 30px;
}

.footer-section h3 {
  color: var(--omni-gold);
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--omni-gold);
}

.copyright {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #444;
  color: #aaa;
  font-size: 0.9rem;
}
