/* General Styles */
body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  margin: 0;
  padding: 0;
  color: #333;
}

header {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(6px);
}

h1, h2 {
  margin: 0.5rem 0;
}

/* Center login page */
.centered {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

/* Card Component */
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  padding: 1.5rem;
  margin: 1.5rem auto;
  max-width: 600px;
}

.login-card {
  width: 100%;
  max-width: 400px;
  text-align: center;
}

/* Inputs & Buttons */
input, textarea, button {
  width: 100%;
  margin: 0.5rem 0;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

button {
  background: #2575fc;
  color: #fff;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background: #6a11cb;
  transform: scale(1.05);
}

.logout-btn {
  background: #ff4757;
}

.logout-btn:hover {
  background: #e84118;
}

/* Task List */
ul {
  list-style: none;
  padding: 0;
}

li {
  background: #f9f9f9;
  margin: 0.5rem 0;
  padding: 0.75rem;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: fadeIn 0.3s ease-in-out;
}

li.completed {
  text-decoration: line-through;
  background: #dff9fb;
}

/* Animations */
@keyframes fadeIn {
  from {opacity: 0; transform: translateY(10px);}
  to {opacity: 1; transform: translateY(0);}
}

/* Task buttons */
.task-actions button {
  margin-left: 0.3rem;
  padding: 0.4rem 0.6rem;
  font-size: 0.9rem;
}
/* ... [Existing imports] ... */

/* General Styles */
body {
  font-family: 'Poppins', 'Segoe UI', Tahoma, sans-serif;
  background: linear-gradient(135deg, #001f3f, #0077b6); 
  margin: 0;
  padding: 0;
  color: #1a1a1a; 
  line-height: 1.6;
  /* Ensure body takes up full height for vertical centering on the dashboard */
  min-height: 100vh; 
  display: flex; /* Enable Flexbox for body */
  flex-direction: column; /* Stack header and main vertically */
}

header {
  /* ... [Existing header styles] ... */
}

/* Center login page (index.html) */
.centered {
  /* This ensures the login card is perfectly centered on index.html */
  display: flex;
  justify-content: center; /* Horizontal alignment */
  align-items: center; /* Vertical alignment */
  height: 100vh;
  width: 100vw;
}

/* Dashboard Page Centering */
main {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    /* Center the main content block horizontally (done by margin: 0 auto) */
    
    /* Content Alignment within main (task input/list) */
    display: flex;
    gap: 30px;
    
    /* To justify the main content vertically to the middle of the remaining screen height: */
    flex-grow: 1; /* Allows 'main' to fill the space below the header */
    align-self: center; /* Centers the main block on the Y-axis if needed, but margin: 0 auto is usually enough. */
    align-items: flex-start; /* Aligns items to the top (default dashboard look) */
}
@media (max-width: 768px) {
    main {
        flex-direction: column;
        padding: 10px;
        align-items: center; /* Centers columns on mobile */
    }
}
