/* css/tracker.css */
/* Container ayarları */
.tracker {
  padding: 4rem 0;
  background: #fafbfc;
}
.tracker .container {
  max-width: 1000px;
  margin: 0 auto;
}

/* Başlık */
.tracker h1 {
  font-size: 2.25rem;
  text-align: center;
  margin-bottom: 2rem;
  color: #555454;
}

/* Hafta navigasyonu */
.week-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.week-nav button {
  background: #fff;
  border: 1px solid #ddd;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}
.week-nav button:hover {
  background: #474747;
}
.week-nav span {
  font-size: 1rem;
  font-weight: 600;
  color: #626262;
}

/* Tablo sarmalayıcı (horizontal scroll için) */
.tracker-table-wrapper {
  overflow-x: auto;
  margin-bottom: 2rem;
}

/* Ana tablo */
.tracker-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border-radius: 8px;
  background: #fff;
}

/* Sticky header */
.tracker-table thead th {
  position: sticky;
  top: 0;
  background: #f4f5f8;
  color: #696868;
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Body hücreler */
.tracker-table td {
  padding: 0.75rem 1rem;
  text-align: center;
  border-bottom: 1px solid #ececec;
}
.tracker-table .habit-name {
  text-align: left;
  font-weight: 500;
  color: #333;
}

/* Alternating row renkleri */
.tracker-table tbody tr:nth-child(even) {
  background: #fbfcfd;
}

/* Checkbox stili */
.tracker-table input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #8954de;
  cursor: pointer;
  transition: transform 0.15s;
}
.tracker-table input[type="checkbox"]:checked {
  transform: scale(1.2);
}

/* "+ Add New Habit" butonu */
.btn-gradient {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(90deg, #8954de, #0a82f2);
  color: #fff;
  transition: opacity 0.2s;
}
.btn-gradient:hover {
  opacity: 0.85;
}

/* Mobile uyumluluk */
@media (max-width: 600px) {
  .tracker h1 { font-size: 1.75rem; }
  .tracker-table thead th,
  .tracker-table td { padding: 0.5rem; font-size: 0.85rem; }
  .week-nav button { padding: 0.4rem 0.8rem; }
}
/* Add at bottom of css/tracker.css */
.delete-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: #e74c3c;
  transition: transform 0.2s;
}
.delete-btn:hover {
  transform: scale(1.3);
}

/* Dashboard Overview Section */
.dashboard-overview {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  margin: 2em auto 2em auto;
  padding: 2em 2em 1.5em 2em;
  max-width: 800px;
}
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5em;
}
.dashboard-progress {
  flex: 0 0 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dashboard-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: conic-gradient(var(--primary-accent, #4caf50) 0% 0%, #eee 0% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.dashboard-percent {
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3em;
  font-weight: bold;
  color: #333;
}
.dashboard-title-group {
  flex: 1 1 auto;
  margin-left: 2em;
}
.dashboard-title-group h2 {
  margin: 0 0 0.3em 0;
  font-size: 1.5em;
}
.dashboard-share {
  margin-top: 0.3em;
  font-size: 0.95em;
}
.dashboard-avatar {
  flex: 0 0 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dashboard-targets, .dashboard-timeline {
  margin-top: 1.2em;
}
.dashboard-targets h3, .dashboard-timeline h3 {
  margin-bottom: 0.5em;
  font-size: 1.1em;
  color: var(--primary-accent, #4caf50);
}
#dashboard-targets-list, #dashboard-timeline-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.dashboard-target-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.7em;
  background: #f7f7fa;
  border-radius: 10px;
  padding: 0.7em 1em;
}
.dashboard-target-label {
  flex: 1 1 auto;
  font-weight: 500;
}
.dashboard-target-bar {
  flex: 0 0 160px;
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  margin-left: 1em;
  position: relative;
}
.dashboard-target-bar-inner {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--primary-accent, #4caf50), var(--secondary-accent, #2196f3));
  transition: width 0.5s;
}
.dashboard-timeline-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.5em;
  font-size: 0.98em;
}
.dashboard-timeline-label {
  flex: 1 1 auto;
}
.dashboard-timeline-date {
  color: #888;
  font-size: 0.92em;
  margin-left: 1em;
}
:root {
  --primary-accent: #7B2FF2;
  --secondary-accent: #1AC8FC;
}
.progress-ring {
  background: conic-gradient(var(--primary-accent, #7B2FF2) calc(var(--p,0) * 1%), #eee 0);
}
