:root,
:root[data-theme="default"] {
  --primary-color: #1a2533;
  --secondary-color: #263545;
  --accent-color: #3498db;
  --text-color: #ecf0f1;
  --border-color: rgba(236, 240, 241, 0.1);
  --background-color: rgb(20, 30, 48);

  --card-bg: rgba(26, 37, 51, 0.7);
  --card-glass: rgba(26, 37, 51, 0.65);
  --success-color: #2ecc71;
  --warning-color: #f39c12;
  --danger-color: #e74c3c;
  --glow-color: rgba(52, 152, 219, 0.5);
  --border-glow: rgba(52, 152, 219, 0.7);

  --gradient-color-1: #3498db;
  --gradient-color-2: #2ecc71;
  --gradient-color-3: #f39c12;
  --gradient-color-4: #e74c3c;
  --border-animated: linear-gradient(90deg, var(--gradient-color-1), var(--gradient-color-2), var(--gradient-color-3), var(--gradient-color-4));
}

:root[data-theme="catppuccin"] {
  --primary-color: #181825;
  --secondary-color: #313244;
  --accent-color: #89b4fa;
  --text-color: #cdd6f4;
  --border-color: rgba(205, 214, 244, 0.1);
  --background-color: rgb(30, 30, 46);

  --card-bg: rgba(49, 50, 68, 0.7);
  --card-glass: rgba(49, 50, 68, 0.65);
  --success-color: #a6e3a1;
  --warning-color: #fab387;
  --danger-color: #f38ba8;
  --glow-color: rgba(137, 180, 250, 0.5);
  --border-glow: rgba(137, 180, 250, 0.7);

  --gradient-color-1: #89b4fa;
  --gradient-color-2: #a6e3a1;
  --gradient-color-3: #fab387;
  --gradient-color-4: #f38ba8;
}

:root[data-theme="gruvbox"] {
  --primary-color: #3c3836;
  --secondary-color: #504945;
  --accent-color: #83a598;
  --text-color: #ebdbb2;
  --border-color: rgba(235, 219, 178, 0.15);
  --background-color: #282828;

  --card-bg: rgba(60, 56, 54, 0.7);
  --card-glass: rgba(60, 56, 54, 0.65);
  --success-color: #b8bb26;
  --warning-color: #fabd2f;
  --danger-color: #fb4934;
  --glow-color: rgba(131, 165, 152, 0.5);
  --border-glow: rgba(131, 165, 152, 0.7);

  --gradient-color-1: #83a598;
  --gradient-color-2: #b8bb26;
  --gradient-color-3: #fabd2f;
  --gradient-color-4: #fb4934;
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--primary-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  height: 100vh;
  width: 100vw;
}

#background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--background-color);
  z-index: 1;
  backdrop-filter: blur(2px);
}

#container {
  width: 100%;
  max-width: 2000px;
  margin: 0 auto;
  padding: 1.5rem;
  position: relative;
  z-index: 2;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.dashboard-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dashboard-title .logo-link {
  display: flex;
}

.dashboard-title img {
  height: 40px;
  width: auto;
}

.dashboard-title p {
  font-size: 0.875rem;
  opacity: 0.8;
}

.dashboard-controls {
  display: flex;
  gap: 1rem;
  background: rgba(26, 37, 51, 0.5);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#refresh-timer {
  font-size: 0.875rem;
  font-weight: 500;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem;
}

/* Glassmorphism Card Styles */
.card {
  background: var(--card-glass);
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.animated-border {
  position: relative;
}

.animated-border::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 1rem;
  padding: 2px;
  background: var(--border-animated);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.7;
  z-index: -1;
  animation: border-animation 8s linear infinite;
}

@keyframes border-animation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card-content {
  display: flex;
  flex-direction: column;
  height: 12.5rem;
}

.main-temp {
  font-size: 3rem;
  font-weight: 300;
  margin-bottom: 0.25rem;
  background: linear-gradient(90deg, #e0e0e0, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}

.weather-icon {
  margin-right: 1.5rem;
  display: flex;
  align-items: center;
}

.weather-svg {
  width: 170px;
  height: 170px;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
}

.temp-details {
  display: flex;
  align-items: center;
}

.location {
  font-size: 1.00rem;
  opacity: 0.7;
  margin-top: 0.5rem;
}

.weather-main {
  grid-column: span 4;
  grid-row: 1;
}

.weather-stats {
  grid-column: span 4;
  grid-row: 1;
}

.right-panel {
  grid-column: span 4;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.current-quote {
  height: 55%;
  font-size: 1.25rem;
  background: var(--card-glass);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.current-image img {
  width: 100%;
  height: 75%;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.current-image h2 {
  padding: 0.5rem;
  font-size: 5.25rem;
  font-weight: 500;
}

.forecast {
  grid-column: span 12;
  grid-row: 2;
  margin-top: 0.5rem;
}

.forecast-items {
  display: flex;
  justify-content: space-between;
  gap: 0.25rem;
  overflow-x: auto;
  padding: 0.25rem 0;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-color) transparent;
}

.forecast-items::-webkit-scrollbar {
  height: 4px;
}

.forecast-items::-webkit-scrollbar-track {
  background: transparent;
}

.forecast-items::-webkit-scrollbar-thumb {
  background-color: var(--accent-color);
  border-radius: 4px;
}

.forecast-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem;
  min-width: 120px;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.75rem;
  transition: transform 0.3s ease;
}

.forecast-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.1);
}

.forecast-icon {
  display: flex;
  justify-content: center;
  margin: 0.5rem 0;
}

.forecast-svg {
  width: 70px;
  height: 70px;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
}

.forecast-temp {
  font-size: 1.50rem;
  font-weight: 500;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.75rem;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 500;
}

.stat-label {
  font-size: 0.75rem;
  opacity: 0.7;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.temp-indicator {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  margin-top: 1rem;
  margin-bottom: 1rem;
  background: linear-gradient(to right, var(--gradient-color-1), var(--gradient-color-2), var(--gradient-color-3), var(--gradient-color-4));
  /* background: linear-gradient(to right, grey, darkgrey, lightgrey, white); MONOCHROME */
  position: relative;
  overflow: hidden;
}

.temp-indicator::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    rgba(255,255,255,0.1) 0%,
    rgba(255,255,255,0.2) 20%,
    rgba(255,255,255,0.1) 40%
  );
  animation: shine 3s infinite linear;
}

.temp-indicator::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background-color: white;
  border-radius: 50%;
  top: -3px;
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

@keyframes shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.temp-cold .temp-indicator::after {
  left: 15%;
}

.temp-cool .temp-indicator::after {
  left: 30%;
}

.temp-mild .temp-indicator::after {
  left: 50%;
}

.temp-warm .temp-indicator::after {
  left: 70%;
}

.temp-hot .temp-indicator::after {
  left: 85%;
}

.time-now {
  text-align: center;
  height: 100%;
}

.police{
  height: 30%;
  background: var(--card-glass);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.current-time {
  background: linear-gradient(90deg, #e0e0e0, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}

#current-time, #current-date, #current-week {
    display: block;
    height: min-content;
    line-height: 1.2;
    width: 100%;
}

#current-date, #current-week {
    font-size: 3.25rem;
    font-weight: 100;
    opacity: 1;
}

#current-date {
    margin-top: 1rem;
}

#current-time {
   font-size: 6.75rem;
   font-weight: 300;
}

/* Rain effect styles */
.raining {
  position: relative;
}

.raining::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(105, 155, 200, 0) 0%, rgba(105, 155, 200, 0.2) 100%);
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 992px) {
  .dashboard-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .weather-main, .weather-stats {
    grid-column: span 3;
    grid-row: 1;
  }

  .right-panel {
    grid-column: span 6;
    grid-row: 2;
    margin-top: 1rem;
    grid-template-rows: 50% 50%;
    height: 100%;
  }

  .forecast {
    grid-column: span 6;
    grid-row: 3;
  }

  .weather-svg {
    width: 60px;
    height: 60px;
  }

  .main-temp {
    font-size: 2.25rem;
  }
}

@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }

  .weather-main, .weather-stats, .right-panel, .forecast {
    grid-column: span 4;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .dashboard-controls {
    align-self: flex-end;
  }
}

.buss {
    list-style-type: none;
}

.buss li {
    font-size: 1.25rem;
}

#theme-toggle {
    background-color: var(--card-glass);
    color: var(--text-color);
    border: none;
    font-size: 0.875rem;
    opacity: 0.8;
}
