/* Modern Light Theme - Okul Kayıt Planlayıcı */

:root {
  --bg: #f8fafc;
  --bg-secondary: #f1f5f9;
  --card: #ffffff;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --text: #0f172a;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --primary-light: #dbeafe;
  --success: #10b981;
  --success-light: #d1fae5;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --purple: #8b5cf6;
  --purple-light: #ede9fe;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* { 
  box-sizing: border-box; 
  margin: 0;
  padding: 0;
}

body {
  margin: 0; 
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { 
  color: var(--primary); 
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover { 
  color: var(--primary-dark); 
}

.container { 
  max-width: 1400px; 
  margin: 0 auto; 
  padding: 24px 20px; 
}

/* Header */
.header { 
  margin-bottom: 20px;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 12px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-brand:hover .logo-icon {
  transform: scale(1.05);
  transition: transform 0.2s ease;
}

.header-user-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-bottom {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border-light);
}

.h1 { 
  font-size: 28px; 
  font-weight: 700; 
  color: var(--text);
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.header-subtitle {
  color: var(--text-secondary);
  font-size: 13px;
  margin: 4px 0 0 0;
  font-weight: 400;
}

.logo-icon {
  font-size: 32px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
  transition: transform 0.2s ease;
}

/* Navigation */
.nav { 
  display: flex; 
  gap: 6px; 
  flex-wrap: wrap;
  align-items: center;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: var(--card);
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.user-info:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
  border: 2px solid white;
}

.user-name {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.notification-badge {
  position: relative;
  cursor: pointer;
  font-size: 22px;
  padding: 10px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.notification-badge:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.notification-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--danger);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.nav-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
  margin: 0 4px;
}

/* Notification Panel */
.notification-panel {
  position: fixed;
  top: 80px;
  right: 20px;
  width: 400px;
  max-height: 600px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  z-index: 1000;
  display: none;
  flex-direction: column;
}

.notification-panel.active {
  display: flex;
}

.notification-panel-header {
  padding: 20px;
  border-bottom: 2px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notification-panel-header h3 {
  margin: 0;
  font-size: 18px;
  color: var(--text);
}

.notification-panel-body {
  flex: 1;
  overflow-y: auto;
  max-height: 500px;
}

.notification-item {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  transition: all 0.2s ease;
  cursor: pointer;
}

.notification-item:hover {
  background: var(--bg-secondary);
}

.notification-item.unread {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
}

.notification-item-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 8px;
}

.notification-item-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  flex: 1;
}

.notification-item-time {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  margin-left: 8px;
}

.notification-item-message {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.notification-item-type {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 8px;
}

.notification-type-due_soon {
  background: var(--warning-light);
  color: var(--warning);
}

.notification-type-start_soon {
  background: var(--success-light);
  color: var(--success);
}

.notification-type-overdue {
  background: var(--danger-light);
  color: var(--danger);
}

.notification-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
}

.notification-empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.mark-all-read {
  font-size: 12px;
  color: var(--primary);
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
}

.mark-all-read:hover {
  text-decoration: underline;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 8px;
  background: var(--bg-secondary);
  color: var(--text);
  border: 1px solid var(--border);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn:not(.btn-primary):not(.btn-danger):not(.btn-sm) {
  background: var(--bg-secondary);
  color: var(--text);
  border-color: var(--border);
}

.btn:hover { 
  background: var(--bg-secondary);
  color: var(--text);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--purple));
  color: white;
  font-weight: 600;
  border: none;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  margin-bottom: 24px;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-light);
}

.card h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

/* Grid */
.grid { 
  display: grid; 
  gap: 24px; 
}

.grid-2 { 
  grid-template-columns: repeat(2, minmax(0, 1fr)); 
}

.grid-3 { 
  grid-template-columns: repeat(3, minmax(0, 1fr)); 
}

/* Tables */
/* Table Wrapper - Responsive scroll */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  margin: 0;
}

.table-wrapper::-webkit-scrollbar {
  height: 8px;
}

.table-wrapper::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

.table { 
  width: 100%; 
  border-collapse: separate;
  border-spacing: 0;
  min-width: 800px; /* Minimum genişlik */
}

.table th, .table td { 
  padding: 12px 14px; 
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.table th {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table tbody tr {
  transition: background 0.2s ease;
}

.table tbody tr:hover {
  background: var(--bg-secondary);
}

/* Badges */
.badge { 
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 500;
  border: 1px solid;
  white-space: nowrap;
}

/* Task List (Alternative to Table) */
.task-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.task-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all 0.2s ease;
  gap: 16px;
}

.task-list-item:hover {
  background: var(--card);
  box-shadow: var(--shadow-sm);
  border-color: var(--primary-light);
}

.task-list-main {
  flex: 1;
  min-width: 0;
}

.task-list-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.task-list-title strong {
  font-size: 15px;
  color: var(--text);
}

.task-category-tag {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid;
  white-space: nowrap;
}

.task-list-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
}

.task-meta-item {
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.task-list-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

/* Accordion styles */
.accordion-toggle {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 12px;
  cursor: pointer;
}

.subtasks-accordion {
  margin: 6px 0 10px 28px;
  border-left: 2px dashed var(--border-light);
  padding-left: 12px;
  display: none;
}

.subtask .task-list-title strong {
  font-weight: 600;
}

/* Table specific styles */
.table-cell-text {
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
}

.table tr:hover {
  background: var(--bg-secondary);
  transition: background 0.2s ease;
}

.table tbody tr:hover td {
  background: transparent;
}

.inactive-row {
  opacity: 0.6;
}

.inactive-row:hover {
  opacity: 0.8;
}

/* Button sizes */
.btn-sm {
  padding: 6px 10px;
  font-size: 13px;
  min-width: auto;
}

.btn-danger {
  background: var(--danger-light);
  color: var(--danger);
  border-color: var(--danger);
}

.btn-danger:hover {
  background: var(--danger);
  color: white;
  border-color: var(--danger);
}

/* Badge variants */
.badge-success {
  background: var(--success-light);
  color: var(--success);
  border-color: var(--success);
}

.badge-inactive {
  background: var(--bg-secondary);
  color: var(--text-muted);
  border-color: var(--border);
}

.status-not_started { 
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border-color: var(--border);
}

.status-planned { 
  background: var(--purple-light);
  color: var(--purple);
  border-color: var(--purple);
}

.status-in_progress { 
  background: var(--primary-light);
  color: var(--primary-dark);
  border-color: var(--primary);
}

.status-waiting { 
  background: var(--warning-light);
  color: var(--warning);
  border-color: var(--warning);
}

.status-approval { 
  background: #ede9fe;
  color: #8b5cf6;
  border-color: #a78bfa;
}

.status-done { 
  background: var(--success-light);
  color: var(--success);
  border-color: var(--success);
}

.status-cancelled { 
  background: #f3f4f6;
  color: #6b7280;
  border-color: #d1d5db;
}

/* Durum pill stilleri */
.status-pill.status-not_started { 
  background: var(--text-secondary);
  color: white;
}

.status-pill.status-planned { 
  background: var(--purple);
  color: white;
}

.status-pill.status-in_progress { 
  background: var(--primary);
  color: white;
}

.status-pill.status-waiting { 
  background: var(--warning);
  color: white;
}

.status-pill.status-approval { 
  background: #8b5cf6;
  color: white;
}

.status-pill.status-done { 
  background: var(--success);
  color: white;
}

.status-pill.status-cancelled { 
  background: #6b7280;
  color: white;
}

/* Forms */
.input, select, textarea {
  width: 100%;
  background: white;
  border: 2px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 10px 14px;
  outline: none;
  font-size: 14px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.select-multiple {
  padding: 8px;
}

.select-multiple option {
  padding: 8px 12px;
  border-radius: 4px;
  margin-bottom: 2px;
  cursor: pointer;
}

.select-multiple option:hover {
  background: var(--primary-light);
}

.select-multiple option:checked {
  background: var(--primary);
  color: white;
}

.text-muted {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 12px;
}

.input:focus, select:focus, textarea:focus { 
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.input::placeholder {
  color: var(--text-muted);
}

label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.form-row { 
  display: grid; 
  gap: 16px; 
  grid-template-columns: 1fr 1fr; 
  margin-bottom: 16px; 
}

.form-row-1 { 
  grid-template-columns: 1fr;
  margin-bottom: 16px;
}

/* Utilities */
.kv { 
  display: flex; 
  gap: 8px; 
  align-items: center;
  color: var(--text-secondary);
  font-size: 14px;
}

.kv strong { 
  color: var(--text);
  font-weight: 600;
}

.footer { 
  color: var(--text-muted); 
  font-size: 13px; 
  text-align: center; 
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 48px 20px;
  font-style: italic;
}

/* Timeline / Gantt */
.timeline { 
  overflow-x: auto; 
  padding: 0;
  background: var(--card);
  border-radius: 0;
  position: relative;
}

.timeline-grid {
  display: grid; 
  gap: 0;
  grid-template-columns: 380px repeat(var(--cols), minmax(100px, 1fr));
  min-width: 100%;
  position: relative;
}

.timeline .col-header {
  font-size: 12px; 
  color: var(--text-secondary);
  text-align: center;
  padding: 12px 8px;
  border-bottom: 2px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  position: sticky; 
  top: 0; 
  background: var(--bg-secondary);
  font-weight: 600;
}

.task-row { 
  display: contents; 
}

.task-title { 
  padding: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: var(--bg-secondary);
  border-radius: 0;
  margin: 0;
}

.bar {
  height: 32px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  border: none;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  width: 100%;
}

.bar:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.bar.waiting { 
  background: linear-gradient(135deg, var(--warning), #d97706);
}

.bar.in-progress { 
  background: linear-gradient(135deg, var(--primary), #2563eb);
}

.bar.done { 
  background: linear-gradient(135deg, var(--success), #059669);
}

.legend { 
  display: flex;
  gap: 16px;
  align-items: center;
  color: var(--text-secondary);
  font-size: 13px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 12px;
  background: var(--bg-secondary);
  border-radius: 8px;
}

.legend .kv {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend .dot { 
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: var(--shadow-sm);
}

/* Dashboard Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--purple));
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat-value {
  font-size: 42px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.stat-todo::before { background: linear-gradient(90deg, var(--text-muted), var(--text-secondary)); }
.stat-progress::before { background: linear-gradient(90deg, var(--primary), #60a5fa); }
.stat-done::before { background: linear-gradient(90deg, var(--success), #34d399); }
.stat-blocked::before { background: linear-gradient(90deg, var(--danger), #f87171); }
.stat-overdue::before { background: linear-gradient(90deg, var(--warning), #fbbf24); }

/* Progress Bar */
.progress-container {
  width: 100%;
  height: 32px;
  background: var(--bg-secondary);
  border-radius: 16px;
  overflow: hidden;
  margin: 20px 0;
  border: 1px solid var(--border);
  position: relative;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--purple));
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
  position: relative;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.progress-text {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-top: 12px;
}

/* Task Lists */
.task-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.task-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  transition: all 0.3s ease;
  position: relative;
}

.task-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary);
  border-radius: 12px 0 0 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.task-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.task-item:hover::before {
  opacity: 1;
}

.task-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 12px;
}

.task-item-title {
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 15px;
}

.task-item-title a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.task-item-title a:hover {
  color: var(--primary);
}

.task-item-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.task-overdue {
  border-left: 4px solid var(--danger);
  background: linear-gradient(90deg, var(--danger-light), var(--card));
}

.task-overdue::before {
  background: var(--danger);
  opacity: 1;
}

.overdue-badge {
  color: var(--danger);
  font-weight: 600;
  background: var(--danger-light);
  padding: 4px 8px;
  border-radius: 6px;
}

/* Category Stats */
.category-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.category-stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: 10px;
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
}

.category-stat-item:hover {
  background: var(--card);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.category-stat-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: var(--text);
}

.color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: var(--shadow-sm);
  border: 2px solid white;
}

.category-stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

/* Activity List */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
  max-height: 500px;
  overflow-y: auto;
}

.activity-item {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: var(--bg-secondary);
  border-radius: 10px;
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
}

.activity-item:hover {
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.activity-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.activity-content {
  flex: 1;
}

.activity-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}

.activity-text a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.activity-text a:hover {
  text-decoration: underline;
}

.activity-time {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.activity-details {
  color: var(--text-secondary);
  font-style: italic;
}

/* Task Detail Page */
.task-detail-header {
  margin-bottom: 24px;
}

.task-detail-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.task-detail-title h2 {
  margin: 0;
  font-size: 28px;
  color: var(--text);
}

.task-detail-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
  padding: 20px;
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid var(--border-light);
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.meta-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.meta-item span:not(.meta-label) {
  color: var(--text);
  font-weight: 500;
}

.priority-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
}

.priority-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.05);
}

.priority-label {
  font-size: 13px;
}

.priority-alert {
  display: inline-block;
  font-size: 9px;               /* gantt-category-badge ile uyumlu */
  padding: 2px 6px;             /* gantt-category-badge ile uyumlu */
  border-radius: 4px;           /* gantt-category-badge ile uyumlu */
  text-transform: uppercase;    /* gantt-category-badge ile uyumlu */
  letter-spacing: 0.3px;        /* okunabilirlik */
  font-weight: 600;
  color: white;
  background: var(--danger);    /* varsayılan kırmızı (Acil) */
  width: auto;
  max-width: max-content;
}

/* Öncelik renkleri: index.php, tasks.php ve task_detail.php için ortak */
.priority-alert[data-level="1"] { background: #ef4444; } /* Acil */
.priority-alert[data-level="2"] { background: #f59e0b; } /* Yüksek */
.priority-alert[data-level="3"] { background: #10b981; } /* Orta */
.priority-alert[data-level="4"] { background: #3b82f6; } /* Düşük */
.priority-alert[data-level="5"] { background: #6b7280; } /* Çok Düşük */

/* Öncelik seviyeleri: 1 en yüksek, 5 en düşük */
.priority-l1 { color: #ef4444; background: #fee2e2; border-color: #fecaca; }
.priority-l2 { color: #f59e0b; background: #fef3c7; border-color: #fde68a; }
.priority-l3 { color: #10b981; background: #d1fae5; border-color: #a7f3d0; }
.priority-l4 { color: #3b82f6; background: #dbeafe; border-color: #bfdbfe; }
.priority-l5 { color: #6b7280; background: #f3f4f6; border-color: #e5e7eb; }

.task-description {
  margin: 16px 0;
  padding: 20px;
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid var(--border-light);
}

.task-description h4 {
  margin-top: 0;
  color: var(--primary);
  margin-bottom: 12px;
}

.task-description p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.task-assignees {
  margin: 16px 0;
}

.task-assignees h4 {
  margin-bottom: 12px;
}

.assignee-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.assignee-badge {
  padding: 8px 14px;
  background: var(--primary-light);
  border: 1px solid var(--primary);
  border-radius: 8px;
  font-size: 14px;
  color: var(--primary-dark);
  font-weight: 500;
}

.task-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* Subtasks */
.subtask-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.subtask-item {
  padding: 14px;
  background: var(--bg-secondary);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.subtask-item:hover {
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.subtask-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 12px;
}

.subtask-header a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.subtask-header a:hover {
  color: var(--primary);
}

.subtask-meta {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* Comments */
.comment-form {
  margin-bottom: 20px;
}

.comment-form textarea {
  margin-bottom: 12px;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.comment-item {
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: 10px;
  border-left: 4px solid var(--success);
  transition: all 0.2s ease;
}

.comment-item:hover {
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.comment-header strong {
  color: var(--text);
  font-weight: 600;
}

.comment-time {
  font-size: 12px;
  color: var(--text-muted);
}

.comment-text {
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Attachments */
.attachment-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.attachment-item {
  display: flex;
  gap: 14px;
  padding: 14px;
  background: var(--bg-secondary);
  border-radius: 10px;
  align-items: center;
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
}

.attachment-item:hover {
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.attachment-icon {
  font-size: 28px;
}

.attachment-info {
  flex: 1;
}

.attachment-name a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.attachment-name a:hover {
  color: var(--primary);
}

.attachment-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Collapsible */
.collapsible {
  margin-top: 20px;
  border-top: 2px solid var(--border-light);
  padding-top: 20px;
}

.collapsible summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--primary);
  padding: 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
  background: var(--primary-light);
  border: 1px solid var(--primary);
}

.collapsible summary:hover {
  background: var(--primary);
  color: white;
}

.form-compact {
  margin-top: 16px;
}

/* Templates */
.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.template-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.template-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.template-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.template-header h3 {
  margin: 0;
  color: var(--primary);
  border: none;
  padding: 0;
}

.template-description {
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.7;
}

.template-preview {
  margin: 20px 0;
  padding: 20px;
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid var(--border-light);
}

.template-preview h4 {
  margin-top: 0;
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.template-task-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.template-task-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
  color: var(--text);
}

.template-task-list li:last-child {
  border-bottom: none;
}

.task-duration {
  color: var(--text-muted);
  font-size: 12px;
  margin-left: 8px;
}

.more-tasks {
  color: var(--text-muted);
  font-style: italic;
}

.template-form {
  margin-top: 20px;
}

/* Milestones */
.milestone-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.milestone-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: var(--card);
  border-radius: 12px;
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.milestone-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.milestone-pending {
  border-left-color: var(--text-muted);
}

.milestone-achieved {
  border-left-color: var(--success);
}

.milestone-missed {
  border-left-color: var(--danger);
}

.milestone-header {
  display: flex;
  gap: 16px;
  align-items: center;
  flex: 1;
}

.milestone-icon {
  font-size: 32px;
}

.milestone-info h4 {
  margin: 0 0 8px 0;
  font-size: 18px;
  color: var(--text);
}

.milestone-info p {
  margin: 0 0 8px 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

.milestone-meta {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.milestone-status-pending {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border-color: var(--border);
}

.milestone-status-achieved {
  background: var(--success-light);
  color: var(--success);
  border-color: var(--success);
}

.milestone-status-missed {
  background: var(--danger-light);
  color: var(--danger);
  border-color: var(--danger);
}

.milestone-actions {
  display: flex;
  gap: 8px;
}

/* Reports */
.export-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.report-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.report-stat-item {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
}

.report-stat-item:hover {
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.report-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.report-stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
}

.report-table {
  margin-top: 16px;
}

.report-table th {
  background: var(--bg-secondary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--text-secondary);
}

.mini-progress {
  width: 100%;
  height: 10px;
  background: var(--bg-secondary);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 4px;
  display: inline-block;
  vertical-align: middle;
  max-width: 100px;
  margin-right: 8px;
  border: 1px solid var(--border);
}

.mini-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--purple));
  transition: width 0.3s ease;
}

/* Print Styles */
@media print {
  .header .nav, .export-buttons, .footer {
    display: none;
  }
  .card {
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
  body {
    background: white;
    color: black;
  }
}

/* Compact Filters Section */
.compact-filters-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.filter-accordion-compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  padding: 8px 0;
  transition: all 0.2s ease;
}

.filter-accordion-compact:hover {
  color: var(--primary);
}

.filter-toggle-text {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.filter-active-indicator {
  color: var(--primary);
  font-size: 12px;
  font-weight: 500;
  margin-left: 6px;
}

.filter-content-compact {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  margin-top: 0;
}

.filter-content-compact.active {
  max-height: 200px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.filter-grid-compact {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.input-compact {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  background: white;
  min-width: 130px;
  flex: 1;
}

.input-compact:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 2px var(--primary-light);
}

/* Timeline Page Specific Styles */
.timeline-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.timeline-stat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.timeline-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.timeline-stat-icon {
  font-size: 26px;
  flex-shrink: 0;
}

.timeline-stat-content {
  flex: 1;
}

.timeline-stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.timeline-stat-label {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 3px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Filter Card */
.filter-card {
  margin-bottom: 18px;
  padding: 16px 20px;
}

.filter-accordion {
  cursor: pointer;
  user-select: none;
}

.filter-accordion:hover h3 {
  color: var(--primary);
}

.filter-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.filter-content.active {
  max-height: 500px;
  margin-top: 20px;
}

.filter-toggle-icon {
  display: inline-block;
  transition: transform 0.3s ease;
  margin-left: 8px;
  font-size: 14px;
}

.filter-toggle-icon.active {
  transform: rotate(180deg);
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-header h3 {
  margin: 0;
  border: none;
  padding: 0;
  font-size: 16px;
  font-weight: 600;
}

.btn-link {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-size: 13px;
  text-decoration: underline;
  padding: 0;
}

.btn-link:hover {
  color: var(--primary-dark);
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  align-items: end;
}

.filter-item label {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
}

.filter-actions {
  display: flex;
  align-items: flex-end;
}

.filter-actions .btn {
  width: 100%;
  padding: 8px 16px;
  font-size: 14px;
}

/* Category Filter Pills */
.category-filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 12px;
  background: var(--bg-secondary);
  border-radius: 12px;
}

/* Priority filter pills */
.filter-pills-container {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.filter-group-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-group-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.priority-filter-group, .status-filter-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.clear-filters-btn {
  background: var(--danger-light) !important;
  color: var(--danger) !important;
  border: 1px solid var(--danger) !important;
  font-weight: 600;
}

.clear-filters-btn:hover {
  background: var(--danger) !important;
  color: white !important;
}

.priority-pill, .status-pill {
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 500;
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.priority-pill:hover, .status-pill:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  opacity: 0.9;
}

.priority-pill.active, .status-pill.active {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.4), var(--shadow-md);
  transform: scale(1.02);
  border-color: rgba(255, 255, 255, 0.8);
  font-weight: 700;
}

.category-pill {
  padding: 7px 14px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.category-pill:hover {
  border-color: var(--pill-color, var(--primary));
  background: var(--card);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.category-pill.active {
  background: var(--pill-color, var(--primary));
  color: white;
  border-color: var(--pill-color, var(--primary));
  box-shadow: var(--shadow-sm);
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

/* Gantt Card */
.gantt-card {
  padding: 0;
  overflow: hidden;
}

.gantt-header {
  padding: 16px 20px;
  border-bottom: 2px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}

.gantt-header-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-width: 300px;
}

.gantt-header h3 {
  margin: 0;
  border: none;
  padding: 0;
  font-size: 17px;
}

.gantt-search-wrapper {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.gantt-search-input {
  flex: 1;
  min-width: 250px;
  max-width: 400px;
  padding: 8px 14px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  background: white;
  transition: all 0.2s ease;
}

.gantt-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
  outline: none;
}

.gantt-search-input::placeholder {
  color: var(--text-muted);
}

.my-tasks-btn {
  white-space: nowrap;
  transition: all 0.2s ease;
}

.my-tasks-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.search-no-results,
.search-results-count {
  grid-column: 1 / -1;
  padding: 8px 20px;
  text-align: center;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 12px;
}

.search-no-results {
  background: var(--warning-light);
  color: var(--warning-dark);
  border: 1px solid var(--warning);
}

.search-results-count {
  background: var(--success-light);
  color: var(--success-dark);
  border: 1px solid var(--success);
}

.gantt-header .legend {
  margin: 0;
  padding: 0;
  background: none;
  border-radius: 0;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: var(--shadow-sm);
}

/* Timeline Corner */
.timeline-corner {
  padding: 16px;
  background: var(--bg-secondary);
  border-right: 2px solid var(--border-light);
  border-bottom: 2px solid var(--border-light);
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-weight: 600;
  color: var(--text);
  position: sticky;
  left: 0;
  z-index: 10;
}

.timeline-corner small {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 4px;
}

/* Today Column */
.today-col {
  background: linear-gradient(180deg, var(--warning-light), rgba(254, 243, 199, 0.3)) !important;
  position: relative;
  border-left: 2px solid var(--warning) !important;
  border-right: 2px solid var(--warning) !important;
}

.today-marker {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--warning);
  margin-bottom: 4px;
  letter-spacing: 0.5px;
  background: white;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
}

.week-date {
  display: block;
  font-size: 12px;
  font-weight: 600;
}

/* Gantt Task Title */
.gantt-task-title {
  padding: 10px 14px;
  background: var(--bg-secondary);
  border-right: 2px solid var(--border-light);
  border-bottom: 2px solid var(--border);
  display: block;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s ease;
  position: sticky;
  left: 0;
  z-index: 5;
  min-height: 55px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gantt-task-title:hover {
  background: var(--card);
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.gantt-category-badge {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.gantt-task-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  line-height: 1.3;
  flex: 1;
  min-width: 0;
}

.gantt-task-assignees {
  display: flex;
  gap: 8px;
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 4px;
  align-items: center;
}

.gantt-task-meta {
  display: flex;
  gap: 8px;
  font-size: 10px;
  color: var(--text-muted);
  flex-wrap: wrap;
  align-items: center;
}

.gantt-task-dates {
  margin-left: auto;
}

.overdue-indicator {
  color: var(--danger);
  font-weight: 600;
}

/* Gantt Bar Cell */
.gantt-bar-cell {
  padding: 10px 6px;
  border-bottom: 2px solid var(--border);
  border-right: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  background: var(--card);
}

.gantt-empty-cell {
  border-bottom: 2px solid var(--border);
  border-right: 1px solid var(--border-light);
  min-height: 55px;
  background: var(--card);
}

.bar {
  position: relative;
  overflow: hidden;
  min-height: 32px;
}

.bar-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px;
  font-weight: 600;
  color: white;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  white-space: nowrap;
  pointer-events: none;
}

.task-row-overdue .gantt-task-title {
  border-left: 4px solid var(--danger);
  background: linear-gradient(90deg, var(--danger-light), var(--bg-secondary));
}

/* Subtask Toggle Button */
.gantt-task-name-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.subtask-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 14px;
  flex-shrink: 0;
  align-self: flex-start;
}

.subtask-toggle:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.subtask-toggle.active {
  background: var(--primary);
  color: white;
}

.toggle-icon {
  display: inline-block;
  transition: transform 0.2s ease;
}

.subtask-count {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 6px;
}

/* Subtasks Container */
.subtasks-container {
  display: none;
}

.subtask-row {
  opacity: 0.95;
}

.gantt-subtask-title {
  background: var(--card);
  border-left: 3px solid var(--primary-light);
  padding-left: 28px;
}

.gantt-subtask-title:hover {
  background: var(--bg-secondary);
}

.subtask-indicator {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  margin-right: 4px;
}

/* Gantt Milestones (Kilometre Taşları) */
.gantt-milestone {
  position: absolute;
  pointer-events: none;
  z-index: 10;
  top: 0;
  bottom: 0;
}

.milestone-line {
  position: absolute;
  left: 50%;
  top: 0;
  height: 100%;
  width: 3px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.8), rgba(139, 92, 246, 0.3));
  pointer-events: all;
  cursor: help;
  transition: all 0.3s ease;
}

.milestone-line:hover {
  width: 5px;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.6);
}

.milestone-line.milestone-achieved {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.8), rgba(16, 185, 129, 0.3));
}

.milestone-line.milestone-achieved:hover {
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.6);
}

.milestone-line.milestone-missed {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.8), rgba(239, 68, 68, 0.3));
}

.milestone-line.milestone-missed:hover {
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.6);
}

.milestone-label {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--purple);
  min-width: 150px;
  text-align: center;
  pointer-events: all;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 100;
}

.milestone-line.milestone-achieved + .milestone-label {
  border-color: var(--success);
}

.milestone-line.milestone-missed + .milestone-label {
  border-color: var(--danger);
}

.gantt-milestone:hover .milestone-label {
  opacity: 1;
}

.milestone-icon {
  font-size: 16px;
  display: block;
  margin-bottom: 4px;
}

.milestone-name {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.milestone-date {
  display: block;
  font-size: 10px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Simple Permission Fields */
.simple-radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.simple-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  text-transform: none;
  font-weight: 400;
  letter-spacing: normal;
}

.simple-radio input[type="radio"] {
  cursor: pointer;
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.simple-radio span {
  color: var(--text);
}

.simple-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  margin-top: 0;
  text-transform: none;
  font-weight: 400;
  letter-spacing: normal;
}

.simple-checkbox input[type="checkbox"] {
  cursor: pointer;
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.simple-checkbox span {
  color: var(--text);
}

.visibility-badge {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  margin-left: 6px;
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Compact Filters Mobile */
  .compact-filters-section {
    padding: 10px 12px;
  }
  .filter-grid-compact {
    flex-direction: column;
    gap: 6px;
  }
  .input-compact {
    width: 100%;
    min-width: auto;
  }
  
  .table {
    min-width: 600px; /* Mobilde daha küçük minimum */
  }
  .table-cell-text {
    max-width: 150px; /* Mobilde daha dar */
  }
  .table-actions {
    flex-wrap: wrap;
    gap: 4px;
  }
  .btn-sm {
    padding: 5px 8px;
    font-size: 12px;
  }
  .task-list-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .task-list-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .gantt-header-left {
    min-width: 100%;
  }
  .gantt-search-wrapper {
    flex-direction: column;
    align-items: stretch;
  }
  .gantt-search-input {
    min-width: 100%;
    max-width: 100%;
  }
  .my-tasks-btn {
    width: 100%;
  }
  .templates-grid {
    grid-template-columns: 1fr;
  }
  .header-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .header-user-section {
    width: 100%;
    justify-content: space-between;
  }
  .header-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav {
    width: 100%;
    flex-direction: column;
  }
  .nav .btn {
    width: 100%;
    justify-content: flex-start;
  }
  .task-detail-meta {
    grid-template-columns: 1fr;
  }
  .report-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .milestone-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .milestone-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .timeline-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .filter-grid {
    grid-template-columns: 1fr;
  }
  .category-filter-pills {
    flex-direction: column;
  }
  .category-pill {
    width: 100%;
    justify-content: center;
  }
  .gantt-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .timeline-corner {
    min-width: 200px;
  }
  .gantt-task-title {
    min-width: 200px;
  }
  .timeline-grid {
    grid-template-columns: 200px repeat(var(--cols), minmax(80px, 1fr));
  }
  .notification-panel {
    right: 10px;
    left: 10px;
    width: auto;
  }
}

/* ========================================
   SIDEBAR STYLES (Modüler Yapı)
   ======================================== */

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 240px;
  background: var(--card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transition: transform 0.3s ease;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Sidebar scrollbar */
.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Sidebar Header */
.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: opacity 0.2s;
}

.sidebar-brand:hover {
  opacity: 0.8;
}

.logo-icon {
  font-size: 32px;
  line-height: 1;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.2;
}

.sidebar-toggle {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 4px;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: none;
}

.sidebar-toggle:hover {
  background: var(--bg-secondary);
  color: var(--text);
}

/* Sidebar User */
.sidebar-user {
  padding: 8px 6px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.user-details {
  flex: 1;
  min-width: 0;
}

.user-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sidebar Navigation */
.sidebar-nav {
  flex: 1;
  padding: 12px 0;
  overflow-y: auto;
}


.sidebar-module-header {
  padding: 12px 20px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.module-icon {
  font-size: 14px;
}

.module-name {
  flex: 1;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-menu-item {
  position: relative;
}

.sidebar-menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
}

.sidebar-menu-link:hover {
  background: var(--bg-secondary);
  color: var(--text);
}

.sidebar-menu-item.active .sidebar-menu-link {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
}

.sidebar-menu-item.active .sidebar-menu-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary);
}

.menu-icon {
  font-size: 18px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.menu-label {
  flex: 1;
  font-size: 14px;
}

.submenu-arrow {
  font-size: 10px;
  transition: transform 0.2s ease;
}

/* Submenu */
.sidebar-submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.sidebar-submenu.active {
  max-height: 500px;
}

.sidebar-submenu-item {
  position: relative;
}

.sidebar-submenu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 20px 8px 52px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 13px;
}

.sidebar-submenu-link:hover {
  background: var(--bg-secondary);
  color: var(--text);
}

.sidebar-submenu-item.active .sidebar-submenu-link {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
}

.submenu-icon {
  font-size: 14px;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.submenu-label {
  flex: 1;
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-light);
}

.sidebar-logout {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  color: var(--danger);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 500;
}

.sidebar-logout:hover {
  background: var(--danger-light);
  color: var(--danger);
}

.logout-icon {
  font-size: 18px;
}

/* Sidebar Overlay (mobil için) */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
  display: block;
  opacity: 1;
}

/* Main Content Area (sidebar yanında) */
.main-content {
  margin-left: 240px;
  min-height: 100vh;
  transition: margin-left 0.3s ease;
}

/* Top Bar (Bildirimler için) */
.topbar {
  position: sticky;
  top: 0;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  transition: margin-left 0.3s ease;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* User Avatar */
.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
  position: relative;
}

.user-avatar:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

.avatar-initials {
  color: white;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Aktif Kullanıcılar Container */
.active-users-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 12px;
}

/* Küçük Avatar (Aktif Kullanıcılar için) */
.user-avatar-small {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.user-avatar-small:hover {
  transform: scale(1.15);
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.5);
}

.user-avatar-small .avatar-initials {
  font-size: 12px;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text);
  padding: 8px;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
  }
  
  .sidebar.active {
    transform: translateX(0);
  }
  
  .sidebar-toggle {
    display: block;
  }
  
  .main-content,
  .topbar {
    margin-left: 0;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .sidebar {
    width: 260px;
  }
  
  .sidebar-header {
    padding: 16px;
  }
  
  .sidebar-user {
    padding: 12px 16px;
  }
  
  .sidebar-module-header {
    padding: 10px 16px 6px;
  }
  
  .sidebar-menu-link {
    padding: 9px 16px;
  }
  
  .sidebar-submenu-link {
    padding: 7px 16px 7px 48px;
  }
  
  .sidebar-footer {
    padding: 12px 16px;
  }
}

/* Page Header (sidebar ile uyumlu) */
.page-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  margin-bottom: 24px;
}

.page-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.page-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-separator {
  color: var(--text-muted);
}

.breadcrumb-link {
  color: var(--text-secondary);
  text-decoration: none;
}

.breadcrumb-link:hover {
  color: var(--primary);
}

.breadcrumb-current {
  color: var(--text);
  font-weight: 500;
}

/* ====================================
   LOGIN & AUTH PAGES
   ==================================== */

.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
}

.login-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  padding: 50px 40px;
  max-width: 480px;
  width: 100%;
  text-align: center;
}

.login-logo {
  font-size: 64px;
  margin-bottom: 20px;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.login-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.login-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.form-group-login {
  margin-bottom: 20px;
  text-align: left;
}

.form-group-login label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text);
  font-size: 14px;
}

.btn-block {
  width: 100%;
  margin-top: 10px;
}

.login-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  font-size: 14px;
}

.login-links a {
  color: var(--primary);
  text-decoration: none;
}

.login-links a:hover {
  text-decoration: underline;
}

.login-links span {
  color: var(--text-muted);
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 30px 0;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border);
}

.divider span {
  padding: 0 15px;
}

.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: white;
  border: 2px solid #e2e8f0;
  color: var(--text);
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  width: 100%;
}

.google-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  color: var(--text);
}

.google-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.login-footer {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid #e2e8f0;
  color: var(--text-muted);
  font-size: 13px;
}

.feature-list {
  text-align: left;
  margin-top: 30px;
  padding: 20px;
  background: var(--bg-secondary);
  border-radius: 12px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--text-secondary);
}

.feature-item:last-child {
  margin-bottom: 0;
}

.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  text-align: left;
}

.alert-danger {
  background: var(--danger-light);
  color: var(--danger);
  border: 1px solid var(--danger);
}

.alert-success {
  background: var(--success-light);
  color: var(--success);
  border: 1px solid var(--success);
}

.alert-warning {
  background: var(--warning-light);
  color: var(--warning);
  border: 1px solid var(--warning);
}

.alert-info {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary);
}

@media (max-width: 768px) {
  .login-card {
    padding: 40px 30px;
  }
  
  .login-title {
    font-size: 24px;
  }
  
  .login-logo {
    font-size: 48px;
  }
}

/* ====================================
   WORK LOG (İŞ KAYITLARI)
   ==================================== */

.work-log-list {
  margin-top: 20px;
}

.work-log-date-header {
  background: var(--bg-secondary);
  padding: 8px 12px;
  border-radius: 6px;
  margin: 16px 0 8px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.work-log-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 10px;
  transition: all 0.2s ease;
}

.work-log-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.work-log-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 10px;
}

.work-log-header strong {
  color: var(--text);
  font-size: 15px;
  flex: 1;
}

.work-log-hours {
  background: var(--purple-light);
  color: var(--purple);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.work-log-description {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 10px;
  padding-left: 8px;
  border-left: 3px solid var(--border-light);
}

.work-log-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.work-log-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.work-log-summary {
  margin-top: 20px;
  padding: 14px;
  background: var(--success-light);
  border: 1px solid var(--success);
  border-radius: 8px;
  text-align: center;
  font-size: 15px;
  color: var(--success);
}

.btn-link {
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  font-size: 12px;
  text-decoration: none;
  padding: 0;
  transition: opacity 0.2s ease;
}

.btn-link:hover {
  opacity: 0.7;
  text-decoration: underline;
}

/* ====================================
   DASHBOARD - CATEGORY ACCORDION
   ==================================== */

.category-accordion {
  margin-bottom: 8px;
}

.category-stat-item.clickable {
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-stat-item.clickable:hover {
  background: var(--bg-secondary);
}

.accordion-icon {
  display: inline-block;
  width: 16px;
  font-size: 12px;
  margin-right: 4px;
  transition: transform 0.2s ease;
}

.category-tasks {
  padding: 8px 0 8px 28px;
  border-left: 2px solid var(--border-light);
  margin-left: 24px;
  margin-top: 8px;
}

.category-task-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.category-task-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.category-task-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.category-task-title a {
  flex: 1;
  font-weight: 500;
  font-size: 14px;
}

.category-task-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.empty-state-small {
  padding: 12px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  font-style: italic;
}

/* User Management - Role Checkbox (Inline) */
.role-checkbox-item-inline {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.role-checkbox-item-inline:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.role-checkbox-item-inline input[type="checkbox"] {
  margin-top: 2px;
  cursor: pointer;
}

.role-checkbox-item-inline.checked {
  background: #dbeafe;
  border-color: #3b82f6;
}

/* User Stats */
.user-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.stat-box {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 16px;
  border-radius: 8px;
  text-align: center;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  opacity: 0.9;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s;
}

.modal-overlay.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  background: white;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

@keyframes slideUp {
  from { 
    transform: translateY(50px); 
    opacity: 0; 
  }
  to { 
    transform: translateY(0); 
    opacity: 1; 
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #e2e8f0;
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
  color: var(--text);
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #64748b;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
}

.modal-close:hover {
  background: #f1f5f9;
  color: #1e293b;
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  padding: 20px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* Role Badge Styles */
.role-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: #dbeafe;
  border: 1px solid #93c5fd;
  border-radius: 12px;
  font-size: 11px;
  color: #1e40af;
}

.no-roles {
  color: #94a3b8;
  font-size: 12px;
  font-style: italic;
}

.role-checkbox-group {
  display: grid;
  gap: 12px;
  margin: 16px 0;
}

.role-checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.role-checkbox-item:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.role-checkbox-item input[type="checkbox"] {
  margin-top: 2px;
  cursor: pointer;
}

.role-checkbox-item.checked {
  background: #dbeafe;
  border-color: #3b82f6;
}

.role-info {
  flex: 1;
}

.role-name {
  font-weight: 600;
  color: #1e293b;
  font-size: 14px;
}

.role-desc {
  color: #64748b;
  font-size: 12px;
  margin-top: 4px;
}
