/* ============================================================
   BRAINLEAPP GÖREV TAKİP - ANA STİL DOSYASI
   assets/css/app.css
   ============================================================ */

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

:root {
  --primary:    #4F46E5;
  --primary-l:  #6366F1;
  --primary-xl: #EEF2FF;
  --accent:     #F59E0B;
  --success:    #10B981;
  --danger:     #EF4444;
  --warning:    #F59E0B;
  --info:       #3B82F6;
  --bg:         #F3F4F8;
  --card:       #FFFFFF;
  --border:     #E5E7EB;
  --text:       #111827;
  --muted:      #6B7280;
  --radius:     12px;
  --nav-h:      64px;
  --shadow:     0 1px 4px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.04);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.55;
}

/* ── NAVBAR ──────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: var(--card);
  border-bottom: 1.5px solid var(--border);
  box-shadow: 0 2px 12px rgba(79,70,229,.06);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  height: 100%;
  display: flex; align-items: center; gap: 24px;
  padding: 0 24px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.logo-mark { font-size: 28px; }
.logo-text {
  font-size: 17px; font-weight: 900;
  color: var(--text); letter-spacing: -.3px;
}
.logo-text em { color: var(--primary); font-style: normal; }

.nav-links {
  display: flex; align-items: center; gap: 4px;
  flex: 1;
}
.nav-links a {
  padding: 7px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px; font-weight: 700;
  color: var(--muted);
  transition: background .15s, color .15s;
}
.nav-links a:hover  { background: var(--primary-xl); color: var(--primary); }
.nav-links a.active { background: var(--primary-xl); color: var(--primary); }

.nav-user { position: relative; }
.user-avatar {
  width: 38px; height: 38px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 15px;
  cursor: pointer;
  transition: transform .15s;
}
.user-avatar:hover { transform: scale(1.07); }

.user-dropdown {
  position: absolute; right: 0; top: 46px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  min-width: 200px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  display: none;
}
.user-dropdown.open { display: block; animation: fadeDown .15s ease; }
@keyframes fadeDown {
  from { opacity:0; transform: translateY(-8px); }
  to   { opacity:1; transform: translateY(0); }
}
.user-info { padding: 8px 8px 12px; }
.user-info strong { display: block; font-size: 14px; font-weight: 800; color: var(--text); }
.user-info span   { font-size: 12px; color: var(--muted); }
.user-dropdown hr { border: none; border-top: 1px solid var(--border); margin: 4px 0; }
.user-dropdown a  {
  display: block; padding: 9px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px; font-weight: 700;
  color: var(--text);
  transition: background .15s;
}
.user-dropdown a:hover { background: var(--bg); }
.user-dropdown a.danger { color: var(--danger); }
.user-dropdown a.danger:hover { background: #FEF2F2; }

/* ── PAGE LAYOUT ─────────────────────────────────────── */
.page-wrap {
  max-width: 1280px; margin: 0 auto;
  padding: 28px 24px 60px;
}
.page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 28px;
}
.page-header h1 { font-size: 24px; font-weight: 900; color: var(--text); }
.page-header .sub { font-size: 14px; color: var(--muted); margin-top: 4px; }

/* ── BUTTONS ──────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px;
  background: var(--primary); color: #fff;
  border: none; border-radius: 10px;
  font-family: inherit; font-size: 14px; font-weight: 800;
  cursor: pointer; text-decoration: none;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 12px rgba(79,70,229,.3);
}
.btn-primary:hover { background: var(--primary-l); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(79,70,229,.4); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px;
  background: var(--card); color: var(--text);
  border: 1.5px solid var(--border); border-radius: 10px;
  font-family: inherit; font-size: 14px; font-weight: 700;
  cursor: pointer; text-decoration: none;
  transition: border-color .2s, background .2s;
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-xl); }

.btn-danger {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px;
  background: #FEF2F2; color: var(--danger);
  border: 1.5px solid #FECACA; border-radius: 10px;
  font-family: inherit; font-size: 13px; font-weight: 700;
  cursor: pointer; text-decoration: none;
  transition: background .2s;
}
.btn-danger:hover { background: #FEE2E2; }

.btn-sm {
  padding: 6px 12px !important;
  font-size: 12px !important;
  border-radius: 7px !important;
}

/* ── CARDS ────────────────────────────────────────────── */
.card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  padding: 24px;
  box-shadow: var(--shadow);
}

/* ── STATS GRID ──────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: var(--shadow);
  transition: transform .2s;
}
.stat-card:hover { transform: translateY(-2px); }
.stat-icon { font-size: 28px; flex-shrink: 0; }
.stat-num  { font-size: 26px; font-weight: 900; color: var(--text); line-height: 1; }
.stat-label{ font-size: 12px; color: var(--muted); font-weight: 700; margin-top: 3px; }
.stat-card.blue   { border-color: #BFDBFE; background: #EFF6FF; }
.stat-card.blue .stat-num { color: #1D4ED8; }
.stat-card.red    { border-color: #FECACA; background: #FEF2F2; }
.stat-card.red .stat-num  { color: var(--danger); }
.stat-card.yellow { border-color: #FDE68A; background: #FFFBEB; }
.stat-card.yellow .stat-num { color: #92400E; }
.stat-card.orange { border-color: #FED7AA; background: #FFF7ED; }
.stat-card.orange .stat-num { color: #C2410C; }

/* ── TWO-COL ─────────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 768px) { .two-col { grid-template-columns: 1fr; } }

/* ── SECTION ─────────────────────────────────────────── */
.section {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.section-head h2 { font-size: 16px; font-weight: 800; }
.link-more { font-size: 13px; color: var(--primary); font-weight: 700; text-decoration: none; }
.link-more:hover { text-decoration: underline; }

/* ── PROJECT CARDS (dashboard list) ─────────────────── */
.project-list { display: flex; flex-direction: column; gap: 10px; }
.project-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  text-decoration: none; color: var(--text);
  transition: border-color .2s, background .2s, transform .15s;
}
.project-card:hover { border-color: var(--primary); background: var(--primary-xl); transform: translateX(2px); }
.project-dot {
  width: 12px; height: 12px; border-radius: 50%;
  flex-shrink: 0;
}
.project-info { flex: 1; min-width: 0; }
.project-name { font-weight: 800; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.project-meta { font-size: 12px; color: var(--muted); margin-top: 1px; }
.project-arrow { color: var(--muted); font-size: 14px; }
.drive-btn {
  font-size: 18px; text-decoration: none;
  padding: 4px 6px;
  border-radius: 6px;
  transition: background .15s;
}
.drive-btn:hover { background: #E5E7EB; }

/* ── TASK LIST ───────────────────────────────────────── */
.task-list { display: flex; flex-direction: column; gap: 8px; }
.task-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  text-decoration: none; color: var(--text);
  transition: border-color .2s, background .2s;
}
.task-item:hover { border-color: var(--primary); background: var(--primary-xl); }
.task-item.overdue { border-color: #FECACA; background: #FEF2F2; }
.task-item.urgent  { border-color: #FDE68A; background: #FFFBEB; }
.task-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.task-body { flex: 1; min-width: 0; }
.task-title   { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-project { font-size: 11px; color: var(--muted); margin-top: 2px; }
.task-due { font-size: 12px; font-weight: 800; color: var(--success); white-space: nowrap; }
.task-due.due-red    { color: var(--danger); }
.task-due.due-orange { color: var(--warning); }

/* ── STATUS BADGES ───────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px; font-weight: 800;
  white-space: nowrap;
}
.status-waiting     { background: #F3F4F6; color: #374151; }
.status-inprogress  { background: #DBEAFE; color: #1D4ED8; }
.status-done        { background: #D1FAE5; color: #065F46; }
.status-cancelled   { background: #F3F4F6; color: #9CA3AF; }
.status-help        { background: #FEE2E2; color: #991B1B; }
.status-postponed   { background: #FEF3C7; color: #92400E; }

.priority-dusuk  { background: #F3F4F6; color: #6B7280; }
.priority-normal { background: #DBEAFE; color: #1D4ED8; }
.priority-yuksek { background: #FEF3C7; color: #92400E; }
.priority-kritik { background: #FEE2E2; color: #991B1B; }

/* ── POSTPONE WARNING ────────────────────────────────── */
.postpone-warn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px;
  background: #FEF3C7;
  border: 1px solid #F59E0B;
  border-radius: 6px;
  font-size: 12px; font-weight: 700;
  color: #92400E;
}
.postpone-warn.danger {
  background: #FEE2E2;
  border-color: #EF4444;
  color: #991B1B;
}

/* ── FORMS ───────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 13px; font-weight: 700; color: var(--text);
  margin-bottom: 7px;
}
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  font-family: inherit; font-size: 14px; color: var(--text);
  background: #FAFAFA;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-control:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(79,70,229,.1);
}
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; }

/* ── TABLE ───────────────────────────────────────────── */
.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th {
  text-align: left;
  padding: 11px 14px;
  font-size: 11px; font-weight: 800;
  color: var(--muted); text-transform: uppercase; letter-spacing: .5px;
  background: var(--bg);
  border-bottom: 2px solid var(--border);
}
tbody td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 14px; vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--primary-xl); }

/* ── ALERTS ──────────────────────────────────────────── */
.alert {
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 14px; font-weight: 600;
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 8px;
}
.alert-success { background: #D1FAE5; border: 1px solid #6EE7B7; color: #065F46; }
.alert-danger  { background: #FEE2E2; border: 1px solid #FCA5A5; color: #991B1B; }
.alert-info    { background: #DBEAFE; border: 1px solid #93C5FD; color: #1E40AF; }
.alert-warning { background: #FEF3C7; border: 1px solid #FCD34D; color: #92400E; }

/* ── EMPTY STATE ─────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 32px 16px;
  color: var(--muted);
  font-size: 14px;
}

/* ── MODAL ───────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn .15s ease;
}
.modal-backdrop.hidden { display: none; }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
.modal {
  background: var(--card);
  border-radius: 16px;
  padding: 28px;
  width: 100%; max-width: 520px;
  box-shadow: 0 24px 64px rgba(0,0,0,.2);
  animation: slideUp .2s ease;
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity:0; }
  to   { transform: translateY(0); opacity:1; }
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.modal-header h3 { font-size: 18px; font-weight: 800; }
.modal-close {
  background: var(--bg); border: none; border-radius: 8px;
  width: 32px; height: 32px;
  cursor: pointer; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.modal-close:hover { background: #E5E7EB; }
.modal-footer {
  display: flex; gap: 10px; justify-content: flex-end;
  margin-top: 24px;
}

/* ── TABS ────────────────────────────────────────────── */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 20px; }
.tab-btn {
  padding: 10px 16px;
  background: none; border: none;
  font-family: inherit; font-size: 14px; font-weight: 700;
  color: var(--muted); cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color .15s, border-color .15s;
}
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-btn:hover  { color: var(--text); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── CALENDAR ────────────────────────────────────────── */
.cal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.cal-nav { display: flex; align-items: center; gap: 10px; }
.cal-nav button {
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 8px; padding: 7px 12px;
  font-family: inherit; font-size: 14px; cursor: pointer;
  transition: background .15s;
}
.cal-nav button:hover { background: #E5E7EB; }
.cal-title { font-size: 17px; font-weight: 800; }
.cal-view-btns { display: flex; gap: 4px; }
.view-btn {
  padding: 7px 14px;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 8px; font-family: inherit; font-size: 13px;
  font-weight: 700; cursor: pointer; transition: background .15s, border-color .15s;
}
.view-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 1px; background: var(--border);
  border-radius: 10px; overflow: hidden;
  border: 1px solid var(--border);
}
.cal-weekday {
  background: var(--bg);
  padding: 10px;
  text-align: center;
  font-size: 12px; font-weight: 800; color: var(--muted);
  text-transform: uppercase;
}
.cal-day {
  background: var(--card);
  min-height: 90px;
  padding: 8px;
  cursor: pointer;
  transition: background .15s;
  position: relative;
}
.cal-day:hover { background: var(--primary-xl); }
.cal-day.today { background: #EEF2FF; }
.cal-day.today .day-num { color: var(--primary); font-weight: 900; }
.cal-day.other-month .day-num { color: #D1D5DB; }
.day-num { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.day-tasks { display: flex; flex-direction: column; gap: 2px; }
.day-task-dot {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: var(--primary-xl); color: var(--primary);
}

/* ── MISC ────────────────────────────────────────────── */
.page-tabs { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.breadcrumb { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.breadcrumb a { color: var(--primary); text-decoration: none; font-weight: 700; }
.breadcrumb a:hover { text-decoration: underline; }
.color-picker-wrap { display: flex; gap: 8px; flex-wrap: wrap; }
.color-dot {
  width: 28px; height: 28px; border-radius: 50%;
  cursor: pointer; border: 3px solid transparent;
  transition: border-color .15s, transform .15s;
}
.color-dot.selected, .color-dot:hover { border-color: #374151; transform: scale(1.1); }
.divider { height: 1px; background: var(--border); margin: 20px 0; }
