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

:root {
  --navy-950: #0a1420;
  --navy-900: #0d1b2a;
  --navy-800: #13273b;
  --navy-700: #1b3450;
  --gold: #c9a227;
  --gold-light: #e6c565;
  --slate-300: #b7c2cf;
  --success: #3ecf8e;
  --warning: #f2b84b;
  --danger: #ef5d60;
}

* { box-sizing: border-box; }

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f4f6f9;
  color: var(--navy-900);
}

h1, h2, h3, .brand-font { font-family: 'Playfair Display', serif; }

/* ---------------- Auth pages ---------------- */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  background: var(--navy-950);
}

.auth-visual {
  position: relative;
  background: linear-gradient(160deg, rgba(10,20,32,0.55), rgba(10,20,32,0.9)),
    url('https://images.unsplash.com/photo-1487958449943-2429e8be8625?auto=format&fit=crop&w=1400&q=80') center/cover no-repeat;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem;
}

.auth-visual .quote {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  line-height: 1.4;
  border-left: 3px solid var(--gold);
  padding-left: 1.2rem;
}

.auth-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  border: none;
}

.auth-card .nav-tabs {
  border: none;
  gap: .5rem;
}

.auth-card .nav-tabs .nav-link {
  border: none;
  border-radius: 10px;
  font-weight: 600;
  color: var(--navy-700);
  padding: .7rem 1.4rem;
}

.auth-card .nav-tabs .nav-link.active {
  background: var(--navy-900);
  color: #fff;
}

.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 .2rem rgba(201,162,39,0.2);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border: none;
  color: var(--navy-950);
  font-weight: 600;
  letter-spacing: .3px;
}
.btn-gold:hover { color: var(--navy-950); filter: brightness(1.05); }

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  letter-spacing: .5px;
}
.brand-badge .icon-box {
  width: 40px; height: 40px;
  background: var(--gold);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy-950);
  font-size: 1.2rem;
}

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

.sidebar {
  width: 260px;
  background: var(--navy-900);
  color: #fff;
  flex-shrink: 0;
  position: fixed;
  top: 0; bottom: 0; left: 0;
  z-index: 1030;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease;
}

.sidebar .brand { padding: 1.6rem 1.4rem; border-bottom: 1px solid rgba(255,255,255,0.08); }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 1rem .8rem; }

.sidebar-nav .nav-link {
  color: var(--slate-300);
  border-radius: 10px;
  padding: .7rem 1rem;
  margin-bottom: .25rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.sidebar-nav .nav-link i { font-size: 1.05rem; width: 20px; text-align: center; }
.sidebar-nav .nav-link:hover { background: rgba(255,255,255,0.06); color: #fff; }
.sidebar-nav .nav-link.active { background: var(--gold); color: var(--navy-950); font-weight: 600; }

.sidebar-footer { padding: 1rem 1.4rem; border-top: 1px solid rgba(255,255,255,0.08); font-size: .8rem; color: var(--slate-300); }

.main-content { margin-left: 260px; flex: 1; min-width: 0; }

.topbar {
  background: #fff;
  border-bottom: 1px solid #e8ecf1;
  padding: .9rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1020;
}

.avatar-circle {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}

.content-area { padding: 1.8rem; }

.stat-card {
  border: none;
  border-radius: 16px;
  padding: 1.4rem;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(13,27,42,0.12);
}
.stat-card.bg-navy { background: linear-gradient(135deg, var(--navy-800), var(--navy-950)); }
.stat-card.bg-gold { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--navy-950); }
.stat-card.bg-teal { background: linear-gradient(135deg, #1fae7d, #0f6e50); }
.stat-card.bg-plum { background: linear-gradient(135deg, #7a4cc9, #4a2a86); }
.stat-card .stat-icon {
  position: absolute; right: 1rem; top: 1rem; font-size: 2.2rem; opacity: .25;
}
.stat-card .stat-value { font-size: 2rem; font-weight: 700; }

.panel {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #eef1f5;
  box-shadow: 0 6px 20px rgba(13,27,42,0.05);
}

.project-thumb {
  width: 56px; height: 56px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.badge-status-planning { background: #edf1f7; color: #445; }
.badge-status-in_progress { background: #fff3d9; color: #8a6300; }
.badge-status-completed { background: #e2f8ec; color: #12784a; }
.badge-status-on_hold { background: #fde8e8; color: #b23434; }

.progress { height: 6px; border-radius: 10px; }
.progress-bar { background: var(--gold); }

.sidebar-toggle-btn { display: none; }

@media (max-width: 991.98px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.show { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .sidebar-toggle-btn { display: inline-flex; }
}

@media (max-width: 767.98px) {
  .auth-visual { display: none !important; }
}
