/* ---------- Global Styles ---------- */
body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  background: #f0f8ff;
  color: #333;
}

header {
  background: linear-gradient(90deg, #4b6cb7, #182848);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

nav a {
  color: white;
  margin-left: 1rem;
  text-decoration: none;
  font-weight: bold;
}

main {
  padding: 2rem;
}

/* ---------- Hero Section ---------- */
.hero {
  background: url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?fit=crop&w=1200&q=80') no-repeat center center/cover;
  color: white;
  padding: 6rem 2rem;
  text-align: center;
  border-radius: 0 0 50% 50% / 0 0 10% 10%;
}

.hero-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.2rem;
}

/* ---------- Info Cards ---------- */
.info-cards {
  display: flex;
  justify-content: space-around;
  margin-top: 3rem;
  gap: 1rem;
}

.card {
  background: linear-gradient(to bottom, #e0f7ff, #ffffff);
  border-radius: 15px;
  padding: 1.5rem;
  width: 250px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ---------- Staff Cards ---------- */
.staff-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.staff-card {
  background: linear-gradient(to bottom, #d0e7ff, #ffffff);
  border: 1px solid #a0c4ff;
  border-radius: 15px;
  padding: 1rem;
  width: 200px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

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

.staff-card img {
  border-radius: 50%;
  width: 80px;
  height: 80px;
  border: 2px solid #4b6cb7;
}

/* ---------- Forecast Cards ---------- */
.forecast-card {
  background: linear-gradient(to bottom, #e0f7ff, #ffffff);
  border-radius: 15px;
  padding: 1rem;
  width: 180px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin: 1rem 0;
}

.forecast-card img {
  width: 80px;
  height: 80px;
}

/* ---------- Alerts ---------- */
#alerts-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.alert-card {
  background: linear-gradient(to bottom, #fff4e6, #ffffff);
  border-left: 5px solid #ff6f61;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* ---------- Inputs ---------- */
input[type=text], input[type=password] {
  padding: 0.5rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  width: 250px;
  margin-right: 0.5rem;
}

button {
  padding: 0.5rem 1rem;
  border: none;
  background: #4b6cb7;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background: #182848;
}

/* ---------- Footer ---------- */
footer {
  text-align: center;
  padding: 1rem;
  background: #4b6cb7;
  color: white;
  margin-top: 2rem;
}

/* ---------- Under Construction Modal ---------- */
#construction-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#construction-modal .modal-content {
    background: #fff;
    padding: 40px 60px;
    border-radius: 12px;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

#construction-modal h2 {
    margin-bottom: 15px;
    color: #c0392b;
    font-size: 2rem;
}

#construction-modal p {
    font-size: 1rem;
    color: #333;
}

/* ---------- IP-based User Alert Banner ---------- */
#user-alert-banner {
    position: fixed;
    bottom: -100px;
    left: 0;
    width: 100%;
    background: #3498db;
    color: #fff;
    padding: 15px;
    font-size: 1rem;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.2);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    transition: bottom 0.5s ease, opacity 0.5s ease;
    opacity: 0;
}

#user-alert-banner.show {
    bottom: 0;
    opacity: 1;
}

#user-alert-banner button {
    background: rgba(255,255,255,0.3);
    border: none;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

#user-alert-banner button:hover {
    background: rgba(255,255,255,0.6);
}
