/* =============================================
   ARCORA PROJE TAKİP PORTALI — CSS
   Tasarım Dili: Koyu tema, Gold (#c5a059) aksanlar
   Font: Outfit (Google Fonts)
   ============================================= */

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

/* ── ROOT TOKENS ─────────────────────────────── */
:root {
  --gold:        #c5a059;
  --gold-light:  #d4b575;
  --gold-dim:    rgba(197, 160, 89, 0.15);
  --gold-glow:   rgba(197, 160, 89, 0.3);
  --bg-base:     #0a0a0a;
  --bg-dark:     #0f0f0f;
  --bg-card:     #161616;
  --bg-card2:    #1c1c1c;
  --bg-hover:    #222222;
  --border:      rgba(255,255,255,0.08);
  --border-gold: rgba(197,160,89,0.35);
  --text:        #f0f0f0;
  --text-muted:  #888888;
  --text-dim:    #555555;
  --success:     #4caf84;
  --warning:     #e8a030;
  --danger:      #e05252;
  --info:        #5b9bd5;
  --radius:      12px;
  --radius-sm:   8px;
  --shadow:      0 4px 24px rgba(0,0,0,0.4);
  --shadow-gold: 0 4px 20px rgba(197,160,89,0.2);
  --transition:  all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── RESET ───────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-base);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }
img { max-width: 100%; }

/* ══════════════════════════════════════════════
   GİRİŞ SAYFASI
   ══════════════════════════════════════════════ */

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* Sol: Görsel panel */
.login-visual {
  position: relative;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1208 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem;
  overflow: hidden;
}
.login-visual-bg {
  position: absolute; inset: 0;
  background-image: url('../img/login-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.25;
}
.login-visual-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.3) 60%, transparent 100%);
}
.login-visual-content { position: relative; z-index: 1; }
.login-logo {
  font-size: 2rem; font-weight: 700; letter-spacing: 4px;
  color: var(--gold); text-transform: uppercase; margin-bottom: 0.5rem;
}
.login-logo span { font-size: 0.6rem; letter-spacing: 3px; color: var(--text-muted); display: block; font-weight: 300; margin-top: 4px; }
.login-tagline { color: var(--text-muted); font-size: 1rem; margin-bottom: 2rem; }
.login-features { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.login-feature {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; color: var(--text-muted);
}
.login-feature-icon { color: var(--gold); font-size: 1rem; }

/* Sağ: Form panel */
.login-form-panel {
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem 4rem;
}
.login-form-box { width: 100%; max-width: 400px; }
.login-form-title {
  font-size: 1.8rem; font-weight: 700; margin-bottom: 0.5rem;
}
.login-form-subtitle { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 2rem; }

.form-group { margin-bottom: 1.2rem; }
.form-label {
  display: block; font-size: 0.8rem; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.5rem;
}
.form-input-wrap { position: relative; }
.form-input-icon {
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  color: var(--text-dim); font-size: 0.9rem; pointer-events: none;
}
.form-input-toggle {
  position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
  color: var(--text-dim); font-size: 0.9rem; cursor: pointer;
  background: none; border: none; color: var(--text-muted);
  transition: var(--transition);
}
.form-input-toggle:hover { color: var(--gold); }
.form-input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.6rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}
.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
  background: var(--bg-card2);
}
.form-input::placeholder { color: var(--text-dim); }

.form-options {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.5rem; font-size: 0.85rem;
}
.form-checkbox-label {
  display: flex; align-items: center; gap: 0.5rem; cursor: pointer; color: var(--text-muted);
}
.form-checkbox {
  width: 16px; height: 16px; accent-color: var(--gold); cursor: pointer;
}
.form-link { color: var(--gold); font-size: 0.85rem; transition: var(--transition); }
.form-link:hover { color: var(--gold-light); text-decoration: underline; }

.btn-login {
  width: 100%;
  padding: 1rem;
  background: var(--gold);
  color: #000;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.btn-login::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  opacity: 0;
  transition: var(--transition);
}
.btn-login:hover { transform: translateY(-2px); box-shadow: var(--shadow-gold); }
.btn-login:hover::before { opacity: 1; }
.btn-login span { position: relative; z-index: 1; }
.btn-login:active { transform: translateY(0); }

.login-error {
  display: none;
  background: rgba(224,82,82,0.1);
  border: 1px solid rgba(224,82,82,0.3);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: #ff7070;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  text-align: center;
}
.login-error.show { display: block; }

.login-footer { text-align: center; margin-top: 2rem; }
.login-footer-text { color: var(--text-muted); font-size: 0.8rem; }
.login-footer a { color: var(--gold); }

/* ══════════════════════════════════════════════
   PORTAL LAYOUT (Sidebar + Main)
   ══════════════════════════════════════════════ */

.portal-layout {
  display: flex;
  min-height: 100vh;
}

/* ── SİDEBAR ─────────────────────────────────── */
.sidebar {
  width: 260px;
  min-width: 260px;
  background: var(--bg-dark);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 100;
  transition: var(--transition);
}
.sidebar-logo {
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border);
}
.sidebar-logo-text {
  font-size: 1.3rem; font-weight: 700; letter-spacing: 3px;
  color: var(--gold); text-transform: uppercase;
}
.sidebar-logo-sub {
  font-size: 0.65rem; letter-spacing: 2px; color: var(--text-dim);
  text-transform: uppercase; margin-top: 2px;
}
.sidebar-user {
  padding: 1rem 1.5rem;
  display: flex; align-items: center; gap: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.sidebar-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gold-dim); border: 1px solid var(--border-gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 600; color: var(--gold);
  flex-shrink: 0;
}
.sidebar-user-name { font-size: 0.9rem; font-weight: 600; }
.sidebar-user-role {
  font-size: 0.7rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1px;
}
.sidebar-nav { flex: 1; padding: 1rem 0; overflow-y: auto; }
.sidebar-nav-section {
  font-size: 0.65rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-dim); padding: 0.75rem 1.5rem 0.25rem;
}
.sidebar-nav a {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.7rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition);
  position: relative;
}
.sidebar-nav a:hover { color: var(--text); background: var(--bg-card); }
.sidebar-nav a.active {
  color: var(--gold);
  background: var(--gold-dim);
}
.sidebar-nav a.active::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--gold); border-radius: 0 2px 2px 0;
}
.sidebar-nav-icon { font-size: 1rem; width: 20px; text-align: center; }
.sidebar-nav-badge {
  margin-left: auto;
  background: var(--warning);
  color: #000;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
}
.sidebar-bottom {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
}
.btn-logout {
  width: 100%; padding: 0.7rem 1rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted); font-size: 0.85rem;
  display: flex; align-items: center; gap: 0.5rem;
  transition: var(--transition);
}
.btn-logout:hover { border-color: var(--danger); color: var(--danger); }

/* ── ANA İÇERİK ──────────────────────────────── */
.main-content {
  flex: 1;
  margin-left: 260px;
  min-height: 100vh;
  background: var(--bg-base);
}
.top-bar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,10,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.top-bar-title { font-size: 1rem; font-weight: 600; color: var(--text-muted); }
.top-bar-title strong { color: var(--text); }
.top-bar-actions { display: flex; align-items: center; gap: 1rem; }
.top-bar-bell {
  position: relative;
  width: 36px; height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition); font-size: 0.9rem; color: var(--text-muted);
}
.top-bar-bell:hover { border-color: var(--gold); color: var(--gold); }
.bell-dot {
  position: absolute; top: 4px; right: 4px;
  width: 8px; height: 8px;
  background: var(--warning); border-radius: 50%;
  border: 2px solid var(--bg-base);
}
.page-content { padding: 2rem; }

/* ══════════════════════════════════════════════
   MÜŞTERİ DASHBOARD
   ══════════════════════════════════════════════ */

/* Breadcrumb */
.breadcrumb {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--text-muted); transition: var(--transition); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep { color: var(--text-dim); }
.breadcrumb-current { color: var(--text); }

/* Proje başlığı */
.project-header { margin-bottom: 2rem; }
.project-header h1 { font-size: 1.8rem; font-weight: 700; margin-bottom: 0.25rem; }
.project-header-meta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.project-code {
  font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-muted); background: var(--bg-card);
  padding: 3px 10px; border-radius: 20px; border: 1px solid var(--border);
}
.project-status-badge {
  font-size: 0.75rem; letter-spacing: 1px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 20px; font-weight: 600;
}
.badge-active { background: rgba(76,175,132,0.15); color: var(--success); border: 1px solid rgba(76,175,132,0.3); }
.badge-pending { background: rgba(232,160,48,0.15); color: var(--warning); border: 1px solid rgba(232,160,48,0.3); }
.badge-done { background: rgba(197,160,89,0.15); color: var(--gold); border: 1px solid var(--border-gold); }

/* Stat kartları */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(to right, var(--gold), transparent);
  opacity: 0;
  transition: var(--transition);
}
.stat-card:hover { border-color: var(--border-gold); }
.stat-card:hover::before { opacity: 1; }
.stat-label {
  font-size: 0.75rem; letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 0.75rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.stat-label-icon { color: var(--gold); }
.stat-value { font-size: 2rem; font-weight: 700; color: var(--gold); line-height: 1; margin-bottom: 0.5rem; }
.stat-value-sm { font-size: 1.3rem; font-weight: 600; color: var(--text); }
.stat-sub { font-size: 0.8rem; color: var(--text-muted); }
.stat-progress-wrap { margin-top: 0.75rem; }
.stat-progress-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.stat-progress-fill {
  height: 100%;
  background: linear-gradient(to right, var(--gold), var(--gold-light));
  border-radius: 2px;
  transition: width 1s ease;
}
.stat-countdown {
  font-size: 1.5rem; font-weight: 700; color: var(--warning);
}

/* ══════════════════════════════════════════════
   SİZDEN BEKLENENLER / MÜŞTERİ ONAYI KARTLARI
   ══════════════════════════════════════════════ */
.pending-actions-section {
  margin-bottom: 2rem;
}
.pending-actions-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.85rem;
}
.pending-actions-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: -0.4rem;
  margin-bottom: 1rem;
}

.approval-banner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid #ef4444; /* Kırmızı dikey şerit */
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}
.approval-banner:hover {
  border-color: rgba(239, 68, 68, 0.4);
  border-left-color: #ef4444;
}
.approval-banner-body {
  flex: 1;
}
.approval-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ef4444;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}
.approval-status-badge .badge-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.8);
}
.approval-banner-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.35rem;
  line-height: 1.4;
}
.approval-banner-desc {
  font-size: 0.88rem;
  color: #9ca3af;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}
.approval-banner-deadline {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: #d1d5db;
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.approval-banner-deadline strong {
  color: #f59e0b;
}

.approval-banner-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}
.btn-view-doc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.45rem 1rem;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}
.btn-view-doc:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201, 168, 76, 0.1);
}
.btn-approve {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.45rem 1.25rem;
  background: #22c55e;
  border: 1px solid #16a34a;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.btn-approve:hover {
  background: #16a34a;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.4);
  transform: translateY(-1px);
}

/* Gecikme Banner */
.delay-banner {
  background: rgba(224,82,82,0.08);
  border: 1px solid rgba(224,82,82,0.25);
  border-radius: var(--radius);
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.85rem; color: var(--text-muted);
}
.delay-banner-icon { color: var(--danger); }

/* Aşama Timeline */
.phases-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.phases-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.5rem;
}
.phases-title { font-size: 1rem; font-weight: 600; }
.phases-subtitle { font-size: 0.8rem; color: var(--text-muted); }

.timeline {
  display: flex;
  align-items: center;
  overflow-x: auto;
  gap: 0;
  padding-bottom: 0.5rem;
}
.timeline::-webkit-scrollbar { height: 4px; }
.timeline::-webkit-scrollbar-track { background: var(--border); }
.timeline::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 2px; }

.timeline-step {
  display: flex; flex-direction: column; align-items: center;
  min-width: 100px;
  position: relative;
  cursor: pointer;
}
.timeline-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 18px;
  left: calc(50% + 18px);
  width: calc(100% - 36px);
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.timeline-step.done:not(:last-child)::after { background: var(--gold); }
.timeline-step.active:not(:last-child)::after { background: linear-gradient(to right, var(--gold), var(--border)); }

.timeline-dot {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; z-index: 1;
  transition: var(--transition); position: relative;
}
.timeline-dot.done {
  background: var(--gold); color: #000; border: 2px solid var(--gold);
}
.timeline-dot.active {
  background: var(--gold-dim); color: var(--gold);
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 4px var(--gold-glow);
  animation: pulse-dot 2s infinite;
}
.timeline-dot.pending {
  background: var(--bg-card2); color: var(--text-dim);
  border: 2px solid var(--border);
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 4px var(--gold-glow); }
  50% { box-shadow: 0 0 0 8px rgba(197,160,89,0.1); }
}
.timeline-label {
  font-size: 0.7rem; text-align: center; margin-top: 0.5rem;
  color: var(--text-dim); line-height: 1.3;
  max-width: 90px;
}
.timeline-step.done .timeline-label { color: var(--text-muted); }
.timeline-step.active .timeline-label { color: var(--gold); font-weight: 600; }
.timeline-step-pct {
  font-size: 0.65rem; color: var(--text-dim); margin-top: 2px;
}
.timeline-step.active .timeline-step-pct { color: var(--gold-light); }

/* Açılır Aşama Detayı */
.phase-detail {
  margin-top: 1.5rem;
  background: var(--bg-card2);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  overflow: hidden;
  animation: slideDown 0.3s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.phase-detail-header {
  padding: 1rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.phase-detail-title { font-weight: 600; color: var(--gold); }
.phase-detail-pct {
  font-size: 1.2rem; font-weight: 700; color: var(--gold);
}
.phase-detail-items { padding: 0.75rem 1.25rem; }
.phase-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.6rem 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}
.phase-item:last-child { border-bottom: none; }
.phase-item-icon { font-size: 1rem; width: 20px; text-align: center; flex-shrink: 0; }
.phase-item-icon.done { color: var(--success); }
.phase-item-icon.active { color: var(--warning); }
.phase-item-icon.pending { color: var(--text-dim); }
.phase-item-name { flex: 1; }
.phase-item-status {
  font-size: 0.75rem; padding: 2px 8px; border-radius: 10px;
}
.phase-item-status.done { background: rgba(76,175,132,0.15); color: var(--success); }
.phase-item-status.active { background: rgba(232,160,48,0.15); color: var(--warning); }
.phase-item-status.pending { background: var(--bg-card); color: var(--text-dim); }

/* Mobilya Grupları */
.furniture-section { margin-bottom: 1.5rem; }
.section-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.section-card-header {
  padding: 1.25rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.section-card-title { font-size: 1rem; font-weight: 600; }
.section-card-action { font-size: 0.8rem; color: var(--gold); cursor: pointer; transition: var(--transition); }
.section-card-action:hover { color: var(--gold-light); }

.furniture-table { width: 100%; }
.furniture-row {
  display: grid;
  grid-template-columns: 2fr 1fr 100px 40px;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}
.furniture-row:last-child { border-bottom: none; }
.furniture-row:hover { background: var(--bg-hover); }
.furniture-name { font-size: 0.9rem; font-weight: 500; }
.furniture-sub { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.furniture-status { font-size: 0.8rem; }
.furniture-pct-wrap { display: flex; flex-direction: column; gap: 4px; }
.furniture-pct-label { font-size: 0.75rem; color: var(--text-muted); text-align: right; }
.mini-bar { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.mini-bar-fill {
  height: 100%;
  background: linear-gradient(to right, var(--gold), var(--gold-light));
  border-radius: 2px;
  transition: width 1s ease;
}
.furniture-arrow { color: var(--text-dim); font-size: 0.8rem; text-align: center; transition: var(--transition); }
.furniture-row:hover .furniture-arrow { color: var(--gold); transform: translateX(3px); }

/* Günlük Günlük */
.log-section { margin-bottom: 1.5rem; position: relative; }

/* Dikey Zaman Çizelgesi Stili */
.log-timeline {
  position: relative;
  padding-left: 1.75rem;
}
.log-timeline::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 6px;
  width: 2px;
  background: rgba(201, 168, 76, 0.25);
}

.log-entry {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1.75rem;
  padding: 1.25rem 1.5rem;
  transition: var(--transition);
}
.log-entry:hover {
  border-color: rgba(201, 168, 76, 0.4);
}

/* Çizgi üzerindeki nokta */
.log-timeline-node {
  position: absolute;
  left: -1.75rem;
  top: 1.25rem;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 3px solid #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

/* Tarih Başlığı */
.log-header-date {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.log-phase-badge {
  font-size: 0.72rem;
  color: var(--gold);
  background: rgba(201, 168, 76, 0.1);
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(201, 168, 76, 0.25);
  font-weight: 500;
}

/* Bölüm Başlığı (🟢 Bugün Yapılanlar) */
.log-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.6rem;
}
.log-status-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
  flex-shrink: 0;
}

/* Maddeler */
.log-bullet-list {
  list-style: none;
  padding-left: 1.25rem;
  margin: 0 0 1rem 0;
}
.log-bullet-list li {
  position: relative;
  font-size: 0.9rem;
  color: #d1d5db;
  line-height: 1.6;
  padding: 0.2rem 0;
}
.log-bullet-list li::before {
  content: '•';
  position: absolute;
  left: -1rem;
  color: var(--text-muted);
  font-size: 1.2rem;
  line-height: 1.2;
}

/* Doküman & Fotoğraf Sayaç Şeritleri */
.log-meta-attachments {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.log-attach-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-card2);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}
.log-attach-pill:hover {
  color: #fff;
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.1);
}

.log-photos { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.75rem; }
.log-photo {
  width: 90px; height: 70px;
  object-fit: cover; border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: pointer; transition: var(--transition);
}
.log-photo:hover { border-color: var(--gold); transform: scale(1.03); }
.log-photo-more {
  width: 90px; height: 70px;
  background: var(--bg-card2); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition); color: var(--text-muted); font-size: 0.8rem;
}
.log-photo-more:hover { border-color: var(--gold); color: var(--gold); }
.log-photo-more span { font-size: 1.2rem; margin-bottom: 2px; }

/* Tabs */
.tabs {
  display: flex; gap: 0; border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem; overflow-x: auto;
}
.tab-btn {
  padding: 0.85rem 1.5rem;
  background: none; border: none;
  color: var(--text-muted); font-size: 0.88rem;
  position: relative; cursor: pointer; transition: var(--transition);
  white-space: nowrap;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--gold); }
.tab-btn.active::after {
  content: '';
  position: absolute; bottom: -1px; left: 0; right: 0;
  height: 2px; background: var(--gold);
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ══════════════════════════════════════════════
   ADMİN / PERSONEL PANELİ
   ══════════════════════════════════════════════ */

/* Admin stat grid */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.admin-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex; align-items: center; gap: 1rem;
  transition: var(--transition);
}
.admin-stat-card:hover { border-color: var(--border-gold); }
.admin-stat-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--gold-dim);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--gold); flex-shrink: 0;
}
.admin-stat-num { font-size: 1.6rem; font-weight: 700; line-height: 1; }
.admin-stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }

/* Proje listesi (admin) */
.project-list-table { width: 100%; border-collapse: collapse; }
.project-list-table th {
  text-align: left; font-size: 0.75rem; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-dim);
  padding: 0.75rem 1rem; border-bottom: 1px solid var(--border);
}
.project-list-table td {
  padding: 1rem; border-bottom: 1px solid var(--border);
  font-size: 0.9rem; vertical-align: middle;
}
.project-list-table tr:last-child td { border-bottom: none; }
.project-list-table tr:hover td { background: var(--bg-hover); }

/* Form elemanları (admin) */
.admin-form-group { margin-bottom: 1.25rem; }
.admin-form-label {
  display: block; font-size: 0.8rem; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.5rem;
}
.admin-input {
  width: 100%; padding: 0.8rem 1rem;
  background: var(--bg-card2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-size: 0.9rem; outline: none; transition: var(--transition);
}
.admin-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-dim); }
.admin-input::placeholder { color: var(--text-dim); }
.admin-textarea {
  width: 100%; padding: 0.8rem 1rem;
  background: var(--bg-card2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-size: 0.9rem; outline: none; transition: var(--transition);
  resize: vertical; min-height: 100px;
}
.admin-textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-dim); }
.admin-select {
  width: 100%; padding: 0.8rem 1rem;
  background: var(--bg-card2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-size: 0.9rem; outline: none; cursor: pointer; transition: var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.admin-select:focus { border-color: var(--gold); }

/* Fotoğraf yükleme */
.photo-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  cursor: pointer; transition: var(--transition);
}
.photo-upload-area:hover { border-color: var(--gold); background: var(--gold-dim); }
.photo-upload-icon { font-size: 2rem; color: var(--text-dim); margin-bottom: 0.5rem; }
.photo-upload-text { font-size: 0.9rem; color: var(--text-muted); }
.photo-upload-sub { font-size: 0.75rem; color: var(--text-dim); margin-top: 0.25rem; }
.photo-previews { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1rem; }
.photo-preview-item {
  position: relative; width: 90px; height: 70px;
}
.photo-preview-img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
}
.photo-preview-remove {
  position: absolute; top: -6px; right: -6px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--danger); color: #fff; border: none;
  font-size: 0.7rem; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition);
}
.photo-preview-remove:hover { transform: scale(1.1); }

/* Gecikme dropdown renkleri */
.delay-ok { color: var(--success); }
.delay-arcora { color: var(--danger); }
.delay-client { color: var(--warning); }
.delay-supply { color: var(--info); }

/* Aşama yönetim kartları */
.phase-manage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.phase-manage-card {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  transition: var(--transition);
}
.phase-manage-card:hover { border-color: var(--border-gold); }
.phase-manage-card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.75rem;
}
.phase-manage-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--gold-dim); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
}
.phase-manage-name { font-size: 0.85rem; font-weight: 600; flex: 1; margin-left: 0.5rem; }
.phase-manage-status-select {
  font-size: 0.75rem; padding: 3px 8px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; color: var(--text); cursor: pointer;
  outline: none; appearance: none;
}
.phase-manage-progress { margin-top: 0.5rem; }

/* Güncelleme geçmişi timeline */
.update-history { padding: 1rem 0; }
.history-item {
  display: flex; gap: 1rem; padding-bottom: 1.5rem;
  position: relative;
}
.history-item:not(:last-child)::before {
  content: '';
  position: absolute; left: 16px; top: 32px; bottom: 0;
  width: 1px; background: var(--border);
}
.history-dot {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: var(--bg-card2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; color: var(--text-muted); z-index: 1;
}
.history-dot.today { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); }
.history-content { flex: 1; }
.history-date { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.history-phase { font-size: 0.85rem; font-weight: 600; margin-bottom: 0.25rem; }
.history-text { font-size: 0.8rem; color: var(--text-muted); }
.history-photos { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.history-thumb {
  width: 50px; height: 40px; object-fit: cover;
  border-radius: 4px; border: 1px solid var(--border);
}

/* Kullanıcı kartları */
.user-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.user-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex; align-items: center; gap: 1rem;
  transition: var(--transition);
}
.user-card:hover { border-color: var(--border-gold); }
.user-card-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gold-dim); border: 1px solid var(--border-gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700; color: var(--gold); flex-shrink: 0;
}
.user-card-name { font-size: 0.95rem; font-weight: 600; }
.user-card-email { font-size: 0.8rem; color: var(--text-muted); }
.user-card-role { margin-top: 4px; }
.user-card-actions { margin-left: auto; display: flex; gap: 0.5rem; }

/* Genel Butonlar */
.btn-primary {
  padding: 0.75rem 1.5rem;
  background: var(--gold); color: #000;
  border: none; border-radius: var(--radius-sm);
  font-size: 0.88rem; font-weight: 700; letter-spacing: 0.5px;
  transition: var(--transition); display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: var(--shadow-gold); }
.btn-secondary {
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted); font-size: 0.88rem;
  transition: var(--transition); display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.8rem; }
.btn-danger {
  padding: 0.45rem 0.9rem;
  background: rgba(224,82,82,0.1); color: var(--danger);
  border: 1px solid rgba(224,82,82,0.25); border-radius: var(--radius-sm);
  font-size: 0.8rem; transition: var(--transition);
}
.btn-danger:hover { background: rgba(224,82,82,0.2); }
.btn-icon {
  width: 34px; height: 34px;
  background: var(--bg-card2); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; color: var(--text-muted); cursor: pointer; transition: var(--transition);
}
.btn-icon:hover { border-color: var(--gold); color: var(--gold); }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  width: 90%; max-width: 520px;
  max-height: 90vh; overflow-y: auto;
  transform: translateY(20px); transition: var(--transition);
}
.modal-overlay.open .modal-box { transform: translateY(0); }
.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-title { font-size: 1rem; font-weight: 600; }
.modal-close {
  background: none; border: none; color: var(--text-muted); font-size: 1.2rem;
  cursor: pointer; transition: var(--transition);
}
.modal-close:hover { color: var(--danger); }
.modal-body { padding: 1.5rem; }
.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end; gap: 0.75rem;
}

/* Lightbox fotoğraf */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.95);
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: var(--radius-sm); }
.lightbox-close {
  position: absolute; top: 1rem; right: 1rem;
  background: rgba(255,255,255,0.1); border: none;
  color: #fff; font-size: 1.5rem; width: 44px; height: 44px;
  border-radius: 50%; cursor: pointer; transition: var(--transition);
}
.lightbox-close:hover { background: var(--danger); }

/* Toast bildirimi */
.toast-container { position: fixed; bottom: 2rem; right: 2rem; z-index: 3000; display: flex; flex-direction: column; gap: 0.5rem; }
.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.25rem;
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.88rem; min-width: 280px;
  animation: toastIn 0.3s ease;
  box-shadow: var(--shadow);
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
.toast-success { border-left: 3px solid var(--success); }
.toast-error { border-left: 3px solid var(--danger); }
.toast-info { border-left: 3px solid var(--gold); }
.toast-icon { font-size: 1rem; }

/* Yükleme spinner */
.spinner {
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--gold);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(10,10,10,0.8);
  display: flex; align-items: center; justify-content: center;
}

/* Boş durum */
.empty-state {
  text-align: center; padding: 3rem 1rem; color: var(--text-muted);
}
.empty-state-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.3; }
.empty-state-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--text); }
.empty-state-text { font-size: 0.9rem; }

/* Grid yardımcıları */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.8rem; }
.text-xs { font-size: 0.72rem; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.divider { height: 1px; background: var(--border); margin: 1.25rem 0; }

/* ══════════════════════════════════════════════
   RESPONSİVE
   ══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .login-page { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .login-form-panel { padding: 2rem; }
}

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .timeline { gap: 0; }
  .timeline-step { min-width: 80px; }
  .furniture-row { grid-template-columns: 1fr 80px 30px; }
  .furniture-status { display: none; }
}

@media (max-width: 480px) {
  .page-content { padding: 1rem; }
  .stats-grid { grid-template-columns: 1fr; }
}
