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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  min-height: 100vh;
  color: white;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Video Background */
#video-background {
  position: fixed;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translateX(-50%) translateY(-50%);
  z-index: -2;
  object-fit: cover;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.6) 100%
  );
  z-index: -1;
}

.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem;
  position: relative;
  animation: fadeIn 1s ease-out;
}

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

/* Header Section */
.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
}

/* Google Apps Button */
.google-apps-btn {
  position: fixed;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 100;
}

.google-apps-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.1);
}

.google-apps-btn svg {
  width: 20px;
  height: 20px;
  fill: white;
  opacity: 0.9;
}

/* Apps Menu Overlay */
.apps-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1999;
}

.apps-menu-overlay.active {
  display: block;
}

/* Apps Menu */
.apps-menu {
  display: none;
  position: fixed;
  top: 80px;
  right: 20px;
  background: rgba(15, 15, 15, 0.98);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  z-index: 2000;
  animation: slideDown 0.3s ease;
}

.apps-menu.active {
  display: block;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 320px;
}

.app-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: 12px;
  text-decoration: none;
  color: white;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.05);
}

.app-item:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.05);
}

.app-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.app-item span {
  font-size: 0.85rem;
  text-align: center;
  opacity: 0.9;
}

.weather-widget {
  padding: 1.5rem 2rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.weather-widget:hover {
  transform: translateY(-5px);
}

.weather-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.weather-temp {
  font-size: 3rem;
  font-weight: 200;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.weather-condition {
  font-size: 1.1rem;
  opacity: 0.9;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.weather-location {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Center Section */
.center {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.time-display {
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 100;
  letter-spacing: -0.05em;
  margin-bottom: 1rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  font-variant-numeric: tabular-nums;
}

.date-display {
  font-size: 1.5rem;
  opacity: 0.9;
  margin-bottom: 1rem;
  font-weight: 300;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.greeting {
  font-size: 2.5rem;
  font-weight: 200;
  margin-bottom: 3rem;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
  animation: slideIn 1s ease-out 0.3s both;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Search Bar */
.search-container {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  z-index: 10;
}

.search-bar {
  width: 100%;
  padding: 1.25rem 3rem 1.25rem 4rem;
  border: none;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  font-size: 1.1rem;
  color: #333;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-bar:focus {
  outline: none;
  transform: scale(1.02);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
  background: rgba(255, 255, 255, 0.98);
}

.search-bar::placeholder {
  color: #888;
}

.search-icon {
  position: absolute;
  left: 1.5rem;
  top: 1.25rem;
  color: #666;
  font-size: 1.2rem;
  z-index: 1;
}

/* Search Suggestions */
.search-suggestions {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 0.5rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  max-height: 400px;
  overflow-y: auto;
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.selected {
  background: rgba(0, 0, 0, 0.05);
}

.suggestion-icon {
  color: #666;
  font-size: 0.9rem;
  opacity: 0.6;
}

.suggestion-item span {
  font-size: 1rem;
}

/* Quick Links */
.quick-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.quick-link {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  color: white;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quick-link i {
  font-size: 1.1rem;
  opacity: 0.9;
}

.quick-link:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Bottom Section */
.bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.quote {
  max-width: 500px;
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.85;
  font-style: italic;
  font-weight: 300;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

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

.control-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.25);
}

.settings-btn:hover {
  transform: rotate(90deg) scale(1.1);
}

/* Todo List Widget */
.todo-widget {
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  max-width: 350px;
  transition: all 0.3s ease;
}

.todo-widget:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.todo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.todo-title {
  font-size: 0.95rem;
  font-weight: 300;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.todo-count {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-left: 0.25rem;
}

.add-todo-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.add-todo-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

.todo-input-container {
  display: none;
  margin-bottom: 1rem;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.todo-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.todo-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.15);
}

.todo-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.todo-list {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.todo-list::-webkit-scrollbar {
  width: 4px;
}

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

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

.todo-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.todo-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(5px);
}

.todo-item.completed {
  opacity: 0.5;
}

.todo-item.completed .todo-text {
  text-decoration: line-through;
}

.todo-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.todo-item.completed .todo-checkbox {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.todo-checkbox i {
  font-size: 0.7rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.todo-item.completed .todo-checkbox i {
  opacity: 1;
}

.todo-text {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.4;
}

.todo-delete {
  opacity: 0;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.todo-item:hover .todo-delete {
  opacity: 1;
}

.todo-delete:hover {
  color: rgba(255, 100, 100, 0.9);
  transform: scale(1.2);
}

.empty-todos {
  text-align: center;
  padding: 2rem;
  opacity: 0.5;
  font-style: italic;
}

/* Auth Modal */
.auth-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  z-index: 2000;
  animation: fadeIn 0.3s ease;
  align-items: center;
  justify-content: center;
}

.auth-content {
  background: rgba(15, 15, 15, 0.98);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3rem;
  border-radius: 20px;
  width: 90%;
  max-width: 450px;
  color: white;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.auth-header {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  font-weight: 200;
  text-align: center;
}

.auth-subtext {
  text-align: center;
  opacity: 0.7;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.auth-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 0.25rem;
}

.auth-tab {
  flex: 1;
  padding: 0.75rem;
  border: none;
  background: transparent;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.auth-tab.active {
  background: rgba(255, 255, 255, 0.1);
}

.auth-tab:hover {
  background: rgba(255, 255, 255, 0.08);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-form.hidden {
  display: none;
}

.google-btn {
  width: 100%;
  padding: 1rem;
  background: white;
  border: none;
  border-radius: 10px;
  color: #333;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-weight: 500;
}

.google-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

.google-btn i {
  font-size: 1.2rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 0.5rem 0;
  opacity: 0.5;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-divider span {
  padding: 0 1rem;
  font-size: 0.9rem;
}

.auth-input {
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.auth-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.auth-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.auth-btn {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(79, 70, 229, 0.4);
}

.auth-error {
  color: #ff6b6b;
  font-size: 0.9rem;
  text-align: center;
  min-height: 1.5rem;
}

/* Settings Modal */
.settings-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

.settings-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3rem;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  color: white;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.settings-header {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 200;
  letter-spacing: 0.02em;
}

.user-email-display {
  text-align: center;
  font-size: 0.95rem;
  opacity: 0.7;
  margin-bottom: 2rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.setting-group {
  margin-bottom: 1.5rem;
}

.setting-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
}

.setting-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.setting-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.save-btn {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 1rem;
  font-weight: 500;
}

.save-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(79, 70, 229, 0.4);
}

.signout-btn {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}

.signout-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 100, 100, 0.15);
  border-color: rgba(255, 100, 100, 0.3);
}

.close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.3s ease;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  opacity: 1;
  transform: rotate(90deg);
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 1.5rem;
  }

  .time-display {
    font-size: 3.5rem;
  }

  .greeting {
    font-size: 1.8rem;
  }

  .quote {
    display: none;
  }

  .weather-widget {
    padding: 1rem 1.5rem;
  }

  .weather-temp {
    font-size: 2rem;
  }

  .search-bar {
    padding: 0.9rem 2rem 0.9rem 3rem;
    font-size: 0.95rem;
  }

  .search-icon {
    left: 1rem;
    font-size: 1rem;
  }

  .quick-links {
    gap: 0.6rem;
    margin-top: 1.5rem;
  }

  .quick-link {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    border-radius: 20px;
  }

  .quick-link i {
    font-size: 0.95rem;
  }
}
