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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  position: relative;
  overflow: hidden;
  background: #000;
}

/* Hidden Class */
.hidden {
  display: none !important;
}

/* Background Image */
.bgImage {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  animation: fadeIn 1s ease-in;
}

/* Overlay for better text readability */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
  pointer-events: none;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.fade-in {
  animation: scaleIn 0.8s ease-out;
}

.fade-in-delay-1 {
  animation: slideUp 0.8s ease-out 0.2s backwards;
}

.fade-in-delay-2 {
  animation: slideUp 0.8s ease-out 0.4s backwards;
}

.fade-in-delay-3 {
  animation: fadeIn 0.8s ease-out 0.6s backwards;
}

/* Input Field Styles */
.input-field {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 16px 24px;
  font-size: 1.25rem;
  color: white;
  text-align: center;
  outline: none;
  transition: all 0.3s ease;
  min-width: 320px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.input-field::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.input-field:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

/* Greeting Styles */
#greeting {
  animation: slideUp 0.6s ease-out;
  text-align: center;
}

/* Todo List Styles */
.todo-list {
  list-style: none;
  max-width: 500px;
  margin: 0 auto;
  max-height: 300px;
  overflow-y: auto;
  padding: 0 10px;
}

/* Custom Scrollbar */
.todo-list::-webkit-scrollbar {
  width: 8px;
}

.todo-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.todo-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
}

.todo-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.todo-list li {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  animation: slideUp 0.4s ease-out;
}

.todo-list li:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(5px);
}

.todo-list li span {
  color: white;
  font-size: 1rem;
  flex: 1;
  text-align: left;
}

.todo-list li button {
  background: rgba(255, 59, 48, 0.8);
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  margin-left: 12px;
}

.todo-list li button:hover {
  background: rgba(255, 59, 48, 1);
  transform: scale(1.1);
}

/* Weather Styles */
.weather {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 12px 20px;
  color: white;
  font-size: 1rem;
  font-weight: 300;
  animation: slideUp 0.6s ease-out 0.3s backwards;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Quote Container */
.quote-container {
  max-width: 800px;
  padding: 0 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
  #clock {
    font-size: 4rem !important;
  }

  .input-field {
    min-width: 280px;
    font-size: 1rem;
    padding: 12px 20px;
  }

  .todo-list {
    max-width: 90vw;
    max-height: 200px;
  }

  .quote-container {
    bottom: 1rem !important;
    max-width: 90vw;
  }

  .weather {
    top: 1rem !important;
    right: 1rem !important;
    font-size: 0.875rem;
    padding: 10px 16px;
  }
}

/* Clock hover effect */
#clock {
  cursor: default;
  transition: all 0.3s ease;
}

#clock:hover {
  transform: scale(1.02);
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

/* Input submit button (hidden but functional) */
input[type="submit"] {
  display: none;
}

/* Smooth transitions for all interactive elements */
button, input, li {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
