* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

/* DEFAULT THEME */
:root {
  --bg: #e9eaf0;
  --card: #ffffff;
  --text: #111;
  --muted: #666;
  --primary: #ff00cc;
  --danger: #ff5f5f;
  --border: #cfcece;
}


/* NIGHT THEME */
body.theme-night {
  --bg: #0b1322;
  --card: #111827;
  --text: #2356bb;
  --muted: #9ca3af;
  --primary: #38bdf8;
  --danger: #fb7185;
  --border: #1f2937;
}

/* DRACULA THEME */
body.theme-dracula {
  --bg: #282a36;
  --card: #1e1f29;
  --text: #fafafa;
  --muted: #a1a1aa;
  --primary: #bd93f9;
  --danger: #ff5555;
  --border: #44475a;
}

/* CUPCAKE THEME */
body.theme-cupcake {
  --bg: #fff7f9;
  --card: #ffffff;
  --text: #4b5563;
  --muted: #9ca3af;
  --primary: #ec4899;
  --danger: #fb7185;
  --border: #fbcfe8;
}

body {
  background: var(--bg);
  color: var(--text);
  padding: 40px;
}

/* THEME DROPDOWN */
.theme-switcher {
  background-color: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  display: block;
  margin-left: auto;
  margin-bottom: 10px;
  
  background-color: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 5px 10px;
  border-radius: 10px;
  cursor: pointer;
  outline: none;
  font-family: inherit;
  transition: all 0.3s ease;
}

.theme-switcher:focus, .theme-switcher:hover {
  border-color: var(--primary);
}

.theme-switcher option {
  background-color: var(--card);
  color: var(--text);
}

/* CONTAINER */
.container {
  max-width: 1000px;
  margin: auto;
  background: var(--card);
  padding: 30px;
  border-radius: 14px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

h2 {
  text-align: center;
  margin-bottom: 25px;
}

.filter-container {
  display: flex;
  justify-content: flex-end;
  margin-top: 15px;
  margin-bottom: 10px;
}
/* SUMMARY */
.summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 25px;
}

.card {
  background: var(--bg);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
}

.card h3 {
  margin-top: 8px;
  font-size: 22px;
}

/* INPUT */
.input-area {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.input-area input {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
}

#addBtn {
  background: var(--primary);
  border: none;
  color: #fff;
  font-size: 22px;
  padding: 0 18px;
  border-radius: 8px;
  cursor: pointer;
}

/* ACTION */
.actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

#deleteAll {
  background: var(--danger);
  border: none;
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
}

/* TABLE */
table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background: var(--bg);
}

th, td {
  padding: 12px;
  text-align: center;
}

tbody tr {
  border-bottom: 1px solid var(--border);
}

.status.done {
  color: #22c55e;
  font-weight: bold;
}

.status.pending {
  color: #facc15;
  font-weight: bold;
}

.empty {
  color: var(--muted);
}

/* FOOTER */
.footer {
  margin-top: 20px;
  text-align: center;
  color: var(--muted);
}



.action-buttons {
  display: flex;
  justify-content: center;
  gap: 8px; /* Jarak  */
}


.btn-action {
  background: none; 
  border: none;     
  font-size: 1.6rem; 
  cursor: pointer;
  padding: 4px;
  border-radius: 50%; 
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Mengatur Warna Sesuai Tema --- */
.btn-toggle {
  
  color: var(--muted); 
}


.btn-toggle:hover,
.btn-toggle i.bx-check-circle {
  color: var(--primary); 
  transform: scale(1.1); 
}


.btn-delete {
  
  color: var(--danger);
}

.btn-delete:hover {
  
  background-color: rgba(255, 95, 95, 0.1); 
  transform: scale(1.1);
}

/* 1. Container utama */
.action-bar {
  display: flex;
  justify-content: flex-end; 
  align-items: center;
  gap: 2px;                      
  margin-top: 15px;
}


.btn-delete-all,
.theme-switcher {
  height: 30px;                
  padding: 10 15px !important;  
  font-size: 14px;             
  border-radius: 10px;         
  box-sizing: border-box;      
  display: flex;               
  align-items: center;         
  justify-content: center;
}


.btn-delete-all {
  background-color: var(--danger);
  color: white;
  border: none;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.btn-delete-all:hover {
  opacity: 0.8;
}