@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
  font-family: 'Poppins', sans-serif;
  background: transparent;
  color: white;
  overflow-x: hidden;
}

#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -10;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 60px;
  z-index: 2;
  position: relative;
}

.dashboard-header h1 {
  font-size: 28px;
  color: white;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  position: relative;
}

.user-profile img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.dropdown-menu {
  position: absolute;
  top: 50px;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  color: black;
  padding: 20px;
  border-radius: 8px;
  z-index: 100;
}

.dashboard {
  display: flex;
  justify-content: center;
  padding: 40px;
}

.grid-container {
  display: grid;
  grid-template-areas:
    "spotlight device todo"
    "weather   ad     todo"
    "weather   ad     todo";
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 20px;
  width: 100%;
  max-width: 1400px;
}

.spotlight-area { grid-area: spotlight; }
.weather-area   { grid-area: weather; }
.device-area    { grid-area: device; }
.ad-area        {
  grid-area: ad;
  background: none;
  padding: 0;
  margin: 10px;
  text-align: center;
}
.todo-area      { grid-area: todo; }

widget-block {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

widget-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 900px) {
  .grid-container {
    grid-template-areas:
      "spotlight"
      "weather"
      "device"
      "ad"
      "todo";
    grid-template-columns: 1fr;
  }

  .dashboard {
    padding: 20px;
  }

  .dashboard-header {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}
