/* Reset & Base */
* {
  box-sizing: border-box;
}
body, html {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: Arial, sans-serif;
  transition: background-image 0.8s ease-in-out;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow-x: hidden;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.7);
}

/* Weather App Container */
#weatherContainer {
  width: 100%;
  max-width: 500px;
  margin: 50px auto;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
  transition: all 0.3s ease-in-out;
}

/* Inner Container */
.container {
  padding: 20px;
}

h1 {
  font-size: 28px;
  margin-bottom: 20px;
}

/* Input & Button */
input[type="text"] {
  padding: 10px;
  width: 70%;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-bottom: 10px;
}

button {
  padding: 10px 20px;
  border: none;
  background-color: #2563eb;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

button:hover {
  background-color: #1e40af;
}

/* Weather Result Box */
#weatherResult {
  margin-top: 25px;
  padding: 20px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(6px);
  text-align: center;
}

#weatherResult h2 {
  font-size: 1.5rem;
  color: #1e3a8a;
  margin-bottom: 15px;
}

#weatherResult p {
  font-size: 1rem;
  margin: 8px 0;
}

/* Floating Widget Mode */
.floating {
  position: fixed !important;
  bottom: 20px;
  right: 20px;
  width: 90vw !important;
  max-width: 300px;
  z-index: 9999;
  margin: 0 !important;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: grab;
}

/* Toggle Button */
#toggleModeBtn {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #2563eb;
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  z-index: 10;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
  #weatherContainer {
    width: 95%;
    margin: 30px auto;
    padding: 15px;
  }

  .container {
    padding: 10px;
  }

  input[type="text"] {
    width: 100%;
    font-size: 16px;
  }

  button {
    width: 100%;
    margin-top: 10px;
    font-size: 16px;
  }

  h1 {
    font-size: 24px;
  }

  #weatherResult {
    padding: 15px;
    font-size: 14px;
  }
}
