:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --success-color: #27ae60;
  --warning-color: #f39c12;
  --light-gray: #ecf0f1;
  --dark-gray: #34495e;
  --white: #ffffff;
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 5px 20px rgba(0, 0, 0, 0.15);
  --border-radius: 12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--primary-color);
  background: var(--light-gray);
}

.main-container {
  min-height: 100vh;
  padding: 0;
}

.hero-section {
  background: var(--gradient-primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
}

.hero-content {
  text-align: center;
  max-width: 500px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  backdrop-filter: blur(10px);
}

.feature-icon {
  font-size: 1.5rem;
}

.form-section {
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
}

.prediction-form {
  width: 100%;
  max-width: 600px;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
}

.form-title {
  font-size: 2.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.form-subtitle {
  text-align: center;
  color: var(--dark-gray);
  margin-bottom: 2rem;
  opacity: 0.8;
}

.form-label {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.form-control,
.form-select {
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 0.75rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.btn-predict {
  background: var(--gradient-secondary);
  border: none;
  color: var(--white);
  font-weight: 600;
  font-size: 1.1rem;
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-predict:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

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

.btn-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.result-card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  overflow: hidden;
  border: 1px solid #e9ecef;
}

.result-header {
  background: var(--gradient-primary);
  color: var(--white);
  padding: 1rem;
  text-align: center;
}

.result-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.result-content {
  padding: 1.5rem;
}

.risk-indicator {
  text-align: center;
  margin-bottom: 2rem;
}

.risk-level {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  color: var(--white);
}

.risk-level.high {
  background: var(--accent-color);
}

.risk-level.low {
  background: var(--success-color);
}

.risk-text {
  font-size: 1.2rem;
  font-weight: 600;
}

.probability-bars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.probability-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.probability-item label {
  font-weight: 600;
  color: var(--primary-color);
}

.progress {
  height: 1.5rem;
  background-color: #e9ecef;
  border-radius: 0.75rem;
  overflow: hidden;
}

.progress-bar {
  transition: width 0.6s ease;
}

.probability-value {
  align-self: flex-end;
  font-weight: 600;
  color: var(--primary-color);
}

.alert {
  border-radius: var(--border-radius);
  padding: 1rem;
  margin: 0;
}

@media (max-width: 992px) {
  .hero-section {
    min-height: 50vh;
  }

  .form-section {
    min-height: auto;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .prediction-form {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .hero-features {
    flex-direction: column;
  }

  .feature-item {
    flex-direction: column;
    text-align: center;
  }

  .hero-title {
    font-size: 2rem;
  }

  .prediction-form {
    padding: 1rem;
  }

  .form-title {
    font-size: 2rem;
  }
}

/* Animation for result card */
.result-card {
  animation: slideIn 0.5s ease-out;
}

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

/* Loading animation */
.btn-predict:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Smooth transitions */
* {
  transition:
    color 0.3s ease,
    background-color 0.3s ease,
    border-color 0.3s ease;
}
