:root {
  --primary-color: #667eea;
  --secondary-color: #764ba2;
  --text-color: #333333;
  --text-light: #6b7280;
  --bg-color: #f3f4f6;
  --widget-bg: #ffffff;

  --shadow-small: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-large: 0 10px 15px rgba(0, 0, 0, 0.1);

  --spacing-small: 8px;
  --spacing-medium: 16px;
  --spacing-large: 24px;

  --radius-small: 8px;
  --radius-medium: 12px;
  --radius-large: 16px;
}
body {
  background-color: var(--bg-color);
  color: var(--text-color);
  min-height: 100vh;
  padding: var (--spacing-medium);
}
.dashboard {
  max-width: 1200px;
  margin: 0 auto;
}
.title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: var(--spacing-large);
  color: var(--secondary-color);
}
/* #region HEADER */
header {
  display: flex;
  flex-direction: row;
  gap: 120px;
  align-items: baseline;
  justify-content: center;
  background-color: var(--bg-color);
  padding: var(--spacing-medium);
  border-radius: var(--spacing-medium);
  box-shadow: var(--shadow-medium);
  text-align: center;
  margin-bottom: var(--spacing-large);
}

.greeting {
  font-size: 1.8 rem;
  color: var(--text-color);
  margin-bottom: var(var(--spacing-medium));
}
.change-name-btn {
  margin-top: var(--spacing-small);
  padding: var(--spacing-small) var(--spacing-medium);
  background-color: var(--primary-color);
  color: white;
  border-radius: var(--radius-small);
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}
.change-name-btn:hover {
  background-color: var(--secondary-color);
}
.clock {
  color: var(--text-light);
}

.current-time {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: var(--spacing-small);
}

.current-date {
  font-size: 1rem;
}
/* #endregion */

/* #region  WIDGET*/
.widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-large);
}
.widget {
  background-color: var(--widget-bg);
  padding: var(--spacing-large);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-medium);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.widget:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-large);
}

.widget-title {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-medium);
  color: var(--primary-color);
}
/* #endregion */
/* #region WEATHER */
.weather-widget {
  background: #2980b9;
  background: -webkit-linear-gradient(to right, #ffffff, #6dd5fa, #2980b9);
  background: linear-gradient(to right, #ffffff, #6dd5fa, #2980b9);
  color: #ffffff;
}

.weather-info {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-small);
}
.weather-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.temperature {
  font-size: 3.5rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  margin-bottom: var(--spacing-medium);
}

.weather-description {
  font-size: 1.2rem;
  color: var(--text-light);
  text-transform: capitalize;
}
.weather-location {
  color: var(--text-light);
  text-transform: capitalize;
}

/* #endregion */
/* #region TODO  */
.todo-form {
  display: flex;
  gap: var(--spacing-small);
  margin-bottom: var(--spacing-medium);
}

.todo-input {
  flex: 1;
  padding: var(--spacing-small) var(--spacing-medium);
  border: 2px solid #e5e7eb;
  border-radius: var(--radius-small);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.todo-input:focus {
  border-color: var(--primary-color);
  outline: none;
}

.todo-btn {
  padding: var(--spacing-small) var(--spacing-large);
  background: var(--secondary-color);
  color: white;
  border-radius: var(--radius-small);
  font-weight: 600;
  transition: transform 0.2s ease;
}

.todo-btn:hover {
  transform: scale(1.05);
}

.todo-btn:active {
  transform: scale(0.95);
}

.todo-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-medium);
  padding: var(--spacing-medium);
  background-color: var(--bg-color);
  border-radius: var(--radius-small);
  margin-bottom: var(--spacing-small);
  transition: all 0.3s ease;
}

.todo-item:hover {
  background-color: #e5e7eb;
}
.todo-btn:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}
.todo-item.completed {
  opacity: 0.6;
  text-decoration: line-through;
}

.todo-list {
  margin-top: var(--spacing-medium);
}

.message {
  text-align: center;
  color: var(--text-light);
  padding: var(--spacing-large);
  font-style: italic;
}
.message:hover {
  background-color: transparent;
  transform: none;
}
.todo-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-medium);
  padding: var(--spacing-medium);
  background-color: var(--bg-color);
  border-radius: var(--radius-small);
  margin-bottom: var(--spacing-small);
  transition: all 0.3s ease;
}

.todo-item:hover {
  background-color: #e5e7eb;
  transform: translateX(5px);
}

.todo-checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.todo-text {
  flex: 1;
  font-size: 1rem;
  color: var(--text-color);
}

.todo-delete {
  padding: var(--spacing-small);
  background-color: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.todo-delete:hover {
  transform: scale(1.2);
}

.todo-item.completed .todo-text {
  text-decoration: line-through;
  opacity: 0.6;
  color: var(--text-light);
}

.todo-filters {
  display: flex;
  gap: var(--spacing-small);
  margin: var(--spacing-medium) 0;
  border-bottom: 2px solid var(--bg-color);
  padding-bottom: var(--spacing-small);
}

.filter-btn {
  flex: 1;
  padding: var(--spacing-small) var(--spacing-medium);
  background-color: transparent;
  color: var(--text-light);
  border: none;
  border-radius: var(--radius-small);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.filter-btn:hover {
  background-color: var(--bg-color);
  color: var(--text-color);
}

.filter-btn.active {
  background-color: var(--primary-color);
  color: white;
}

.filter-btn.active::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--primary-color);
}

/* #endregion */
/* #region RESPONSIVE */
@media (max-width: 768px) {
  body {
    padding: var(--spacing-small);
  }
  header {
    flex-direction: column;
    gap: var(--spacing-medium);
  }
  .title {
    font-size: 2rem;
  }

  .widgets {
    grid-template-columns: 1fr;
  }

  .widget {
    padding: var(--spacing-medium);
  }

  .current-time {
    font-size: 1.5rem;
  }

  .temperature {
    font-size: 2.5rem;
  }
  .quote-widget {
    padding: var(--spacing-large) var(--spacing-medium);
    min-height: 150px;
  }

  .quote-widget::before {
    font-size: 8rem;
    left: 10px;
  }
}

@media (max-width: 480px) {
  .title {
    font-size: 1.5rem;
  }

  .todo-form {
    flex-direction: column;
  }

  .todo-btn {
    width: 100%;
  }
}
/* #endregion */
/* #region QUOTE WIDGET */
.quote-widget {
  margin-top: var(--spacing-large);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  position: relative;
  overflow: hidden;
  padding: var(--spacing-large) var(--spacing-large);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quote-widget::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 15rem;
  font-weight: bold;
  opacity: 0.1;
  font-family: Georgia, serif;
  line-height: 1;
}

.quote-container {
  max-width: 900px;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 1;
}
.quote-text {
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: var(--spacing-medium);
  font-weight: 300;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.quote-author {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--spacing-small);
  opacity: 0.95;
}
.quote-refresh {
  position: absolute;
  top: var(--spacing-medium);
  right: var(--spacing-medium);
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quote-refresh:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.quote-refresh:active {
  transform: scale(0.95);
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
/* #endregion */
