/* style.css */
:root {
  --primary: #4361ee;
  --primary-dark: #3a56d4;
  --secondary: #f72585;
  --accent: #4cc9f0;
  --dark: #121212;
  --darker: #0a0a0a;
  --dark-card: #1e1e1e;
  --dark-border: #333333;
  --light: #f8f9fa;
  --gray: #8d8d8d;
  --light-gray: #e9ecef;
  --success: #4ade80;
  --danger: #ef4444;
  --warning: #f59e0b;
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --gradient: linear-gradient(135deg, var(--primary), #5e60ce);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--darker);
  color: var(--light);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(67, 97, 238, 0.1), transparent 70%),
              radial-gradient(circle at bottom left, rgba(247, 37, 133, 0.1), transparent 70%);
  z-index: -1;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header Styles */
header {
  background: rgba(18, 18, 18, 0.9);
  backdrop-filter: blur(10px);
  color: white;
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--dark-border);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  border-radius: 10px;
  padding: 6px;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  text-decoration: none;
  gap: 8px;
}

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(67, 97, 238, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(67, 97, 238, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: rgba(67, 97, 238, 0.1);
  transform: translateY(-3px);
}

.btn-danger {
  background-color: var(--danger);
  color: white;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background-color: #dc2626;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.btn-google {
  background: var(--dark-card);
  color: var(--light);
  border: 1px solid var(--dark-border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-google:hover {
  background: #2a2a2a;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.9rem;
}

/* Card Styles */
.card {
  background: var(--dark-card);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  padding: 32px;
  margin: 40px auto;
  max-width: 800px;
  border: 1px solid var(--dark-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.card-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--dark-border);
}

.card-title {
  font-size: 2.2rem;
  background: linear-gradient(to right, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
  font-weight: 800;
}

.card-subtitle {
  color: var(--gray);
  font-size: 1.1rem;
  font-weight: 400;
}

/* Form Styles */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
  color: var(--light);
  font-size: 1rem;
}

.form-control {
  width: 100%;
  padding: 16px 20px;
  background: rgba(40, 40, 40, 0.5);
  border: 1px solid var(--dark-border);
  border-radius: 10px;
  font-size: 1rem;
  transition: var(--transition);
  color: var(--light);
}

.form-control:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.3);
}

/* Todo App Styles */
.todo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.todo-input-group {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.todo-input {
  flex: 1;
  padding: 16px 20px;
  background: rgba(40, 40, 40, 0.5);
  border: 1px solid var(--dark-border);
  border-radius: 10px;
  font-size: 1.1rem;
  color: var(--light);
  transition: var(--transition);
}

.todo-input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.3);
}

/* Todo List Styles */
.todo-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: rgba(40, 40, 40, 0.3);
  border-radius: 12px;
  margin-bottom: 15px;
  border: 1px solid var(--dark-border);
  animation: fadeIn 0.4s ease-out;
  transition: var(--transition);
}

.todo-list li:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border-color: rgba(67, 97, 238, 0.3);
}

.todo-text {
  flex: 1;
  font-size: 1.1rem;
  padding-right: 15px;
  position: relative;
  padding-left: 30px;
  color: var(--light);
}

.todo-text::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
}

.todo-actions {
  display: flex;
  gap: 10px;
}

.todo-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: rgba(40, 40, 40, 0.3);
  border-radius: 12px;
  margin-bottom: 15px;
  border: 1px solid var(--dark-border);
  animation: fadeIn 0.4s ease-out;
  transition: var(--transition);
}

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

.todo-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border-color: rgba(67, 97, 238, 0.3);
}


/* Task text */
.todo-text {
  flex: 1;
  font-size: 1.1rem;
  padding-right: 15px;
  position: relative;
  padding-left: 30px;
  color: var(--light);
}

.todo-text::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
}

/* Button container */
.todo-actions {
  display: flex;
  gap: 10px;
}

/* Button size/style */
.btn-sm {
  padding: 8px 16px;
  font-size: 0.9rem;
  border-radius: 8px;
}

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

/* Auth Pages */
.auth-container {
  max-width: 500px;
  margin: 0 auto;
  padding: 40px 0;
}

.auth-header {
  text-align: center;
  margin-bottom: 40px;
}

.auth-footer {
  text-align: center;
  margin-top: 25px;
  color: var(--gray);
  font-size: 1rem;
}

.auth-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.auth-footer a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 30px 0;
  color: var(--gray);
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--dark-border);
}

.divider::before {
  margin-right: 15px;
}

.divider::after {
  margin-left: 15px;
}

/* Footer */
footer {
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  color: var(--gray);
  padding: 30px 0;
  margin-top: auto;
  border-top: 1px solid var(--dark-border);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.copyright {
  font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 20px;
  }
  
  .todo-input-group {
    flex-direction: column;
  }
  
  .todo-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .todo-text {
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 15px;
  }
  
  .todo-text::before {
    display: none;
  }
  
  .todo-actions {
    width: 100%;
    justify-content: flex-end;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .card {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .card {
    padding: 20px;
    margin: 20px auto;
  }
  
  .card-title {
    font-size: 1.8rem;
  }
  
  .btn {
    width: 100%;
    padding: 14px;
  }
}

/* Utility Classes */
.w-100 {
  width: 100%;
}

.mb-20 {
  margin-bottom: 20px;
}

.mt-20 {
  margin-top: 20px;
}

.text-center {
  text-align: center;
}

/* Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.floating {
  animation: float 6s ease-in-out infinite;
}