/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: linear-gradient(135deg, #c8a2ff, #a2d2ff);
  color: #f5f5f5;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 40px 20px;
  overflow-x: hidden;
}

/* Title Typing Effect */
.typing-title {
  font-size: 100px;
  font-weight: bold;
  margin-bottom: 30px;
  color: #fff;
  border-right: 3px solid #fff;
  white-space: nowrap;
  overflow: hidden;
  text-align: center;
  text-shadow: 0 3px 8px rgba(0,0,0,0.5);
  animation: fadeInDown 1s ease-out;
  display: inline-block;
  position: relative;
  min-height: 1.2em;
  line-height: 1.2em;
}

/* Efek typing */
@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

/* Container */
.container {
  background: linear-gradient(145deg, #494b4d, #5a5d60);
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 0 25px rgba(0,0,0,0.4);
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

/* Form */
.todo-form {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.todo-form input {
  padding: 12px;
  border-radius: 10px;
  border: none;
  outline: none;
  flex: 1;
  min-width: 200px;
}

.todo-form button {
  background: linear-gradient(135deg, #6a5acd, #836fff);
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  cursor: pointer;
  color: white;
  font-size: 16px;
  transition: 0.3s;
}

.todo-form button:hover {
  background: linear-gradient(135deg, #7b68ee, #9a7dff);
}

/* Actions */
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.actions button {
  background: linear-gradient(135deg, #21262d, #30363d);
  border: none;
  padding: 10px 15px;
  border-radius: 10px;
  cursor: pointer;
  color: #fff;
  transition: 0.3s;
}

.actions button:hover {
  background: linear-gradient(135deg, #30363d, #3d444c);
}

#deleteAllBtn,
#filterBtn {
  background: #6a5acd;
}

#deleteAllBtn:hover,
#filterBtn:hover {
  background: #836fff;
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  margin-bottom: 25px;
}

thead {
  background: linear-gradient(135deg, #a770ef, #cf8bf3, #fdb99b);
  color: #fff;
}

th, td {
  padding: 14px 12px;
  border-bottom: 1px solid #30363d;
}

tbody tr:nth-child(even) {
  background: rgba(200, 162, 255, 0.1);
}

tbody tr:hover {
  background: rgba(200, 162, 255, 0.2);
  transition: 0.3s;
}

.no-task {
  text-align: center;
  color: #999;
  padding: 20px;
}

/* Task row */
.status-done {
  text-decoration: line-through;
  color: #888;
}

.action-btn {
  background: linear-gradient(135deg, #6a5acd, #836fff);
  border: none;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  color: white;
  margin-right: 5px;
  transition: 0.3s;
}

.action-btn:hover {
  background: linear-gradient(135deg, #7b68ee, #9a7dff);
}

/* Stats Container */
.stats-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 20px auto;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 900px;
}

/* Stat Card */
.stat-card {
  flex: 1;
  min-width: 150px;
  background: #f9f9f9;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: center;
}

.stat-card h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: black;
}

.stat-card p {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
}

/* Progress Bar */
.progress-container {
  width: 100%;
  max-width: 1000px;
  margin: 10px auto 30px auto; 
  text-align: center;
}

.progress-wrapper {
  width: 100%;
  height: 25px;
  background: #e0e0e0;
  border-radius: 15px;
  overflow: hidden;
}

#progressBar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #a770ef, #cf8bf3, #fdb99b);
  transition: width 0.4s ease;
}

#progressText {
  margin-top: 8px;
  font-weight: bold;
  color: #fff;
}

/* Search Input */
#searchInput {
  width: 1000px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.creator {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Chalkboard SE', cursive, sans-serif;
  font-size: 16px;
  color: #8e44ad;
  background-color: rgba(255,255,255,0.8);
  padding: 5px 10px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  z-index: 1000;
  text-align: center;
}