:root {
  --bg: #1a1f2e;
  --card: #252b3d;
  --text: #e8eef5;
  --text-muted: #9ca5b8;
  --accent: #5BA8C7;
  --accent-hover: #4a8fb0;
  --accent-light: #2d4a5a;
  --border: #3a4255;
  --danger: #E74C3C;
  --danger-hover: #C0392B;
  --completed: #6b7280;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --radius: 12px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Outfit', sans-serif;
  background: linear-gradient(135deg, #1a1f2e 0%, #252b3d 100%);
  color: var(--text);
  min-height: 100vh;
  padding: 2rem 1rem;
  line-height: 1.5;
}

.hidden {
  display: none !important;
}

/* Bağlantı durumu */
.connection-status {
  position: fixed;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  z-index: 200;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: opacity 0.5s;
}

.connection-status.fade {
  opacity: 0;
  pointer-events: none;
}

.connection-status .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f59e0b;
}

.connection-status.connected .status-dot {
  background: #22c55e;
}

.connection-status.disconnected .status-dot {
  background: var(--danger);
}

.connection-status.disconnected {
  opacity: 1 !important;
  pointer-events: auto;
}

/* Giriş Ekranı */
.login-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1rem;
}

.login-container {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.login-container .logo-container {
  margin-bottom: 1.5rem;
}

.login-container .logo {
  width: 100px;
  height: 100px;
}

.login-container h2 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.login-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
}

.tab-btn {
  flex: 1;
  padding: 0.75rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  margin-bottom: -2px;
}

.tab-btn:hover {
  color: var(--text);
}

.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.auth-form .form-group {
  margin-bottom: 1rem;
}

.auth-form .form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.auth-form .btn-add {
  width: 100%;
  margin-top: 0.5rem;
}

.user-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.current-user {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.btn-logout-user {
  padding: 0.5rem 0.85rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--danger);
  background: transparent;
  border: 1px solid var(--danger);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-logout-user:hover {
  background: rgba(231, 76, 60, 0.1);
}

.user-badge {
  font-size: 0.75rem;
  color: var(--accent);
  margin-left: 0.25rem;
}

.app {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  gap: 1.5rem;
  align-items: start;
}

.main-center {
  min-width: 0;
}

/* ── Yan Paneller ── */
.side-panel {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  position: sticky;
  top: 1rem;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
}

.side-panel-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
  text-align: center;
}

.side-panel-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.sp-input {
  width: 100%;
  padding: 0.55rem 0.75rem;
  font-family: inherit;
  font-size: 0.88rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s;
}

.sp-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.sp-btn {
  padding: 0.55rem 0.75rem;
  font-size: 0.85rem;
}

.side-panel-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sp-item {
  padding: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s;
  animation: slideIn 0.25s ease-out;
}

.sp-item:hover {
  border-color: var(--accent);
}

.sp-item-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
  word-break: break-word;
}

.sp-item-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.sp-item-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.sp-item-actions {
  display: flex;
  gap: 0.25rem;
  margin-top: 0.4rem;
  justify-content: flex-end;
}

.sp-item-actions button {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  transition: color 0.2s, background 0.2s;
}

.sp-item-actions .sp-edit:hover {
  color: var(--accent);
  background: rgba(91, 168, 199, 0.1);
}

.sp-item-actions .sp-upload:hover {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
}

.sp-item-actions .sp-delete:hover {
  color: var(--danger);
  background: rgba(196, 92, 74, 0.1);
}

.sp-empty {
  text-align: center;
  padding: 1.5rem 0.5rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.sp-files {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.sp-file-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(91, 168, 199, 0.07);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.2rem 0.4rem;
}

.sp-file-link {
  flex: 1;
  min-width: 0;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-file-link:hover {
  text-decoration: underline;
}

.sp-file-del {
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 4px;
  background: rgba(231, 76, 60, 0.15);
  color: var(--danger);
  cursor: pointer;
  font-size: 0.7rem;
  line-height: 1;
}

.sp-file-del:hover {
  background: rgba(231, 76, 60, 0.28);
}

.header {
  text-align: center;
  margin-bottom: 2rem;
}

.logo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.logo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  overflow: hidden;
  filter: drop-shadow(0 4px 12px rgba(91, 168, 199, 0.4));
  border: 3px solid var(--accent);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ── Bildirim Zil ── */
.notif-wrapper {
  position: relative;
}

.btn-bell {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  color: var(--accent);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-bell:hover {
  background: var(--accent);
  color: #fff;
}

.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: var(--danger);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.notif-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 340px;
  max-height: 420px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  z-index: 300;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.notif-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  font-weight: 600;
}

.notif-mark-read {
  font-family: inherit;
  font-size: 0.75rem;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

.notif-mark-read:hover {
  color: var(--accent-hover);
}

.notif-list {
  list-style: none;
  overflow-y: auto;
  flex: 1;
  max-height: 360px;
}

.notif-item {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
  animation: slideIn 0.2s ease-out;
}

.notif-item:hover {
  background: rgba(91, 168, 199, 0.06);
}

.notif-item.unread {
  background: rgba(91, 168, 199, 0.08);
  border-left: 3px solid var(--accent);
}

.notif-item-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.notif-item-body {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.notif-item-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  opacity: 0.7;
}

.notif-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ── Yardım butonları (görev kartı) ── */
.btn-help {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  transition: color 0.2s, background 0.2s;
  flex-shrink: 0;
}

.btn-help-request:hover {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
}

.btn-help-offer:hover {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
}

.btn-help-detail:hover {
  color: var(--accent);
  background: rgba(91, 168, 199, 0.1);
}

.help-badge {
  font-size: 0.7rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  font-weight: 600;
}

.help-modal-task {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding: 0.5rem;
  background: var(--bg);
  border-radius: var(--radius-sm);
}

.modal-wide {
  max-width: 440px;
}

/* Görev detay modal içerik */
.task-detail-section {
  margin-bottom: 1rem;
}

.task-detail-section h4 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.help-entry {
  padding: 0.6rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.4rem;
}

.help-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.help-entry-user {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.help-entry-time {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.help-entry-msg {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.help-entry-actions {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.btn-accept, .btn-reject {
  padding: 0.3rem 0.6rem;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-accept {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.btn-accept:hover { opacity: 0.8; }

.btn-reject {
  background: rgba(231, 76, 60, 0.15);
  color: var(--danger);
}

.btn-reject:hover { opacity: 0.8; }

.help-status-badge {
  font-size: 0.7rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-weight: 600;
}

.help-status-badge.accepted {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.help-status-badge.rejected {
  background: rgba(231, 76, 60, 0.15);
  color: var(--danger);
}

.help-status-badge.pending {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.header h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.btn-admin {
  padding: 0.45rem 0.85rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-admin:hover:not(:disabled) {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-admin:disabled {
  opacity: 0.8;
  cursor: default;
}

.subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 400;
  margin-top: 0.35rem;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  width: 90%;
  max-width: 360px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
}

.modal h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.modal label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.modal-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  background: var(--bg);
  color: var(--text);
}

.modal-error {
  color: var(--danger);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  min-height: 1.2em;
}

.modal-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.modal-actions .btn-add {
  flex: 1;
}

.btn-cancel {
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s;
}

.btn-cancel:hover {
  background: var(--border);
}

/* Yönetici paneli */
.admin-panel {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.admin-panel.hidden {
  display: none;
}

.admin-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.admin-panel-header h3 {
  font-size: 1rem;
  font-weight: 600;
}

.btn-logout {
  padding: 0.4rem 0.75rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--danger);
  background: transparent;
  border: 1px solid var(--danger);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-logout:hover {
  background: rgba(196, 92, 74, 0.1);
}

.add-person-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.add-person-form .todo-input {
  flex: 1;
}

.people-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.people-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background: var(--card);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

.people-delete {
  width: 28px;
  height: 28px;
  font-size: 1.1rem;
}

/* ── Bekleyen Kayıt İstekleri ── */
.pending-section {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.pending-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #f59e0b;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pending-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: #f59e0b;
  border-radius: 10px;
}

.pending-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.pending-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-sm);
  animation: slideIn 0.25s ease-out;
}

.pending-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.pending-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.pending-position {
  font-size: 0.75rem;
  color: #f59e0b;
}

.pending-date {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.pending-actions {
  display: flex;
  gap: 0.3rem;
  flex-shrink: 0;
}

.btn-approve {
  padding: 0.3rem 0.65rem;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.btn-approve:hover {
  background: rgba(34, 197, 94, 0.22);
  border-color: #22c55e;
}

.btn-reject-user {
  padding: 0.3rem 0.65rem;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--danger);
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.btn-reject-user:hover {
  background: rgba(231, 76, 60, 0.2);
  border-color: var(--danger);
}

.people-management-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* ── Üye Yönetimi ── */
.members-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.members-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.members-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 300px;
  overflow-y: auto;
}

.member-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s;
}

.member-item:hover {
  border-color: var(--accent);
}

.member-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.member-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.member-position {
  font-size: 0.75rem;
  color: var(--accent);
}

.member-date {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.btn-member-delete {
  padding: 0.3rem 0.6rem;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--danger);
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.btn-member-delete:hover {
  background: rgba(231, 76, 60, 0.2);
  border-color: var(--danger);
}

.add-form {
  margin-bottom: 1.25rem;
}

.add-form .todo-input {
  width: 100%;
  margin-bottom: 0.75rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.todo-deadline,
.todo-assign {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-family: inherit;
  font-size: 0.95rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--text);
}

.todo-assign {
  cursor: pointer;
}

.todo-assign[multiple] {
  min-height: 130px;
  padding: 0.35rem;
}

.todo-assign[multiple] option {
  padding: 0.35rem 0.45rem;
  border-radius: 4px;
}

.todo-input {
  flex: 1;
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.todo-input::placeholder {
  color: var(--text-muted);
}

.todo-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.todo-description {
  resize: vertical;
  min-height: 2.5rem;
  max-height: 10rem;
  line-height: 1.5;
}

.todo-desc-text {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.btn-add {
  padding: 0.85rem 1.25rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn-add:hover {
  background: var(--accent-hover);
}

.btn-add:active {
  transform: scale(0.98);
}

.filters {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
  justify-content: center;
}

.filter-btn {
  padding: 0.5rem 1rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.filter-btn:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-light);
}

.filter-btn.active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(146, 210, 237, 0.3);
}

.tasks-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.tasks-column {
  display: flex;
  flex-direction: column;
}

.column-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

.todo-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 200px;
}

.todo-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  transition: border-color 0.2s, opacity 0.2s, box-shadow 0.2s;
  animation: slideIn 0.25s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.todo-item:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 24px rgba(146, 210, 237, 0.25);
}

.todo-item.completed {
  opacity: 0.75;
}

.todo-item.completed .todo-text {
  text-decoration: line-through;
  color: var(--completed);
}

.todo-checkbox {
  width: 22px;
  height: 22px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

.todo-content {
  flex: 1;
  min-width: 0;
}

.todo-text {
  display: block;
  font-size: 1rem;
  word-break: break-word;
}

.todo-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.todo-deadline-badge {
  background: var(--accent-light);
  color: var(--accent);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 500;
}

.todo-deadline-badge.overdue {
  background: rgba(196, 92, 74, 0.15);
  color: var(--danger);
}

.todo-assignee {
  background: var(--accent-light);
  color: var(--accent);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.todo-helper {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.78rem;
}

.btn-help-leave {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(231, 76, 60, 0.15);
  border: none;
  border-radius: 3px;
  color: var(--danger);
  cursor: pointer;
  font-size: 0.65rem;
  line-height: 1;
  transition: background 0.2s;
  margin-left: 0.15rem;
  flex-shrink: 0;
}

.btn-help-leave:hover {
  background: rgba(231, 76, 60, 0.3);
}

/* ── Dosya Ekleri ── */
.file-input {
  width: 100%;
  padding: 0.6rem;
  font-family: inherit;
  font-size: 0.88rem;
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s;
}

.file-input:hover,
.file-input:focus {
  border-color: var(--accent);
}

.upload-preview {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 0.5rem;
}

.upload-preview-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.8rem;
  color: var(--text);
}

.upload-preview-size {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.todo-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.35rem;
}

.attachment-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.4rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.72rem;
  transition: border-color 0.2s;
  max-width: 200px;
}

.attachment-item:hover {
  border-color: var(--accent);
}

.attachment-icon {
  flex-shrink: 0;
  font-size: 0.78rem;
}

.attachment-name {
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
}

.attachment-meta {
  display: none;
}

.attachment-download {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(91, 168, 199, 0.12);
  border: none;
  border-radius: 3px;
  color: var(--accent);
  cursor: pointer;
  font-size: 0.72rem;
  flex-shrink: 0;
  transition: background 0.2s;
  text-decoration: none;
}

.attachment-download:hover {
  background: rgba(91, 168, 199, 0.25);
}

.attachment-delete {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(231, 76, 60, 0.1);
  border: none;
  border-radius: 3px;
  color: var(--danger);
  cursor: pointer;
  font-size: 0.65rem;
  flex-shrink: 0;
  transition: background 0.2s;
}

.attachment-delete:hover {
  background: rgba(231, 76, 60, 0.25);
}

.btn-attach {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  transition: color 0.2s, background 0.2s;
  flex-shrink: 0;
}

.btn-attach:hover {
  color: var(--accent);
  background: rgba(91, 168, 199, 0.1);
}

.attachment-count-badge {
  font-size: 0.7rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  background: rgba(91, 168, 199, 0.12);
  color: var(--accent);
  font-weight: 600;
}

/* ── İlerleme durumu ── */
.progress-wrapper {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.progress-select {
  padding: 0.25rem 0.4rem;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s;
}

.progress-select:focus {
  outline: none;
  border-color: var(--accent);
}

.progress-select:disabled {
  opacity: 0.6;
  cursor: default;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.status-badge.not-started {
  background: rgba(156, 165, 184, 0.15);
  color: var(--text-muted);
}

.status-badge.in-progress {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.status-badge.done-status {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.progress-bar-mini {
  width: 48px;
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
}

.progress-bar-mini-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s;
  background: #f59e0b;
}

.progress-bar-mini-fill.p0 { width: 0%; background: var(--text-muted); }
.progress-bar-mini-fill.p25 { width: 25%; }
.progress-bar-mini-fill.p50 { width: 50%; }
.progress-bar-mini-fill.p75 { width: 75%; }
.progress-bar-mini-fill.p100 { width: 100%; background: #22c55e; }

.todo-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.todo-edit,
.todo-delete {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  transition: color 0.2s, background 0.2s;
  flex-shrink: 0;
}

.todo-edit:hover {
  color: var(--accent);
  background: rgba(91, 168, 199, 0.1);
}

.todo-delete:hover {
  color: var(--danger);
  background: rgba(196, 92, 74, 0.1);
}

.footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.counter {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.btn-clear {
  padding: 0.5rem 0.85rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--danger);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-clear:hover {
  background: rgba(196, 92, 74, 0.1);
}

.btn-clear:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
  font-size: 1rem;
}

.empty-state.hidden {
  display: none;
}

@media (max-width: 1100px) {
  .app {
    grid-template-columns: 1fr;
    max-width: 600px;
  }

  .side-panel {
    position: static;
    max-height: none;
  }

  .app {
    grid-template-rows: auto auto auto;
  }

  .side-panel-left { order: 2; }
  .main-center { order: 1; }
  .side-panel-right { order: 3; }
}

@media (max-width: 768px) {
  .tasks-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  body {
    padding: 1rem 0.75rem;
  }

  .header h1 {
    font-size: 1.65rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .btn-add {
    width: 100%;
  }

  .filters {
    flex-wrap: wrap;
    justify-content: center;
  }

  .add-person-form {
    flex-direction: column;
  }

  .tasks-container {
    grid-template-columns: 1fr;
  }
}
