/* ===== GLOBAL RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

/* ===== BODY ===== */
body {
  min-height: 100vh;
  color: #ffffff;
  background:
    linear-gradient(rgba(15, 32, 39, 0.75), rgba(15, 32, 39, 0.75)),
    url("bg.JPEG");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* ===== HEADER ===== */
header {
  text-align: center;
  padding: 40px 20px;
}

.header-bubble {
  display: inline-block;
  padding: 18px 30px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.header-bubble h1 {
  font-size: 2.2rem;
  margin-bottom: 6px;
}

.header-bubble p {
  opacity: 0.85;
  font-size: 0.95rem;
}

/* ===== DASHBOARD GRID ===== */
.dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 30px;
  max-width: 1000px;
  margin: auto;
  align-items: stretch;
}

/* ===== CARD BASE ===== */
.card {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  padding: 25px;
  text-align: center;

  backdrop-filter: blur(14px) saturate(120%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);

  display: flex;
  flex-direction: column;
  justify-content: center;

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5);
}

.card h2 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  opacity: 0.9;
}

/* ===== SENSOR COLORS ===== */
.temperature { border-left: 6px solid #ff6b6b; }
.humidity    { border-left: 6px solid #4dabf7; }
.pressure    { border-left: 6px solid #69db7c; }
.time        { border-left: 6px solid #cdeb06; }
.date-card   { border-left: 6px solid #8b5cf6; }

/* ===== VALUES ===== */
.value {
  font-size: 3rem;
  font-weight: bold;
}

/* ===== GAUGES ===== */
.gauge {
  width: 100%;
  max-width: 220px;
  margin: auto;
}

.gauge .bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 14;
}

.gauge .fg {
  fill: none;
  stroke-width: 14;
  stroke-linecap: round;
  stroke-dasharray: 251;
  stroke-dashoffset: 251;
}

.temperature .fg { stroke: #ff6b6b; }
.humidity .fg    { stroke: #4dabf7; }
.pressure .fg    { stroke: #69db7c; }

.gauge-value {
  font-size: 22px;
  fill: #ffffff;
  font-weight: bold;
}

/* ===== FLIP CLOCK ===== */
.flip-clock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: black;
}

.flip-unit {
  position: relative;
  width: 58px;
  height: 78px;
  perspective: 1000px;
}

.flip-unit span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
  border-radius: 10px;
  backface-visibility: hidden;
}

.flip-unit .bottom {
  transform: rotateX(90deg);
  transform-origin: top;
}

.colon {
  font-size: 2.4rem;
  opacity: 0.75;
}

.ampm {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* ===== DAY / NIGHT ===== */
#dayNightCard.day {
  background: linear-gradient(135deg, #fde68a, #fbbf24);
  color: #1f2937;
}

#dayNightCard.night {
  background: linear-gradient(135deg, #020617, #0f172a);
  color: #e5e7eb;
}

/* ===== DATE CARD ===== */
.date-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.date-weekday {
  font-size: 1.1rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.75;
}

.date-year {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 2px;
}

.date-md {
  display: flex;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  font-size: 1.3rem;
  font-weight: 600;
}

/* ===== FOOTER ===== */
/* ===== FOOTER (RESTORED) ===== */
footer {
  text-align: center;
  padding: 25px 20px;
  opacity: 0.9;
  font-size: 0.95rem;
}

.footer-bubble {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 18px;

  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  border-radius: 20px;
  font-size: 0.8rem;
  opacity: 0.85;

  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
/* ===== EASTER EGG (RESTORED) ===== */
.easter-egg {
  position: fixed;
  bottom: 12px;
  right: 14px;

  font-size: 0.7rem;
  letter-spacing: 1px;

  color: rgba(255, 255, 255, 0);
  background: transparent;

  padding: 6px 10px;
  transition: color 0.3s ease;

  user-select: none;
  cursor: default;
  z-index: 10;
}

.easter-egg:hover {
  color: rgba(255, 255, 255, 0.18);
}
@media (max-width: 768px) {
  .dashboard {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px;
  }
}
@media (max-width: 768px) {
  .card {
    min-height: 260px;
    padding: 20px;
  }
}
@media (max-width: 768px) {
  .flip-clock {
    gap: 8px;
    transform: scale(0.9);
  }

  .flip-unit {
    width: 50px;
    height: 68px;
  }

  .flip-unit span {
    font-size: 1.8rem;
  }

  .colon {
    font-size: 2rem;
    padding-bottom: 4px;
  }

  .ampm {
    font-size: 0.75rem;
    margin-left: 6px;
  }
}
@media (max-width: 768px) {
  .flip-clock {
    gap: 8px;
    transform: scale(0.9);
  }

  .flip-unit {
    width: 50px;
    height: 68px;
  }

  .flip-unit span {
    font-size: 1.8rem;
  }

  .colon {
    font-size: 2rem;
    padding-bottom: 4px;
  }

  .ampm {
    font-size: 0.75rem;
    margin-left: 6px;
  }
}
@media (max-width: 768px) {
  .date-card,
  #dayNightCard,
  .card.time {
    max-width: 100%;
  }

  .date-wrap {
    gap: 10px;
  }

  .date-year {
    font-size: 1.2rem;
  }

  .date-md {
    font-size: 1.2rem;
    padding: 8px 16px;
  }

  .date-weekday {
    font-size: 1rem;
  }
}
@media (max-width: 600px) {
  .header-bubble h1 {
    font-size: 1.25rem;
  }

  .header-bubble p {
    font-size: 0.8rem;
  }

  header {
    padding: 22px 12px;
  }
}
@media (max-width: 600px) {
  footer {
    font-size: 0.8rem;
    padding: 18px 10px;
  }

  .easter-egg {
    font-size: 0.65rem;
    bottom: 8px;
    right: 10px;
  }
  @media (max-width: 600px) {
  header {
    margin-top: 18px;
  }
}

}

@media (max-width: 600px) {
  footer {
    font-size: 0.8rem;
    padding: 18px 10px;
  }

  .easter-egg {
    font-size: 0.65rem;
    bottom: 8px;
    right: 10px;
  }
}
footer {
  margin-bottom: 28px;
}

.easter-egg {
  bottom: 14px;
  right: 16px;
  padding: 8px 12px;
}

@media (max-width: 600px) {
  footer {
    margin-bottom: 34px;
  }

  .easter-egg {
    bottom: 12px;
    right: 14px;
    padding: 7px 10px;
  }
}
.weather-condition {
  border-left: 6px solid #f72b32;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.weather-icon img {
  width: 70px;
  height: 70px;
}

.weather-text {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 1px;
}

