/* Genel buton */
.btn {
  font-size: 0.875rem;
  padding: 0.375rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid rgb(226, 232, 240);
  background: #ffffff;
  color: rgb(15, 23, 42);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  transition: background 150ms, box-shadow 150ms, transform 50ms;
  cursor: pointer;
}

.btn:hover {
  background: #f8fafc;
  box-shadow: 0 3px 6px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}

.btn.primary {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.btn.primary:hover {
  background: #1d4ed8;
}

.btn.danger {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
}

.btn.danger:hover {
  background: #b91c1c;
}

.btn-icon {
  padding-inline: 0.5rem;
  padding-block: 0.25rem;
}

/* Dialog / Modal - tam ortada */
.modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border: none;
  margin: 0;
  background: transparent;
}

.modal[open] {
  display: flex;
}

.modal::backdrop {
  background: rgba(15, 23, 42, 0.45);
}

.modal-card {
  width: 100%;
  max-width: 32rem;
  border-radius: 1rem;
  background: #ffffff;
  /* tam beyaz kart */
  border: 1px solid rgb(226, 232, 240);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.45);
}

/* Takvim hücreleri */
.cal-cell {
  aspect-ratio: 1 / 1;
  border-radius: 0.75rem;
  border: 1px solid rgb(226, 232, 240);
  font-size: 0.875rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: background 150ms, box-shadow 150ms, transform 50ms, color 150ms;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.cal-cell:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(15, 23, 42, 0.12);
}

.cal-cell .dot {
  margin-top: 0.25rem;
  height: 0.375rem;
  width: 0.375rem;
  border-radius: 999px;
  background: currentColor;
}

/* Tablo kenarlıkları */
table th,
table td {
  border-color: rgb(226, 232, 240);
}

/* Hedef menü dropdown */
.goal-menu {
  z-index: 20;
}