@import url('https://fonts.googleapis.com/css2?family=Google+Sans:ital,opsz,wght@0,17..18,400..700;1,17..18,400..700&display=swap');

:root{
  --primary:#dd227b;

  --bg:#0f172a;          /* main background */
  --bg2:#0b1222;         /* deeper */
  --panel:#111b33;       /* sidebar panel */
  --card:#1a2647;        /* card surface */
  --card2:#162040;       /* alt surface */
  --stroke: rgba(255,255,255,.08);
  --stroke2: rgba(255,255,255,.06);

  --text:#e6e9ef;
  --muted: rgba(230,233,239,.62);

  --r: 2px;             /* material-ish rounding */
  --r2: 2px;

  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --shadow2: 0 16px 44px rgba(0,0,0,.40);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;	
  font-family: "Google Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "GRAD" 0;
  color: var(--text);
  background:
    radial-gradient(900px 600px at 18% 0%, rgba(221,34,123,.14), transparent 60%),
    radial-gradient(900px 600px at 90% 10%, rgba(70,120,255,.10), transparent 55%),
    linear-gradient(180deg, var(--bg2), var(--bg) 55%, var(--bg2));
}

a{ color: var(--primary); text-decoration:none; }
a:hover{ text-decoration:underline; }

/* layout */
.container{
  max-width: 1480px;
  margin: 0 auto;
  padding: 22px 26px;
}

.app{
  display:grid;
  grid-template-columns: 270px 1fr;
  gap: 22px;
  align-items:start;
}

/* sidebar */
.sidebar{
  position: sticky;
  top: 18px;
  border-radius: var(--r);
  border: 1px solid var(--stroke2);
  background:
    linear-gradient(180deg, rgba(17,27,51,.95), rgba(12,18,34,.95)),
    repeating-linear-gradient(135deg, rgba(255,255,255,.02) 0 2px, transparent 2px 10px);
  box-shadow: var(--shadow);
  padding: 14px;
  overflow:hidden;
}

.sidebar:before{
  content:"";
  position:absolute;
  inset:-60px -80px auto auto;
  width:220px;
  height:220px;
  background: radial-gradient(circle at 30% 30%, rgba(221,34,123,.22), transparent 60%);
  filter: blur(6px);
  pointer-events:none;
}

.sidebar .brand{
  position:relative;
  font-weight:900;
  letter-spacing:.6px;
  text-transform:uppercase;
  font-size: 13px;
  margin-bottom: 8px;
}
.sidebar .brand img {
	max-width: 200px;
}
.sidebar .muted{
  position:relative;
  color: var(--muted);
  font-size: 12px;
  margin: 0 0 12px 0;
}

.sidebar .nav-link{
  position:relative;
  display:flex;
  align-items:center;
  gap:10px;
  padding: 11px 12px;
  border-radius: var(--r2);
  color: rgba(230,233,239,.90);
  border: 1px solid transparent;
  background: transparent;
}

.sidebar .nav-link:hover{
  background: rgba(255,255,255,.04);
  border-color: var(--stroke2);
  text-decoration:none;
}

.sidebar .nav-link.active{
  background: rgba(221,34,123,1);
  border-color: rgba(221,34,123,.40);
  box-shadow: 0 0 0 3px rgba(221,34,123,.12);
  color:#fff;
}

/* main */
.main{ min-width:0; }

/* top nav (material-ish) */
.topnav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 16px;
  border-radius: var(--r);
  border: 1px solid var(--stroke2);
  background: rgba(12,18,34,.55);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.topnav .crumb{
  font-size: 12px;
  color: var(--muted);
}

.topnav .title{
  font-size: 18px;
  font-weight: 800;
  margin-top: 2px;
}

.topnav-right{
  display:flex;
  align-items:center;
  gap: 10px;
}

.topnav-search{
  display:flex;
  align-items:center;
  gap: 8px;
  border: 1px solid var(--stroke2);
  background: rgba(0,0,0,.16);
  border-radius: 999px;
  padding: 7px 10px;
}

.topnav-search input{
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  width: 240px;
}

.topnav-search button{
  border: 0;
  background: rgba(255,255,255,.08);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 10px;
  cursor:pointer;
}

.iconbtn{
  width: 38px;
  height: 38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 999px;
  border: 1px solid var(--stroke2);
  background: rgba(255,255,255,.05);
  color: var(--text);
  text-decoration:none;
}
.iconbtn:hover{ background: rgba(255,255,255,.08); text-decoration:none; }

/* cards */
.grid{ display:grid; grid-template-columns: 1fr; gap: 16px; margin-top: 16px; }
@media(min-width: 900px){ .grid.two{ grid-template-columns: 1fr 1fr; } }

.card{
  border: 1px solid var(--stroke2);
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(26,38,71,.92), rgba(20,32,64,.92));
  box-shadow: var(--shadow2);
  padding: 18px;
}

.card h2{
  margin:0 0 12px 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .2px;
}

.muted{ color: var(--muted); }

/* table */
.table{
  width:100%;
  border-collapse: collapse;
  border-radius: var(--r);
  overflow:hidden;
  border: 1px solid var(--stroke2);
  background: rgba(0,0,0,.10);
}

.table th, .table td{
  padding: 11px 10px;
  border-bottom: 1px solid var(--stroke2);
  vertical-align: top;
}

.table th{
  color: rgba(230,233,239,.70);
  font-weight: 800;
  text-align:left;
  background: rgba(0,0,0,.18);
}

.table tr:hover td{
  background: rgba(255,255,255,.03);
}

/* forms */
.row{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; }

input, select, textarea{
  width:100%;
  padding:10px 12px;
  border-radius: var(--r2);
  border:1px solid var(--stroke);
  background: rgba(0,0,0,.20);
  color: var(--text);
  outline:none;
}

input:focus, select:focus, textarea:focus{
  border-color: rgba(221,34,123,.55);
  box-shadow: 0 0 0 3px rgba(221,34,123,.16);
}

textarea{ min-height:96px; resize:vertical; }

/* buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 12px;
  border-radius: var(--r2);
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.06);
  color: var(--text);
  cursor:pointer;
}

.btn:hover{ background: rgba(255,255,255,.09); }

.btn.primary{
  border-color: rgba(221,34,123,.55);
  background: rgba(221,34,123,1);
}

.btn.primary:hover{
  background: rgba(221,34,123,.24);
}

.btn.danger{
  border-color: rgba(255,91,91,.45);
  background: rgba(255,91,91,.12);
}

.btn.small{ padding:6px 10px; border-radius: 10px; font-size:12px; }

/* notices */
.notice{
  border: 1px solid var(--stroke2);
  padding: 10px 12px;
  border-radius: var(--r);
  margin: 12px 0 0 0;
  background: rgba(17,27,51,.65);
}
.notice.error{ border-color: rgba(255,91,91,.35); }
.notice.success{ border-color: rgba(48,209,88,.35); }

/* badges */
.badge{
  display:inline-flex; align-items:center; gap:6px;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid var(--stroke);
  font-size:12px;
  color: var(--text);
}
.badge.ok{ border-color: rgba(48,209,88,.35); }
.badge.warn{ border-color: rgba(255,204,0,.35); }
.badge.danger{ border-color: rgba(255,91,91,.35); }
.badge.gray{ opacity:.85; }

/* Login screen */
.login-shell{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:28px;
  background:
    radial-gradient(700px 500px at 35% 20%, rgba(221,34,123,.22), transparent 60%),
    radial-gradient(700px 500px at 75% 80%, rgba(60,100,255,.12), transparent 60%),
    linear-gradient(180deg, var(--bg2), var(--bg));
}

.login-brand{
  text-align:center;
  margin-bottom:22px;
}

.login-logo{
  font-size:34px;
  line-height:1;
  font-weight:900;
  letter-spacing:-1px;
  color:var(--primary);
}

.login-logo span{
  color:var(--text);
}
.login-logo img {
	width: 250px;
}
.login-subtitle{
  color:var(--muted);
  font-size:13px;
  margin-top:8px;
  letter-spacing:.3px;
}

.login-main{
  width:100%;
  max-width:460px;
}

.login-main .card{
  padding:28px;
}

.login-main .card h2{
  font-size:22px;
  margin-bottom:8px;
}

.login-main .muted{
  margin-bottom:20px;
}

.login-main label{
  display:block;
  color:var(--muted);
  font-size:13px;
  margin:14px 0 6px;
}

.login-main input{
  height:44px;
}

.login-main .btn,
.login-main button{
  margin-top:18px;
}

/* responsive */
@media(max-width: 980px){
  .app{ grid-template-columns: 1fr; }
  .sidebar{ position: relative; top:auto; }
  .topnav-search input{ width: 160px; }
}