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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: #f8fafc;
  color: #334155;
  line-height: 1.6;
  min-height: 100vh;
}

/* Header Styles */
.header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1rem 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.header h1 {
  font-size: 1.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.date {
  font-size: 0.875rem;
  opacity: 0.9;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
}

.user-info.hidden {
  display: none;
}

/* Logout Button */
.logout-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 0.5rem;
  font-size: 0.875rem;
}

.logout-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
} /* Login Styles */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 80px);
  padding: 2rem;
}

.login-card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  padding: 3rem;
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.login-header {
  margin-bottom: 2rem;
}

.login-header i {
  font-size: 4rem;
  color: #667eea;
  margin-bottom: 1rem;
}

.login-header h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.login-header p {
  color: #64748b;
  font-size: 0.875rem;
}

/* Dashboard Styles */
.dashboard {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Card Styles */
.card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.card-header {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  padding: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.card-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-body {
  padding: 1.5rem;
}

/* Input Groups */
.input-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.input-group i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  z-index: 1;
}

.input-group input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 2px solid #e2e8f0;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #f8fafc;
}

.input-group input:focus {
  outline: none;
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-group input::placeholder {
  color: #94a3b8;
}

/* Priority and Filter Selects */
.priority-group {
  margin-bottom: 1.5rem;
}

.priority-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

.priority-select,
.filter-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  background: #f8fafc;
  color: #374151;
  transition: all 0.3s ease;
  cursor: pointer;
}

.priority-select:focus,
.filter-select:focus {
  outline: none;
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-select {
  width: auto;
  min-width: 150px;
}

/* Deadline & Notify UI */
.deadline-group {
  margin-bottom: 0.75rem;
}

.deadline-group label {
  display: block;
  font-size: 0.875rem;
  color: #374151;
  margin-bottom: 0.25rem;
}

#deadline-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 2px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #f8fafc;
}

.notify-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #374151;
}

/* Task deadline display */
.task-deadline {
  font-size: 0.8rem;
  color: #475569;
  margin-left: 0.5rem;
}

.task-deadline.overdue {
  color: #b91c1c;
  font-weight: 700;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  background: #64748b;
  color: white;
}

.btn-secondary:hover {
  background: #475569;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: #667eea;
  border: 2px solid #667eea;
}

.btn-outline:hover {
  background: #667eea;
  color: white;
}

.btn-danger {
  background: #ef4444;
  color: white;
}

.btn-danger:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

.login-btn {
  width: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.login-btn:hover {
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.button-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

/* Message Styles */
.msg {
  font-size: 0.875rem;
  color: #059669;
  font-weight: 500;
  padding: 0.75rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 0.5rem;
  display: none;
}

.msg.show {
  display: block;
}

/* Tasks Board Styles */
.tasks-board {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.board-header {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  padding: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.board-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Progress Statistics */
.progress-stats {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #667eea;
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Progress Bar */
.progress-bar-container {
  padding: 1rem 1.5rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.progress-bar {
  flex: 1;
  height: 0.5rem;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 9999px;
  width: 0%;
  transition: width 0.5s ease;
}

.progress-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  min-width: 80px;
  text-align: right;
}

.board-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.tasks-grid {
  padding: 1.5rem;
  min-height: 300px;
}

.tasks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

/* Task Card Styles */
.task {
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.task.priority-high {
  background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
  border-color: #fca5a5;
}

.task.priority-medium {
  background: linear-gradient(135deg, #fffbeb 0%, #fed7aa 100%);
  border-color: #fbbf24;
}

.task.priority-low {
  background: linear-gradient(135deg, #f0fdf4 0%, #bbf7d0 100%);
  border-color: #86efac;
}

.task.completed {
  opacity: 0.7;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-color: #cbd5e1;
}

.task:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.task::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.task.priority-high::before {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.task.priority-medium::before {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.task.priority-low::before {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.task.completed::before {
  background: linear-gradient(135deg, #64748b 0%, #475569 100%);
}

.task-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.task-priority {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.task-priority.high {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fca5a5;
}

.task-priority.medium {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fbbf24;
}

.task-priority.low {
  background: #f0fdf4;
  color: #059669;
  border: 1px solid #86efac;
}

.task-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.task-checkbox {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #d1d5db;
  border-radius: 0.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.task-checkbox.checked {
  background: #10b981;
  border-color: #10b981;
  color: white;
}

.task-content {
  font-weight: 500;
  margin-bottom: 1rem;
  line-height: 1.5;
  word-wrap: break-word;
}

.task.priority-high .task-content {
  color: #991b1b;
}

.task.priority-medium .task-content {
  color: #92400e;
}

.task.priority-low .task-content {
  color: #065f46;
}

.task.completed .task-content {
  color: #64748b;
  text-decoration: line-through;
}

.task-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.task button {
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.task button:hover {
  background: #dc2626;
  transform: scale(1.05);
}

.task button.complete-btn {
  background: #10b981;
}

.task button.complete-btn:hover {
  background: #059669;
}

/* Messages */
.board-messages {
  padding: 0 1.5rem 1.5rem;
}

.clearmsg {
  color: #ef4444;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.75rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  display: none;
}

.clearmsg.show {
  display: block;
}

#tasksmsg {
  color: #64748b;
  font-style: italic;
  text-align: center;
  padding: 2rem;
  font-size: 1.125rem;
}

/* Hide/Show Classes */
.hide1,
.hide2,
.hide3 {
  display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content {
    padding: 0 1rem;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .header h1 {
    font-size: 1.5rem;
  }

  .dashboard {
    padding: 1rem;
  }

  .login-card {
    padding: 2rem;
    margin: 1rem;
  }

  .button-group {
    flex-direction: column;
  }

  .board-header {
    flex-direction: column;
    align-items: stretch;
  }

  .progress-stats {
    justify-content: center;
    gap: 1rem;
  }

  .board-actions {
    justify-content: center;
    flex-direction: column;
  }

  .progress-bar-container {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .progress-text {
    text-align: center;
    min-width: auto;
  }

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

  .card-header,
  .card-body {
    padding: 1rem;
  }

  .filter-select {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .header h1 {
    font-size: 1.25rem;
  }

  .login-header i {
    font-size: 3rem;
  }

  .login-header h2 {
    font-size: 1.5rem;
  }

  .tasks-grid {
    padding: 1rem;
  }

  .progress-stats {
    gap: 0.75rem;
  }

  .stat-number {
    font-size: 1.25rem;
  }

  .task-actions {
    flex-direction: column;
    gap: 0.25rem;
  }

  .task button {
    width: 100%;
    justify-content: center;
  }
}

/* Theme refresh overrides */
:root {
  --brand-warm: #e45f2a;
  --brand-warm-strong: #c64a1c;
  --panel-glass: rgba(255, 255, 255, 0.78);
  --ink-strong: #1f2937;
}

body {
  font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at 12% 15%, rgba(252, 211, 190, 0.48), transparent 35%),
    radial-gradient(circle at 88% 88%, rgba(254, 215, 170, 0.38), transparent 35%),
    #f8f7f4;
}

.header {
  background: linear-gradient(135deg, var(--brand-warm) 0%, var(--brand-warm-strong) 100%);
}

.card,
.login-card,
.tasks-board {
  background: var(--panel-glass);
  border: 1px solid #ecdccf;
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 34px rgba(67, 46, 32, 0.12);
}

.card-header h3,
.board-header h3,
.login-header h2 {
  color: var(--ink-strong);
}

.btn-primary,
.login-btn {
  background: linear-gradient(130deg, var(--brand-warm), #f08a43);
}

.btn-primary:hover,
.login-btn:hover {
  background: linear-gradient(130deg, var(--brand-warm-strong), var(--brand-warm));
}

.task {
  border: 1px solid #ead9ca;
}
