
:root{
  --bg:#f3f6f9;
  --card:#ffffff;
  --text:#101828;
  --muted:#667085;
  --border:#e4e7ec;

  --nav:#0f172a;
  --nav-2:#111827;
  --nav-text:#d0d5dd;
  --nav-muted:#98a2b3;

  --accent:#18b47b;
  --accent-2:#12a36f;
  --accent-soft:#eafaf4;
  --blue:#1666d8;
  --danger:#d92d20;
  --warning:#f79009;

  --shadow:0 6px 22px rgba(16,24,40,.06);
  --shadow-lg:0 18px 44px rgba(16,24,40,.10);
  --radius:16px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:var(--bg);
  color:var(--text);
}
a{color:inherit;text-decoration:none}

/* TOPBAR */
.topbar{
  height:72px;
  background:#fff;
  border-bottom:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 24px;
  position:sticky;
  top:0;
  z-index:60;
  box-shadow:0 2px 10px rgba(16,24,40,.03);
}
.brand-wrap{
  display:flex;
  align-items:center;
  gap:12px;
}
.brand-logo{
  height:38px;
  width:auto;
  display:block;
}
.topbar-right{
  display:flex;
  align-items:center;
  gap:12px;
}
.user-pill{
  display:flex;
  align-items:center;
  gap:10px;
  padding:6px 10px 6px 7px;
  border:1px solid var(--border);
  border-radius:12px;
  background:#fff;
}
.user-dot{
  width:36px;height:36px;
  display:grid;place-items:center;
  border-radius:10px;
  background:linear-gradient(135deg,#18b47b,#0d8a61);
  color:#fff;
  font-weight:800;
}
.logout-link{
  padding:10px 13px;
  border-radius:10px;
  color:#344054;
  background:#f9fafb;
  border:1px solid var(--border);
  font-weight:700;
}

/* APP SHELL */
.shell{
  display:grid;
  grid-template-columns:250px minmax(0,1fr);
  min-height:calc(100vh - 72px);
}
.sidebar{
  background:linear-gradient(180deg,var(--nav) 0%,var(--nav-2) 100%);
  border-right:1px solid rgba(255,255,255,.03);
  padding:18px 14px;
  position:sticky;
  top:72px;
  height:calc(100vh - 72px);
  overflow:auto;
}
.sidebar a{
  display:flex;
  align-items:center;
  gap:10px;
  padding:11px 12px;
  border-radius:10px;
  margin-bottom:5px;
  font-weight:650;
  color:var(--nav-text);
  transition:.18s ease;
}
.sidebar a:hover{
  background:rgba(255,255,255,.08);
  color:#fff;
  transform:translateX(2px);
}
.sidebar a:focus{
  outline:2px solid rgba(24,180,123,.35);
}
.menu-title{
  font-size:10px;
  font-weight:800;
  color:var(--nav-muted);
  letter-spacing:.12em;
  margin:20px 12px 8px;
}
.content{
  padding:26px;
  max-width:1600px;
  width:100%;
}
.content>h1{
  font-size:26px;
  margin:0 0 18px;
  letter-spacing:-.03em;
  font-weight:800;
}

/* LOGIN */
.auth-wrap{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:32px;
  background:
    radial-gradient(circle at 15% 20%, rgba(24,180,123,.12), transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(22,102,216,.10), transparent 25%),
    #eef2f6;
}
.auth-wrap>h1{display:none}
.auth-wrap .card{
  width:min(450px,100%);
  padding:32px;
  border-radius:22px;
  box-shadow:var(--shadow-lg);
  border:1px solid rgba(228,231,236,.9);
}
.auth-wrap .card:before{
  content:"";
  display:block;
  width:210px;
  height:58px;
  margin:0 auto 24px;
  background:url('/assets/yasamlab-logo.png') center/contain no-repeat;
}

/* CARDS */
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:20px;
  box-shadow:var(--shadow);
  margin-bottom:16px;
}
.card h2{
  margin:0 0 14px;
  font-size:18px;
  letter-spacing:-.02em;
}
.grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.stat{
  font-size:32px;
  font-weight:850;
  letter-spacing:-.04em;
  color:#101828;
}
.muted{color:var(--muted)}
.kpi-note{
  font-size:12px;
  color:var(--muted);
  margin-top:5px;
}

/* DASHBOARD HERO */
.hero-card{
  position:relative;
  overflow:hidden;
  border:0;
  color:#fff;
  background:
    linear-gradient(120deg,#0f172a 0%,#132238 45%,#17384a 100%);
  box-shadow:var(--shadow-lg);
  min-height:180px;
}
.hero-card:before{
  content:"";
  position:absolute;
  inset:auto -80px -120px auto;
  width:330px;height:330px;border-radius:50%;
  background:radial-gradient(circle,rgba(24,180,123,.30),rgba(24,180,123,0) 68%);
}
.hero-card:after{
  content:"";
  position:absolute;
  right:120px;top:-90px;
  width:260px;height:260px;border-radius:50%;
  background:radial-gradient(circle,rgba(22,102,216,.20),rgba(22,102,216,0) 68%);
}
.hero-card h2,.hero-card p,.hero-logo{position:relative;z-index:2}
.hero-card .muted{color:rgba(255,255,255,.74)}
.hero-logo{
  height:52px;
  width:auto;
  margin-bottom:20px;
  filter:brightness(0) invert(1);
}

/* FORMS */
label{
  display:block;
  font-weight:650;
  color:#344054;
  margin:13px 0 6px;
}
input,select,.textarea{
  width:100%;
  padding:11px 12px;
  border:1px solid #d0d5dd;
  border-radius:10px;
  background:#fff;
  color:#101828;
  font:inherit;
  outline:none;
  transition:.18s ease;
}
input:focus,select:focus,.textarea:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 4px rgba(24,180,123,.10);
}
.textarea{min-height:130px;resize:vertical}

/* BUTTONS */
button,.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 14px;
  border:1px solid transparent;
  border-radius:10px;
  background:var(--accent);
  color:#fff;
  font-weight:750;
  cursor:pointer;
  transition:.16s ease;
  box-shadow:none;
}
button:hover,.btn:hover{
  background:var(--accent-2);
  transform:translateY(-1px);
}
.btn.secondary{
  background:#fff;
  color:#344054;
  border-color:#d0d5dd;
}
.btn.secondary:hover{
  background:#f9fafb;
}
.btn.danger{
  background:#fff;
  color:var(--danger);
  border-color:#fecdca;
}
.btn.danger:hover{
  background:#fff5f4;
}

/* TABLES */
table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  background:#fff;
  border:1px solid var(--border);
  border-radius:12px;
  overflow:hidden;
}
th,td{
  text-align:left;
  padding:12px 13px;
  border-bottom:1px solid var(--border);
  font-size:14px;
  vertical-align:top;
}
th{
  background:#f9fafb;
  color:#667085;
  text-transform:none;
  font-size:12px;
  font-weight:800;
}
tr:last-child td{border-bottom:0}
tbody tr:hover{background:#fcfcfd}

/* STATUS */
.alert{
  padding:12px 14px;
  border-radius:10px;
  margin:10px 0;
  border:1px solid transparent;
}
.success{
  background:#ecfdf3;
  color:#027a48;
  border-color:#abefc6;
}
.error{
  background:#fef3f2;
  color:#b42318;
  border-color:#fecdca;
}
.badge{
  display:inline-flex;
  align-items:center;
  padding:5px 8px;
  border-radius:999px;
  background:#f2f4f7;
  color:#475467;
  font-size:12px;
  font-weight:750;
}
.notice{
  padding:17px;
  border-left:4px solid var(--accent);
  background:#fff;
  border:1px solid var(--border);
  border-left-width:4px;
  border-radius:12px;
  margin-bottom:12px;
  box-shadow:0 3px 12px rgba(16,24,40,.035);
}
.row{display:flex;gap:10px;align-items:center}
.row>*{width:auto}
.actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.section-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}
.section-title h2{margin:0}

/* MOBILE */
@media(max-width:900px){
  .topbar{padding:0 14px}
  .brand-logo{height:32px}
  .user-pill span{display:none}
  .shell{grid-template-columns:1fr}
  .sidebar{
    position:static;
    height:auto;
    display:flex;
    overflow-x:auto;
    gap:4px;
    border-right:0;
    padding:10px;
  }
  .sidebar a{white-space:nowrap;margin:0}
  .menu-title{display:none}
  .content{padding:16px}
  .grid{grid-template-columns:1fr}
}
