  @import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,100..900&display=swap');

  html, body {
    margin: 0; padding: 0;
    height: 100%;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: #e0e0e0;
    background: #121212;
    background: linear-gradient(135deg, #0e0e0e, #1a1a1a);
    overflow: hidden;
  }

  body::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--bg-img, none);
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    transition: background-image 5s;
  }

  p {
    margin: 0;
  }

  /* Fade‑in keyframes ---------------------------------------------- */
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .fade-in {
    animation: fadeIn 1s forwards;
  }

  /* Glass panel ----------------------------------------------- */
  .glass {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  }

  /* ---------- Header ---------- */
  .top-bar {
    position: absolute;
    top: 0; left: 0; right: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.65rem 2rem;
    z-index: 10;
  }

  .clock-section {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
  }

  .clock { font-size: clamp(2rem, 8vw, 5rem); font-weight: 300; color: #42b0ff; }
  .date  { font-size: 1rem; opacity: 0.7; }

  .weather-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
  }

  .weather { display: flex; flex-direction: column; text-align: right; }
  .weather-icon { width: 64px; height: 64px; z-index:0; margin:0 12px -1.5rem -12px; padding: 0 12px; opacity: 0; transition: opacity 2s; }
  .weather-icon.loaded { opacity: 0.7; }
  .weather .city   { font-weight: 600; font-size: 1.2rem; }
  .weather .temp   { font-size: 2rem; color: #ff9c1c; }
  .weather .high-low  { font-size: 0.9rem; opacity: 0.8; }
  .weather .condition { font-size: 0.9rem; opacity: 0.8; }

  .location-input {
    display: flex; gap: 0.3rem;
  }
  .location-input input {
    padding: 0.3rem 0.5rem;
    border: 1px solid #444;
    border-radius: 6px;
    background: #1e1e1e;
    color: #ccc;
  }
  .location-input button {
    padding: 0.3rem 0.7rem;
    border: none;
    border-radius: 6px;
    background: #42b0ff;
    color: #fff;
    cursor: pointer;
  }
  .location-input button:hover { background: #6ec8ff; }

  /* ---------- Footer ---------- */
  .bottom-bar {
    position: absolute;
    bottom: 0; right: 0;
    padding: 1.65rem 2rem;
    z-index: 10;
  }
  .server-status {
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.4rem;
  }
  .server-status::before {
    content: "+";
    font-size: 1.25rem;
    color: #ff9c1c;
  }
  .server-status[data-open="false"]::before { content: "+"; }
  .server-status[data-open="true"]::before { content: "−"; }
  .server-status .title  { font-weight: 600; }
  .server-status .details {
    position: absolute;
    right: 0; bottom: 100%;
    margin-bottom: 0.5rem;
    width: 280px;
    display: none;
    flex-direction: column;
    gap: 0.4rem;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 2s, transform 0.5s;
    background: rgba(0,0,0,0.35);
    border-radius: 12px;
    padding: 0.5rem;
    backdrop-filter: blur(10px);
  }
  .server-status:hover .details,
  .server-status.open .details {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }

  .server-card {
    background: rgba(255,255,255,0.085);
    border-radius: 6px;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    backdrop-filter: blur(10px);
  }
  .status-indicator {
    width: 10px; height: 10px; border-radius: 50%;
  }
  .server-card.online .status-indicator { background: #96C545; }
  .server-card.offline .status-indicator { background: #E56D5D; }