:root {
  --bg: #f5f7fa;
  --card-bg: rgba(255,255,255,0.7);
  --text: #222;
  --accent: #4a90e2;
  --glass: rgba(255,255,255,0.3);
  --shadow: rgba(0,0,0,0.1);
  --highlight: #ff5722; /* Highlight color for cards and buttons */
}

body.dark {
  --bg: #3b4450;
  --card-bg: rgba(80, 80, 90, 0.5);
  --text: #e1e1e1;
  --glass: rgba(120, 120, 130, 0.4);
  --shadow: rgba(0, 0, 0, 0.2);
  --highlight: #ff5722;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  margin: 0;
  display: flex;
  min-height: 100vh;
  flex-direction: row;
}

.sidebar {
  width: 220px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  height: 100vh;
  padding: 2rem;
  box-shadow: 4px 0 20px var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.side-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-item {
  padding: 0.9rem 1.2rem;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  transition: 0.3s;
}

.nav-item:hover {
  background: var(--highlight);
  color: white;
  transform: translateX(4px);
}

.container {
  flex: 1;
  padding: 2rem 2.5rem;
  background: var(--bg);
  overflow-y: auto;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
  margin-bottom: 1.8rem;
  border-bottom: 2px solid rgba(0,0,0,0.1);
}

#time {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
}

#calendar, #weather {
  color: var(--text);
  font-size: 1.2rem;
}

.switch {
  position: absolute;
  top: 15px;
  right: 20px;
  width: 50px;
  height: 26px;
  background: var(--glass);
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 4px;
  box-shadow: inset 0 0 6px var(--shadow);
}

.switch .circle {
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 50%;
  transition: 0.3s;
}

body.dark .switch .circle {
  transform: translateX(24px);
}

button {
  padding: 0.7rem 1.5rem;
  font-size: 1.1rem;
  border: none;
  border-radius: 22px;
  background: var(--highlight);
  color: white;
  cursor: pointer;
  margin-bottom: 2rem;
  box-shadow: 0 3px 12px var(--shadow);
  transition: 0.3s;
}

button:hover {
  transform: scale(1.05);
}

.card {
  background: var(--card-bg);
  backdrop-filter: blur(14px);
  border-radius: 18px;
  padding: 1.4rem 1.6rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px var(--shadow);
  animation: fadeIn 0.4s ease;
}

.card h2 {
  margin-top: 0;
  color: var(--accent);
  font-weight: 600;
  font-size: 1.6rem;
}

.card h2 ~ div {
  color: #f97316;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

select {
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  background: var(--glass);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.4);
  margin-top: 1rem;
}

.status {
  color: var(--text);
  text-align: right;
  font-size: 1rem;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .sidebar {
    width: 200px;
    padding: 1rem;
  }

  .container {
    padding: 1.2rem;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  button {
    width: 100%;
    margin-bottom: 1.2rem;
  }

  .card {
    padding: 1.2rem;
    margin-bottom: 1.2rem;
  }

  .nav-item {
    font-size: 0.95rem;
    padding: 0.8rem;
  }
}
