/* General Body Styling */
body {
    font-family: 'Inter', sans-serif;
    background: #f7f9fa;
    margin: 0;
    padding: 20px;
    color: #333;
    line-height: 1.6;
}

/* Hero Section with Background Image */
.hero-section {
    background-image: url('/static/sky_background.png');
    background-size: cover;
    background-position: center;
    padding: 100px 20px;
    border-radius: 20px; /* corrected syntax */
    text-align: center;
    position: relative;
    color: white;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.4);
    padding: 60px 20px;
    border-radius: 12px;
    max-width: 700px;
    margin: auto;
}

.hero-overlay h1,
.hero-overlay p {
    color: white;
    margin-bottom: 20px;
}

.hero-overlay input[type="text"] {
    padding: 10px;
    width: 280px;
    border-radius: 6px;
    border: none;
}

.hero-overlay button {
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    margin-left: 10px;
    cursor: pointer;
}

/* Header Styling */
.header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    justify-content: center;
    text-align: center;
}

.header img {
    max-height: 180px;
    margin-right: 20px;
    transition: transform 0.3s ease;
}

.header img:hover {
    transform: scale(1.05);
}

/* Main Title */
h1 {
    font-size: 2.2rem;
    font-weight: 600;
    color: #34495e;
    margin: 0;
}

/* Button Styling */
button {
    padding: 10px 16px;
    font-size: 1.1rem;
    background-color: #2ecc71;
    color: white;
    border: none;
    border-radius: 6px;
    margin-left: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #27ae60;
}

/* Score Value */
.score-value {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    padding: 15px 0;
    border-radius: 8px;
    background-color: #ecf0f1;
    width: 100%;
}

.score-good { color: #2ecc71; }
.score-fair { color: #f1c40f; }
.score-bad  { color: #e74c3c; }

/* Card Styling */
.card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th, td {
    text-align: left;
    padding: 10px 15px;
    border-bottom: 1px solid #ddd;
    transition: background-color 0.2s ease;
}

th {
    background-color: #f2f2f2;
    font-weight: 600;
}

td {
    background-color: #fafafa;
}

tr:hover td {
    background-color: #f1f1f1;
}

/* Error Message */
.error {
    color: #e74c3c;
    margin-top: 10px;
}

/* Canvas (for chart) */
canvas {
    display: block;
    margin: 0 auto;
}

/* Impact Label Styling */
.impact-low { color: #2ecc71; font-weight: bold; }
.impact-medium { color: #f1c40f; font-weight: bold; }
.impact-high { color: #e74c3c; font-weight: bold; }

/* Navigation Styling */
.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: relative;
}

.nav-bar img {
  max-height: 150px;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: #34495e;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #2980b9;
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: #2980b9;
}

.nav-links a:hover::after {
  width: 100%;
}

.menu-icon {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
}

.menu-icon div {
  height: 3px;
  background-color: #333;
  margin: 4px 0;
  width: 24px;
  border-radius: 2px;
}

/* Mobile Menu */
.nav-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 60px;
  right: 40px;
  background-color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  z-index: 1000;
}

.nav-menu a {
  padding: 12px 16px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.nav-menu a:hover {
  background-color: #f2f2f2;
}

/* Show hamburger menu only on narrow screens */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .menu-icon {
    display: flex;
  }
  .nav-menu.show {
    display: flex;
  }
}
