/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ===========================
   DESIGN TOKENS — LIGHT THEME
   =========================== */
:root {
  /* --- Surfaces --- */
  --bg:             #f5f5f7;
  --bg-sidebar:     #ffffff;
  --bg-column:      #ffffff;
  --bg-card:        #ffffff;
  --bg-input:       #ffffff;
  --bg-modal:       #ffffff;
  --bg-hover:       #f0f0f3;

  /* --- Text --- */
  --text:           #1d1d1f;
  --text-secondary: #86868b;
  --text-tertiary:  #aeaeb2;

  /* --- Borders --- */
  --border:         #e5e5ea;
  --border-light:   #f2f2f7;

  /* --- Accent --- */
  --accent:         #6c63ff;
  --accent-hover:   #5a52d9;
  --accent-soft:    rgba(108,99,255,0.10);
  --accent-glow:    rgba(108,99,255,0.25);

  /* --- Semantic --- */
  --danger:         #ff453a;
  --danger-bg:      rgba(255,69,58,0.10);
  --success:        #30d158;
  --success-bg:     rgba(48,209,88,0.10);
  --warning:        #ff9f0a;
  --warning-bg:     rgba(255,159,10,0.10);

  /* --- Shadows --- */
  --shadow-sm:      0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:      0 4px 14px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-lg:      0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-glow:    0 0 20px rgba(108,99,255,0.15);

  /* --- Layout --- */
  --radius:         12px;
  --radius-sm:      8px;
  --radius-xs:      6px;
  --sidebar-w:      260px;

  /* --- Transitions --- */
  --transition:     0.25s cubic-bezier(0.4,0,0.2,1);

  /* --- Glass --- */
  --glass-bg:       rgba(255,255,255,0.72);
  --glass-border:   rgba(255,255,255,0.40);
  --glass-blur:     16px;

  /* --- Overlay --- */
  --overlay:        rgba(0,0,0,0.40);

  /* --- Scrollbar --- */
  --scrollbar-bg:   transparent;
  --scrollbar-thumb: rgba(0,0,0,0.15);

  /* --- Calendar --- */
  --cal-today:      rgba(108,99,255,0.12);
  --cal-other-month: rgba(0,0,0,0.03);
}

/* ===========================
   DESIGN TOKENS — DARK THEME
   =========================== */
[data-theme="dark"] {
  --bg:             #0d0d12;
  --bg-sidebar:     #111118;
  --bg-column:      #16161e;
  --bg-card:        #1c1c28;
  --bg-input:       #1c1c28;
  --bg-modal:       #1a1a26;
  --bg-hover:       #22222e;

  --text:           #e4e4e7;
  --text-secondary: #8b8b94;
  --text-tertiary:  #5c5c66;

  --border:         rgba(255,255,255,0.08);
  --border-light:   rgba(255,255,255,0.04);

  --accent:         #7c73ff;
  --accent-hover:   #6c63ff;
  --accent-soft:    rgba(124,115,255,0.12);
  --accent-glow:    rgba(124,115,255,0.30);

  --danger:         #ff6961;
  --danger-bg:      rgba(255,105,97,0.12);
  --success:        #4cd97b;
  --success-bg:     rgba(76,217,123,0.12);
  --warning:        #ffb340;
  --warning-bg:     rgba(255,179,64,0.12);

  --shadow-sm:      0 1px 3px rgba(0,0,0,0.20), 0 1px 2px rgba(0,0,0,0.12);
  --shadow-md:      0 4px 14px rgba(0,0,0,0.28), 0 1px 3px rgba(0,0,0,0.16);
  --shadow-lg:      0 12px 40px rgba(0,0,0,0.40), 0 4px 12px rgba(0,0,0,0.20);
  --shadow-glow:    0 0 30px rgba(124,115,255,0.25);

  --glass-bg:       rgba(22,22,30,0.78);
  --glass-border:   rgba(255,255,255,0.06);
  --glass-blur:     20px;

  --overlay:        rgba(0,0,0,0.65);

  --scrollbar-bg:   transparent;
  --scrollbar-thumb: rgba(255,255,255,0.12);

  --cal-today:      rgba(124,115,255,0.18);
  --cal-other-month: rgba(255,255,255,0.02);
}

/* ===========================
   RESETS & BASE
   =========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  color-scheme: light dark;
}
[data-theme="dark"] html,
[data-theme="dark"] {
  color-scheme: dark;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background var(--transition), color var(--transition);
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}
button { cursor: pointer; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--scrollbar-bg); }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-soft); }

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  background: var(--bg-card);
  color: var(--text);
  transition: all var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn:hover {
  background: var(--bg-hover);
  border-color: var(--text-tertiary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 8px var(--accent-glow);
}
.btn-primary:hover {
  box-shadow: 0 4px 16px var(--accent-glow);
  border-color: transparent;
  filter: brightness(1.08);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
}

.btn-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: transparent;
}
.btn-danger:hover {
  background: var(--danger);
  color: #fff;
  border-color: transparent;
}

.btn-success {
  background: var(--success-bg);
  color: var(--success);
  border-color: transparent;
}
.btn-success:hover {
  background: var(--success);
  color: #fff;
  border-color: transparent;
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover {
  background: var(--bg-hover);
  color: var(--text);
  border-color: transparent;
}

.btn-block { width: 100%; }
.btn-small { padding: 5px 10px; font-size: 11px; border-radius: var(--radius-xs); }
.btn-icon {
  width: 34px; height: 34px;
  padding: 0; border-radius: var(--radius-sm);
  font-size: 16px; background: transparent; border: none;
}
.btn-icon:hover { background: var(--bg-hover); }

/* ===========================
   ALERTS
   =========================== */
.alert {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: alertSlideIn 0.3s ease-out;
}
@keyframes alertSlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.alert-error { background: var(--danger-bg); color: var(--danger); }
.alert-success { background: var(--success-bg); color: var(--success); }
.alert-warning { background: var(--warning-bg); color: var(--warning); }

/* ===========================
   AUTH PAGES
   =========================== */
.auth-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.auth-body::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  top: -120px; right: -80px;
  border-radius: 50%;
  pointer-events: none;
  animation: authGlow 8s ease-in-out infinite alternate;
}
.auth-body::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,206,201,0.12) 0%, transparent 70%);
  bottom: -100px; left: -60px;
  border-radius: 50%;
  pointer-events: none;
  animation: authGlow 10s ease-in-out infinite alternate-reverse;
}
@keyframes authGlow {
  from { transform: scale(1) translate(0,0); opacity: 0.6; }
  to   { transform: scale(1.2) translate(20px,-20px); opacity: 1; }
}

.auth-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  width: 100%;
  max-width: 400px;
  position: relative;
  z-index: 1;
  animation: cardAppear 0.5s ease-out;
}
@keyframes cardAppear {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-logo {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--accent), #00cec9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.auth-card h1 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 24px;
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.auth-form input {
  font-size: 14px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  background: var(--bg-input);
  color: var(--text);
  transition: all var(--transition);
}
.auth-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.auth-switch {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
}
.auth-hint {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.6;
  text-align: center;
}

.auth-theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10;
}

/* ===========================
   APP SHELL
   =========================== */
.app-shell {
  display: flex;
  min-height: 100vh;
}

/* ===========================
   SIDEBAR
   =========================== */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 20px 12px;
  transition: background var(--transition), border-color var(--transition);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-logo {
  font-size: 18px;
  font-weight: 700;
  padding: 4px 12px 20px;
  background: linear-gradient(135deg, var(--accent), #00cec9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar-nav { margin-bottom: 8px; }

.sidebar-section-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  padding: 12px 12px 6px;
  font-weight: 600;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 2px;
  transition: all var(--transition);
  text-decoration: none;
}
.sidebar-link:hover {
  background: var(--bg-hover);
  color: var(--text);
  text-decoration: none;
  transform: translateX(2px);
}
.sidebar-link.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}
.sidebar-link.active::before {
  content: '';
  width: 3px;
  height: 18px;
  background: var(--accent);
  border-radius: 2px;
  position: absolute;
  left: 0;
}
.sidebar-link { position: relative; }

.sidebar-empty {
  font-size: 12px;
  color: var(--text-tertiary);
  padding: 4px 12px;
  line-height: 1.5;
}

/* Theme toggle button */
.sidebar-theme-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  transition: all var(--transition);
  text-align: left;
  margin-top: 4px;
}
.sidebar-theme-toggle:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.sidebar-user {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--border);
  transition: border-color var(--transition);
}
.sidebar-user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #00cec9);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
  flex-shrink: 0;
}
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name {
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
a.sidebar-user-name {
  display: block;
  color: var(--text);
}
a.sidebar-user-name:hover { color: var(--accent); }
.sidebar-user-role {
  font-size: 11px;
  color: var(--text-tertiary);
}
.sidebar-logout {
  color: var(--text-tertiary);
  font-size: 18px;
  padding: 4px;
  transition: color var(--transition);
  text-decoration: none;
}
.sidebar-logout:hover { color: var(--danger); }

/* ===========================
   MAIN CONTENT
   =========================== */
.main-content {
  flex: 1;
  padding: 28px 36px;
  min-width: 0;
  transition: padding var(--transition);
}

.empty-state {
  color: var(--text-secondary);
  padding: 60px 40px;
  text-align: center;
  font-size: 15px;
}
.empty-state a { font-weight: 600; }

/* ===========================
   BOARD
   =========================== */
.board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}
.board-header h1 {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
}

.board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.board-column {
  background: var(--bg-column);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  min-height: 240px;
  transition: background var(--transition), border-color var(--transition);
}
.board-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px 14px;
}
.board-column-title {
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}
.board-column-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  background: var(--bg-hover);
  border-radius: 10px;
  padding: 2px 10px;
  min-width: 24px;
  text-align: center;
}
.board-column-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 60px;
}
.board-column-cards.drag-over {
  outline: 2px dashed var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
}

/* ===========================
   TASK CARDS
   =========================== */
.task-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: 14px 14px 14px 18px;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}
.task-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 4px;
  border-radius: 0 3px 3px 0;
  background: var(--task-color, var(--accent));
  transition: all var(--transition);
}
.task-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--accent-soft);
}
.task-card.dragging {
  opacity: 0.4;
  transform: rotate(2deg);
}

.task-priority {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 10px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.priority-low    { background: rgba(84,160,255,0.12); color: #54a0ff; }
.priority-medium { background: var(--warning-bg);      color: var(--warning); }
.priority-high   { background: var(--danger-bg);       color: var(--danger); }

.task-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
  color: var(--text);
}
.task-due {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.task-due.overdue {
  color: var(--danger);
  font-weight: 600;
}
.task-footer {
  font-size: 11px;
  color: var(--text-tertiary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.task-assignee {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===========================
   MODAL
   =========================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--overlay);
  align-items: center;
  justify-content: center;
  z-index: 100;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal-overlay.open {
  display: flex;
  animation: overlayIn 0.2s ease-out;
}
@keyframes overlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal {
  background: var(--bg-modal);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 580px;
  max-height: 86vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  animation: modalIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
  transition: background var(--transition), border-color var(--transition);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.92) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  border: none;
  background: var(--bg-hover);
  width: 30px; height: 30px;
  border-radius: 50%;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.modal-close:hover {
  background: var(--danger-bg);
  color: var(--danger);
}

.modal h2 {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.modal-field { margin-bottom: 16px; }
.modal-field label {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.modal-field input,
.modal-field select,
.modal-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: var(--bg-input);
  color: var(--text);
  transition: all var(--transition);
  outline: none;
}
.modal-field input:focus,
.modal-field select:focus,
.modal-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.modal-field textarea { resize: vertical; min-height: 80px; }
.modal-row { display: flex; gap: 14px; }
.modal-row .modal-field { flex: 1; }
.modal-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.modal-actions-right { display: flex; gap: 8px; }

.modal-section-title {
  font-size: 12px;
  font-weight: 600;
  margin: 24px 0 12px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Color picker */
.color-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.color-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}
.color-dot:hover {
  transform: scale(1.15);
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}
.color-dot.selected {
  border-color: var(--text);
  transform: scale(1.1);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.color-dot.selected::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Comments */
.comment-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.comment-item {
  background: var(--bg-hover);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  transition: background var(--transition);
}
.comment-meta {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-bottom: 4px;
  font-weight: 500;
}
.comment-text {
  font-size: 13px;
  white-space: pre-wrap;
  line-height: 1.5;
}

.log-list { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--text-secondary); }
.log-item-time { color: var(--text); font-weight: 600; }

.comment-form { display: flex; gap: 10px; }
.comment-form textarea { flex: 1; min-height: 44px; }

/* ===========================
   ADMIN TABLES
   =========================== */
.admin-table-wrap { overflow-x: auto; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.admin-table th,
.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
  transition: background var(--transition), border-color var(--transition);
}
.admin-table th {
  color: var(--text-tertiary);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.admin-table tr:hover td {
  background: var(--bg-hover);
}
.admin-table select,
.admin-table input[type="text"] {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 12px;
  background: var(--bg-input);
  color: var(--text);
  transition: all var(--transition);
  outline: none;
}
.admin-table select:focus,
.admin-table input[type="text"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}
.admin-table-actions { display: flex; gap: 6px; white-space: nowrap; }
.row-pending { background: var(--warning-bg); }

.inline-form {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  align-items: center;
}
.inline-form input[type="text"] {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  width: 280px;
  background: var(--bg-input);
  color: var(--text);
  outline: none;
  transition: all var(--transition);
}
.inline-form input[type="text"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.inline-form-tight { display: flex; gap: 6px; align-items: center; }

/* ===========================
   USER CARDS (Admin)
   =========================== */
.user-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.user-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all var(--transition);
}
.user-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent-soft);
}
.user-card.is-pending {
  border-left: 3px solid var(--warning);
}
.user-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.user-card-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #00cec9);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700;
  flex-shrink: 0;
}
.user-card-info { flex: 1; min-width: 0; }
.user-card-name {
  font-size: 15px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-card-email {
  font-size: 12px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-card-date {
  font-size: 11px;
  color: var(--text-tertiary);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.status-badge-pending { background: var(--warning-bg); color: var(--warning); }
.status-badge-active  { background: var(--success-bg); color: var(--success); }
.status-badge-disabled { background: var(--danger-bg); color: var(--danger); }

.user-card-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0;
}
.user-card-field label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.user-card-field select {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 12px;
  background: var(--bg-input);
  color: var(--text);
  outline: none;
  transition: all var(--transition);
}
.user-card-field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.user-card-actions {
  display: flex;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.user-card-actions .btn { flex: 1; font-size: 12px; }

/* ===========================
   CALENDAR
   =========================== */
.calendar-container {
  background: var(--bg-column);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: background var(--transition), border-color var(--transition);
}

.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
}
.calendar-nav h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  min-width: 200px;
  text-align: center;
  letter-spacing: -0.01em;
}
.calendar-nav-btns {
  display: flex;
  gap: 6px;
}

.calendar-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.calendar-filters select {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 12px;
  background: var(--bg-input);
  color: var(--text);
  outline: none;
  transition: all var(--transition);
}
.calendar-filters select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.calendar-day-header {
  background: var(--bg-hover);
  padding: 10px 8px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.calendar-day {
  background: var(--bg-card);
  min-height: 110px;
  padding: 6px;
  position: relative;
  transition: background var(--transition);
  cursor: default;
}
.calendar-day:hover {
  background: var(--bg-hover);
}
.calendar-day.other-month {
  background: var(--cal-other-month);
}
.calendar-day.other-month .calendar-day-number {
  color: var(--text-tertiary);
}
.calendar-day.today {
  background: var(--cal-today);
}
.calendar-day.today .calendar-day-number {
  background: var(--accent);
  color: #fff;
}

.calendar-day-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.calendar-tasks {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.calendar-task-item {
  font-size: 10px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition);
  color: #fff;
  text-shadow: 0 1px 1px rgba(0,0,0,0.2);
  line-height: 1.6;
}
.calendar-task-item:hover {
  transform: scale(1.04);
  box-shadow: var(--shadow-sm);
}
.calendar-task-more {
  font-size: 10px;
  color: var(--text-secondary);
  text-align: center;
  padding: 1px 4px;
  cursor: pointer;
  font-weight: 600;
}
.calendar-task-more:hover {
  color: var(--accent);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
  .board { grid-template-columns: 1fr 1fr; }
  .user-cards-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .sidebar { width: 220px; }
  .main-content { padding: 20px; }
  .board { grid-template-columns: 1fr; }
  .board-header { flex-direction: column; align-items: stretch; gap: 12px; }
  .board-header h1 { font-size: 20px; }
  .modal { max-width: 95vw; padding: 24px; margin: 16px; }
  .modal-row { flex-direction: column; gap: 0; }
  .calendar-grid { font-size: 10px; }
  .calendar-day { min-height: 80px; }
  .calendar-nav h2 { font-size: 16px; min-width: 140px; }
}

@media (max-width: 600px) {
  .sidebar { display: none; }
  .main-content { padding: 16px; }
  .auth-card { padding: 28px; margin: 16px; }
}

/* ===========================
   RICH CALENDAR ENHANCEMENTS
   =========================== */

/* Calendar Layout with Sidebar */
.calendar-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-top: 16px;
}

.calendar-backlog {
  flex: 0 0 280px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 800px;
  overflow-y: auto;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.calendar-backlog h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calendar-backlog .badge {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
}

.backlog-hint {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0;
}

.backlog-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100px; /* droppable area */
}

/* Calendar Grid Adjustments */
.calendar-grid {
  flex: 1;
  min-width: 0;
}

/* Drag and Drop Effects */
.calendar-day.drag-over,
.calendar-backlog.drag-over {
  background-color: var(--accent-soft);
  border-color: var(--accent);
}

.calendar-task-item.dragging {
  opacity: 0.5;
  transform: scale(0.95);
}

.calendar-day.loading,
.calendar-backlog.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Rich Calendar Chips */
.calendar-task-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 11px;
  color: var(--text);
  cursor: grab;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
  transition: transform var(--transition), box-shadow var(--transition);
}

.calendar-task-item:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  border-color: var(--border-light);
}

.calendar-task-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--task-color, var(--accent));
}

.ct-icon {
  font-size: 10px;
  flex-shrink: 0;
}

.ct-title {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
  margin-left: 2px;
}

.ct-avatar {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 600;
  flex-shrink: 0;
}

/* ===========================
   RICH USERS ENHANCEMENTS
   =========================== */

/* Users Toolbar */
.users-toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.users-search {
  position: relative;
  display: flex;
  align-items: center;
}

.users-search span {
  position: absolute;
  left: 10px;
  font-size: 14px;
  color: var(--text-tertiary);
  pointer-events: none;
}

.users-search input {
  padding: 8px 12px 8px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--text);
  font-size: 14px;
  width: 250px;
  outline: none;
  transition: all var(--transition);
}

.users-search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.users-toolbar select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--text);
  font-size: 14px;
  outline: none;
  cursor: pointer;
  transition: all var(--transition);
}

.users-toolbar select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* User Card Stats */
.user-card-stats {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px;
  background: var(--bg-hover);
  border-radius: var(--radius-sm);
  justify-content: space-around;
}

.user-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.user-stat-icon {
  font-size: 16px;
}

.user-stat-val {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.user-stat.overdue .user-stat-val {
  color: var(--danger);
}

@media (max-width: 1024px) {
  .calendar-layout {
    flex-direction: column;
  }
  .calendar-backlog {
    flex: none;
    width: 100%;
    max-height: 250px;
  }
}

/* ===========================
   TOAST BİLDİRİMLERİ
   =========================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-modal);
  color: var(--text);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  max-width: 360px;
  animation: toastIn 0.25s cubic-bezier(0.4,0,0.2,1);
}
.toast.hide { opacity: 0; transform: translateY(8px); transition: all 0.3s; }
.toast-icon { font-weight: 700; }
.toast-success .toast-icon { color: var(--success); }
.toast-error .toast-icon { color: var(--danger); }
.toast-warning .toast-icon { color: var(--warning); }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===========================
   BİLDİRİM PANELİ (Sidebar)
   =========================== */
.sidebar-notif { position: relative; }
.sidebar-notif-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  transition: all var(--transition);
  text-align: left;
}
.sidebar-notif-btn:hover { background: var(--bg-hover); color: var(--text); }
.notif-badge {
  margin-left: auto;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 10px;
  padding: 1px 7px;
  min-width: 18px;
  text-align: center;
}
.notif-panel[hidden] { display: none; }
.notif-panel {
  position: fixed;
  left: calc(var(--sidebar-w) + 10px);
  bottom: 24px;
  width: 320px;
  max-height: 420px;
  background: var(--bg-modal);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalIn 0.2s ease-out;
}
.notif-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
}
.notif-mark-all {
  border: none;
  background: none;
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.notif-mark-all:hover { text-decoration: underline; }
.notif-list { overflow-y: auto; }
.notif-item {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background var(--transition);
}
.notif-item:hover { background: var(--bg-hover); }
.notif-item.unread { background: var(--accent-soft); }
.notif-item-icon { font-size: 15px; flex-shrink: 0; }
.notif-item-body { min-width: 0; }
.notif-item-msg { font-size: 12px; line-height: 1.45; }
.notif-item-time { font-size: 10px; color: var(--text-tertiary); margin-top: 3px; }
.notif-empty {
  padding: 24px 16px;
  text-align: center;
  font-size: 12px;
  color: var(--text-tertiary);
}
@media (max-width: 768px) {
  .notif-panel { left: 228px; width: 280px; }
}
@media (max-width: 600px) {
  .notif-panel { left: 12px; right: 12px; width: auto; }
}

/* ===========================
   PANO ARAÇ ÇUBUĞU (Filtreler)
   =========================== */
.board-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.board-toolbar .users-search input { width: 220px; }
.board-toolbar select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--text);
  font-size: 13px;
  outline: none;
  cursor: pointer;
  transition: all var(--transition);
}
.board-toolbar select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.btn-toggle.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
  font-weight: 600;
}
.board-column-empty {
  font-size: 12px;
  color: var(--text-tertiary);
  text-align: center;
  padding: 20px 8px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
}

/* Termin rozetleri */
.task-due.due-soon { color: var(--warning); font-weight: 600; }
.task-badges {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  color: var(--text-secondary);
}
.task-badge-checklist.complete { color: var(--success); }

/* ===========================
   DASHBOARD (GENEL BAKIŞ)
   =========================== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all var(--transition);
}
.kpi-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.kpi-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  background: var(--accent-soft);
  flex-shrink: 0;
}
.kpi-card.kpi-danger .kpi-icon { background: var(--danger-bg); }
.kpi-card.kpi-success .kpi-icon { background: var(--success-bg); }
.kpi-card.kpi-warning .kpi-icon { background: var(--warning-bg); }
.kpi-value { font-size: 26px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
.kpi-card.kpi-danger .kpi-value { color: var(--danger); }
.kpi-label { font-size: 11px; color: var(--text-secondary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

.dash-panels {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  align-items: start;
}
.dash-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: background var(--transition), border-color var(--transition);
}
.dash-panel + .dash-panel { margin-top: 16px; }
.dash-panel-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dash-panel-title .badge {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
}

.upcoming-day { margin-bottom: 14px; }
.upcoming-day-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}
.upcoming-day-label.is-today { color: var(--accent); }
.upcoming-day .calendar-task-item { cursor: pointer; margin-bottom: 4px; }

.workload-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.workload-name {
  flex: 0 0 130px;
  font-size: 12px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.workload-bar-track {
  flex: 1;
  height: 8px;
  background: var(--bg-hover);
  border-radius: 4px;
  overflow: hidden;
}
.workload-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), #00cec9);
  transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
}
.workload-count { flex: 0 0 24px; text-align: right; font-size: 12px; font-weight: 600; }

.activity-feed { display: flex; flex-direction: column; }
.activity-item {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 12px;
  line-height: 1.5;
}
.activity-item:last-child { border-bottom: none; }
.activity-icon { flex-shrink: 0; }
.activity-body { min-width: 0; color: var(--text-secondary); }
.activity-body strong { color: var(--text); font-weight: 600; }
.activity-task {
  color: var(--accent);
  cursor: pointer;
  font-weight: 500;
}
.activity-task:hover { text-decoration: underline; }
.activity-time { font-size: 10px; color: var(--text-tertiary); margin-top: 1px; }

@media (max-width: 1024px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-panels { grid-template-columns: 1fr; }
}

/* ===========================
   TAKVİM EK GELİŞTİRMELER
   =========================== */
.calendar-day-add {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: none;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.calendar-day:hover .calendar-day-add { display: flex; }
.calendar-day-add:hover { background: var(--accent); color: #fff; }
.calendar-task-item.ct-done { opacity: 0.55; }
.calendar-task-item.ct-done .ct-title { text-decoration: line-through; }

/* ===========================
   CHECKLIST (Alt Görevler)
   =========================== */
.checklist-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.checklist-progress-track {
  flex: 1;
  height: 6px;
  background: var(--bg-hover);
  border-radius: 3px;
  overflow: hidden;
}
.checklist-progress-fill {
  height: 100%;
  background: var(--success);
  border-radius: 3px;
  transition: width 0.4s ease;
}
.checklist-progress-label { font-size: 11px; font-weight: 600; color: var(--text-secondary); }
.checklist-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.checklist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: var(--radius-xs);
  background: var(--bg-hover);
  transition: background var(--transition);
}
.checklist-item input[type="checkbox"] {
  width: 15px; height: 15px;
  accent-color: var(--success);
  cursor: pointer;
  flex-shrink: 0;
}
.checklist-item-title { flex: 1; font-size: 13px; }
.checklist-item.done .checklist-item-title {
  text-decoration: line-through;
  color: var(--text-tertiary);
}
.checklist-item-delete {
  border: none;
  background: none;
  color: var(--text-tertiary);
  font-size: 13px;
  cursor: pointer;
  padding: 2px 4px;
}
.checklist-item-delete:hover { color: var(--danger); }
.checklist-add-form { display: flex; gap: 8px; }
.checklist-add-form input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 12px;
  background: var(--bg-input);
  color: var(--text);
  outline: none;
}
.checklist-add-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }

/* ===========================
   DOSYA EKLERİ
   =========================== */
.attachment-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.attachment-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 12px;
  transition: all var(--transition);
}
.attachment-item:hover { background: var(--bg-hover); }
.attachment-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
  color: var(--accent);
}
.attachment-meta { font-size: 10px; color: var(--text-tertiary); white-space: nowrap; }
.attachment-delete {
  border: none;
  background: none;
  color: var(--text-tertiary);
  cursor: pointer;
  font-size: 13px;
}
.attachment-delete:hover { color: var(--danger); }
.attachment-upload { display: flex; align-items: center; gap: 10px; }
.attachment-upload input[type="file"] { display: none; }
.attachment-hint { font-size: 10px; color: var(--text-tertiary); }

/* ===========================
   RAPORLAR
   =========================== */
.report-filters {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.report-filter-field label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.report-filter-field input,
.report-filter-field select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: all var(--transition);
}
.report-filter-field input:focus,
.report-filter-field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.report-section { margin-bottom: 24px; }
.dist-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.dist-label { flex: 0 0 110px; font-size: 12px; font-weight: 500; }
.dist-bar-track { flex: 1; height: 8px; background: var(--bg-hover); border-radius: 4px; overflow: hidden; }
.dist-bar-fill { height: 100%; border-radius: 4px; }
.dist-count { flex: 0 0 30px; text-align: right; font-size: 12px; font-weight: 600; }

/* ===========================
   PROFİL SAYFASI
   =========================== */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 16px;
  max-width: 900px;
}
.settings-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: background var(--transition), border-color var(--transition);
}
.settings-card h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 16px;
}
