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

:root{
  --sidebar-w: 260px;
  --bg-1: #0b1224;
  --bg-2: #0f172a;
  --accent: #f59e0b;
  --accent-2: #f97316;
  --text-muted: #94a3b8;
  --card: #ffffff;
}

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

body{
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at 20% 20%, rgba(245,158,11,.08), transparent 25%),
              radial-gradient(circle at 80% 0%, rgba(249,115,22,.1), transparent 30%),
              linear-gradient(135deg, var(--bg-1), var(--bg-2));
  color:#0f172a;
  min-height:100vh;
}

.layout{
  display:flex;
  min-height:100vh;
  background: linear-gradient(135deg, rgba(15,23,42,.9), rgba(17,24,39,.94));
}

.sidebar{
  width: var(--sidebar-w);
  background: rgba(15,23,42,.88);
  color:#fff;
  display:flex;
  flex-direction:column;
  padding:18px;
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 32px rgba(0,0,0,.35);
}

.sidebar-brand{
  display:flex;
  gap:12px;
  align-items:center;
  padding:10px 8px 18px 8px;
  border-bottom:1px solid rgba(255,255,255,.08);
  margin-bottom:14px;
}
.brand-logo{
  width:48px;
  height:48px;
  object-fit:cover;
  border-radius:12px;
  border:2px solid rgba(255,255,255,.08);
  box-shadow:0 10px 25px rgba(0,0,0,.2);
}
.brand-title{ font-weight:700; letter-spacing:.4px; }
.brand-subtitle{ font-size:12px; color:rgba(255,255,255,.6); }

.sidebar-nav{ display:flex; flex-direction:column; gap:6px; margin-top:6px; }
.nav-item{
  color:rgba(255,255,255,.82);
  text-decoration:none;
  padding:11px 12px;
  border-radius:12px;
  font-weight:600;
  display:flex;
  align-items:center;
  gap:10px;
  border-left:3px solid transparent;
  transition:all .18s ease;
}
.nav-item:hover{
  background: rgba(255,255,255,.08);
  color:#fff;
  border-left-color: rgba(245,158,11,.65);
}
.nav-item.active{
  background: rgba(245,158,11,.16);
  color:#fff;
  border-left-color: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.sidebar-footer{
  margin-top:auto;
  padding-top:12px;
  border-top:1px solid rgba(255,255,255,.08);
  font-size:14px;
}

.main{
  flex:1;
  background: linear-gradient(180deg, #0f172a 0%, #0f172a 42%, #f7f8fb 42%, #f7f8fb 100%);
}
.topbar{
  background: rgba(255,255,255,.9);
  border-bottom:1px solid rgba(0,0,0,.05);
  padding:14px 18px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  position:sticky;
  top:0;
  backdrop-filter: blur(6px);
  z-index:10;
}

.hero-panel{
  background: linear-gradient(120deg, rgba(15,23,42,.98), rgba(15,23,42,.88), rgba(17,24,39,.85));
  color:#e2e8f0;
  border-radius:18px;
  padding:20px;
  box-shadow: 0 20px 35px rgba(0,0,0,.25);
  border:1px solid rgba(255,255,255,.06);
}
.hero-panel .chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 12px;
  border-radius:999px;
  background: rgba(255,255,255,.1);
  color:#f8fafc;
  font-size:12px;
  border:1px solid rgba(255,255,255,.06);
}
.hero-logo{
  width:64px;
  height:64px;
  border-radius:16px;
  object-fit:cover;
  border:2px solid rgba(255,255,255,.08);
}

.card{
  border:0;
  border-radius:18px;
  box-shadow: 0 16px 40px rgba(15,23,42,.08);
}
.card-body{ padding:20px; }

.kpi-mini{
  border:1px solid rgba(0,0,0,.04);
  border-radius:12px;
  padding:12px 14px;
  background: linear-gradient(145deg, #f8fafc, #ffffff);
}
.kpi-mini .fw-semibold{ color:#0f172a; }

.btn-dark{
  background: linear-gradient(120deg, #0f172a, #111827);
  border: none;
  box-shadow: 0 10px 20px rgba(15,23,42,.24);
}
.btn-dark:hover{ background: linear-gradient(120deg, #111827, #0f172a); }

.auth-body{
  min-height:100vh;
  background: radial-gradient(circle at 20% 20%, rgba(245,158,11,.09), transparent 25%),
              radial-gradient(circle at 80% 0%, rgba(249,115,22,.12), transparent 25%),
              linear-gradient(135deg, #0b1224, #0f172a 60%, #0b1224);
  display:flex;
  align-items:center;
}
.auth-wrapper{
  width:100%;
}
.auth-hero{
  background: linear-gradient(135deg, rgba(15,23,42,.92), rgba(15,23,42,.8)),
              radial-gradient(circle at 15% 20%, rgba(245,158,11,.12), transparent 25%),
              radial-gradient(circle at 80% 10%, rgba(249,115,22,.16), transparent 28%);
  border-radius:20px;
  border:1px solid rgba(255,255,255,.06);
  box-shadow: 0 18px 40px rgba(0,0,0,.3);
  color:#e2e8f0;
}
.auth-hero-logo{
  width:56px;
  height:56px;
  border-radius:14px;
  object-fit:cover;
  border:2px solid rgba(255,255,255,.1);
  box-shadow:0 10px 20px rgba(0,0,0,.3);
}
.pill{
  display:inline-block;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  color:#e2e8f0;
  font-size:13px;
  background: rgba(255,255,255,.06);
}
.auth-card{
  border-radius:20px;
  overflow:hidden;
}
.brand-avatar{
  width:96px;
  height:96px;
  border-radius:22px;
  overflow:hidden;
  margin:0 auto;
  background:#0f172a;
  border:1px solid rgba(0,0,0,.06);
  box-shadow: 0 12px 26px rgba(0,0,0,.18);
}
.brand-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.form-control:focus{
  box-shadow: 0 0 0 .2rem rgba(245,158,11,.25);
  border-color: rgba(245,158,11,.6);
}

@media (max-width: 991px){
  .layout{
    flex-direction:column;
    background:#0f172a;
  }
  .sidebar{
    width:100%;
    flex-direction:column;
    position:sticky;
    top:0;
    z-index:30;
    gap:10px;
  }
  .sidebar-brand{
    margin-bottom:4px;
    padding-bottom:10px;
  }
  .brand-logo{ width:42px; height:42px; }
  .sidebar-nav{
    flex-direction:row;
    flex-wrap:wrap;
    gap:8px;
  }
  .nav-item{
    padding:9px 10px;
    font-size:14px;
  }
  .sidebar-footer{
    width:100%;
    display:flex;
    align-items:center;
    gap:8px;
    border-top:0;
    padding-top:0;
  }
  .main{
    background:#f7f8fb;
  }
  .topbar{
    position:static;
    padding:12px 14px;
  }
  .hero-panel{
    padding:16px;
  }
  .hero-logo{
    width:52px;
    height:52px;
  }
}

@media (max-width: 575px){
  .sidebar-nav{
    overflow-x:auto;
    flex-wrap:nowrap;
  }
  .nav-item{
    white-space:nowrap;
  }
  .card-body{
    padding:16px;
  }
  .auth-wrapper{
    padding-top:24px;
    padding-bottom:24px;
  }
}
