* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
  transition: background-color 0.25s ease,
              color 0.25s ease,
              transform 0.2s ease,
              box-shadow 0.2s ease;
}

body {
  background: #f4f6f8;
  color: #333;
  padding-bottom: 80px;
}

header {
  text-align: center;
  padding: 20px;
  background: #4f46e5;
  color: white;
}

main {
  max-width: 900px;
  margin: 20px auto;
  padding: 0 12px;
  display: grid;
  gap: 16px;
}

.card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.card h2 {
  margin-bottom: 15px;
}

input {
  padding: 10px;
  margin: 5px 0;
  width: 100%;
}

button {
  padding: 10px;
  margin-top: 10px;
  background: #4f46e5;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

button:hover {
  background: #3730a3;
  transform: scale(1.02);
}

button:active {
  transform: scale(0.97);
}

ul {
  list-style: none;
  margin-top: 10px;
}

li {
  padding: 8px;
  background: #e5e7eb;
  margin-top: 5px;
  border-radius: 6px;
}

.not-satir {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.not-satir input {
  flex: 1;
}

.sil-btn {
  background: #ef4444;
  border: none;
  color: white;
  padding: 8px 8px;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 2px;
}

.sil-btn:hover {
  background: #b91c1c;
}

.gecildi {
  color: #16a34a;
  font-weight: bold;
}

.kaldi {
  color: #dc2626;
  font-weight: bold;
}


.todo-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s ease, transform 0.15s ease;
}

.todo-sil {
  background: #ef4444;
  border: none;
  color: white;
  padding: 7px 8px;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 2px;
}

.todo-sil:hover {
  background: #b91c1c;
  transform: scale(1.01);
}



#temaBtn {
  margin-top: 10px;
  padding: 6px 12px;
  border-radius: 20px;
  background: white;
  color: #4f46e5;
  border: none;
  cursor: pointer;
}


body.dark {
  background: #111827;
  color: #e5e7eb;
}

body.dark header {
  background: #020617;
}

body.dark .card {
  background: #1f2933;
  color: #e5e7eb;
}

body.dark input {
  background: #020617;
  color: white;
  border: 1px solid #374151;
}

body.dark button {
  background: #6366f1;
}

body.dark ul li {
  background: #374151;
}


#sinavSonuc {
  margin-top: 10px;
  font-weight: bold;
}

.sinav-item {
  background: #e5e7eb;
  padding: 10px;
  margin-top: 8px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s ease, transform 0.15s ease;
}

body.dark .sinav-item {
  background: #374151;
}

.sinav-sil {
  background: #ef4444;
  border: none;
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
}

.sinav-sil:hover {
  background: #b91c1c;
  transform: scale(1.01);
}


input,
button {
  font-size: 16px; 
}

@media (max-width: 600px) {
  header h1 {
    font-size: 22px;
  }

  .card {
    padding: 16px;
  }

  button {
    width: 100%;
    margin-top: 8px;
  }

  .buttons {
    display: flex;
    flex-direction: column;
  }

  .not-satir {
    flex-direction: column;
  }

  .todo-item,
  .sinav-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .todo-sil,
  .sinav-sil {
    align-self: flex-end;
  }
}

#admob-banner {
  position: fixed;
  bottom: 0;
  width: 100%;
}
