/* RT Manager - Light Modern Professional (No DB) */
:root{
  --bg:#f5f7fb;
  --panel: rgba(255,255,255,.72);
  --card:#ffffff;
  --card2:#ffffff;
  --muted:#5b6b86;
  --text:#0b1220;
  --line: rgba(11,18,32,.10);
  --primary:#2563eb;
  --primary2:#06b6d4;
  --danger:#e11d48;
  --warning:#f59e0b;
  --ok:#16a34a;
  --shadow: 0 18px 45px rgba(15,23,42,.10);
  --radius:18px;
  --radius2:24px;
  --blur: 14px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  background:
    radial-gradient(1200px 600px at 10% 10%, rgba(37,99,235,.10), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(6,182,212,.10), transparent 55%),
    radial-gradient(700px 500px at 50% 100%, rgba(225,29,72,.06), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 55%, #ffffff 100%);
  color:var(--text);
}
a{color:inherit; text-decoration:none}
button, input, select, textarea{font:inherit}
img{max-width:100%}
.container{width:min(1120px, 100% - 32px); margin-inline:auto;}
.topbar{
  position:sticky; top:0; z-index:30;
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  background: rgba(255,255,255,.70);
  border-bottom:1px solid var(--line);
}
.topbar-inner{display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 0;}
.brand{display:flex; align-items:center; gap:10px; font-weight:900; letter-spacing:.2px;}
.brand .logo{
  width:38px; height:38px; border-radius:12px;
  background: linear-gradient(135deg, rgba(37,99,235,.98), rgba(6,182,212,.92));
  box-shadow: 0 10px 25px rgba(37,99,235,.18);
  display:grid; place-items:center;
}
.badge{
  padding:6px 10px; border-radius:999px;
  border:1px solid var(--line);
  color:var(--muted); font-size:12px;
  display:flex; align-items:center; gap:8px;
  background: rgba(255,255,255,.70);
}
.badge .dot{
  width:8px; height:8px; border-radius:50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(22,163,74,.10);
}
.icon-btn{
  display:inline-flex; align-items:center; justify-content:center;
  width:42px; height:42px; border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.75);
  color:var(--text); cursor:pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.icon-btn:active{transform: scale(.98)}
.icon-btn:hover{background: rgba(255,255,255,.95); border-color: rgba(11,18,32,.16)}
.icon{width:18px; height:18px; display:inline-block; vertical-align:middle}
.layout{display:grid; grid-template-columns: 280px 1fr; gap:18px; padding:18px 0 28px;}
@media (max-width: 920px){ .layout{grid-template-columns:1fr} }
.sidebar{
  position:sticky; top:82px; align-self:start;
  border:1px solid var(--line);
  background: rgba(255,255,255,.70);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  overflow:hidden;
}
@media (max-width: 920px){ .sidebar{position:relative; top:0} }
.side-head{padding:18px 18px 10px; border-bottom:1px solid var(--line);}
.side-head .title{
  font-size:12px; color: var(--muted); margin:0 0 10px;
  font-weight:900; letter-spacing:.2px; text-transform:uppercase;
}
.user-card{
  display:flex; gap:12px; align-items:center;
  padding:12px; border-radius:16px;
  background: rgba(37,99,235,.06);
  border: 1px solid rgba(11,18,32,.10);
}
.avatar{
  width:42px; height:42px; border-radius:14px;
  background: radial-gradient(circle at 30% 30%, rgba(37,99,235,.95), rgba(6,182,212,.65));
  display:grid; place-items:center;
  font-weight:1000; color:#fff;
}
.user-meta{line-height:1.2}
.user-meta .name{font-weight:1000}
.user-meta .role{font-size:12px; color:var(--muted); margin-top:3px}
.nav{padding:12px; display:flex; flex-direction:column; gap:8px;}
.nav a{
  display:flex; gap:12px; align-items:center;
  padding:12px 12px; border-radius:16px;
  border:1px solid transparent; color: var(--text);
  background: rgba(0,0,0,0);
  transition: background .12s ease, border-color .12s ease, transform .12s ease;
}
.nav a:hover{background: rgba(37,99,235,.06); border-color: rgba(11,18,32,.08)}
.nav a:active{transform: scale(.99)}
.nav a.active{
  background: linear-gradient(135deg, rgba(37,99,235,.10), rgba(6,182,212,.10));
  border-color: rgba(37,99,235,.18);
}
.nav .lbl{font-weight:900}
.nav .sub{font-size:12px; color:var(--muted); margin-top:2px}
.nav .meta{
  margin-left:auto; font-size:12px; color:var(--muted);
  padding:4px 8px; border-radius:999px;
  border:1px solid var(--line); background: rgba(255,255,255,.7)
}
.side-foot{padding:12px 12px 16px; border-top:1px solid var(--line); display:flex; gap:10px;}
.main{min-width:0}
.hero{
  border:1px solid var(--line);
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  padding:18px;
}
.hero-grid{display:grid; grid-template-columns: 1.2fr .8fr; gap:16px;}
@media (max-width: 920px){ .hero-grid{grid-template-columns:1fr} }
.h-title{font-size:22px; margin:0 0 8px; letter-spacing:.2px; font-weight:1000;}
.h-sub{margin:0; color:var(--muted); line-height:1.5;}
.quick{display:flex; gap:10px; flex-wrap:wrap; margin-top:14px;}
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:12px 14px; border-radius: 16px;
  border:1px solid rgba(11,18,32,.12);
  background: rgba(255,255,255,.85);
  color: var(--text); cursor:pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
  text-decoration:none; user-select:none; font-weight:1000;
}
.btn:hover{background: rgba(255,255,255,.98); border-color: rgba(11,18,32,.18)}
.btn:active{transform: scale(.99)}
.btn.primary{
  background: linear-gradient(135deg, rgba(37,99,235,.18), rgba(6,182,212,.12));
  border-color: rgba(37,99,235,.22);
}
.btn.danger{
  background: rgba(225,29,72,.08);
  border-color: rgba(225,29,72,.18);
  color: #9f1239;
}
.btn .pill{
  font-size:12px; padding:4px 8px; border-radius:999px;
  border:1px solid var(--line); color:var(--muted);
  background: rgba(255,255,255,.7);
}
.cards{margin-top:16px; display:grid; grid-template-columns: repeat(12, 1fr); gap:16px;}
.card{
  grid-column: span 4;
  border:1px solid var(--line);
  background: rgba(255,255,255,.78);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  padding:16px; min-width:0;
}
@media (max-width: 920px){ .card{grid-column: span 12} }
.card .kpi{display:flex; align-items:flex-start; justify-content:space-between; gap:12px;}
.kpi h3{margin:0; font-size:13px; color:var(--muted); font-weight:1000; letter-spacing:.2px; text-transform:uppercase}
.kpi .val{font-size:26px; font-weight:1100; margin-top:8px}
.kpi .trend{
  font-size:12px; color: var(--muted);
  border:1px solid var(--line);
  padding:6px 10px; border-radius:999px;
  background: rgba(255,255,255,.7);
}
.card .mini{margin-top:14px; color: var(--muted); font-size:13px; line-height:1.45;}
.card .row{display:flex; gap:10px; flex-wrap:wrap; margin-top:12px;}
.tag{
  font-size:12px; padding:6px 10px; border-radius:999px;
  border:1px solid var(--line); color: var(--muted);
  background: rgba(255,255,255,.75);
}
.section{
  margin-top:16px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.76);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.section-head{
  padding:14px 16px; border-bottom:1px solid var(--line);
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}
.section-head h2{
  margin:0; font-size:13px; color: var(--muted);
  font-weight:1100; letter-spacing:.2px; text-transform:uppercase;
}
.section-body{padding:14px 16px}
.table{width:100%; border-collapse: collapse; overflow:hidden;}
.table th, .table td{
  text-align:left; padding:12px 10px;
  border-bottom:1px solid rgba(11,18,32,.08);
  vertical-align:top; font-size:14px;
}
.table th{
  color: var(--muted); font-weight:1100; font-size:12px;
  letter-spacing:.2px; text-transform:uppercase;
}
.table tr:hover td{background: rgba(37,99,235,.04)}
.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 10px; border-radius:999px;
  border:1px solid var(--line);
  color: var(--muted); font-size:12px;
  background: rgba(255,255,255,.7);
}
.pill.ok{border-color: rgba(22,163,74,.22); background: rgba(22,163,74,.06); color:#14532d}
.pill.warn{border-color: rgba(245,158,11,.25); background: rgba(245,158,11,.06); color:#7c2d12}
.pill.danger{border-color: rgba(225,29,72,.22); background: rgba(225,29,72,.06); color:#9f1239}
.form{display:grid; grid-template-columns: repeat(12, 1fr); gap:12px;}
.field{ grid-column: span 6; }
.field.full{grid-column: span 12}
@media (max-width: 720px){ .field{grid-column: span 12} }
.label{
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:6px; color: var(--muted); font-size:12px;
  font-weight:1100; letter-spacing:.2px; text-transform:uppercase;
}
.input, .select, .textarea{
  width:100%; padding:12px 12px;
  border-radius: 16px;
  border:1px solid rgba(11,18,32,.12);
  background: rgba(255,255,255,.86);
  color: var(--text);
  outline:none;
}
.textarea{min-height:110px; resize:vertical}
.input:focus, .select:focus, .textarea:focus{
  border-color: rgba(37,99,235,.35);
  box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}
.hint{font-size:12px; color: var(--muted); margin-top:6px; line-height:1.4}
.toast{
  position:fixed; left:50%; bottom:18px;
  transform: translateX(-50%);
  z-index:200;
  width:min(520px, calc(100% - 28px));
  display:none;
}
.toast.show{display:block}
.toast-inner{
  border:1px solid rgba(11,18,32,.14);
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border-radius: 18px;
  padding:12px 14px;
  box-shadow: var(--shadow);
  display:flex; gap:12px; align-items:flex-start;
}
.toast .t-title{font-weight:1100; margin:0; font-size:14px}
.toast .t-desc{margin:3px 0 0; font-size:13px; color: var(--muted); line-height:1.35}
.toast .x{
  margin-left:auto; width:36px; height:36px;
  border-radius:14px; border:1px solid var(--line);
  background: rgba(255,255,255,.85);
  color:var(--text); cursor:pointer;
}
.footer{margin-top:18px; color: var(--muted); font-size:12px; text-align:center; padding:10px 0 24px;}
.auth-wrap{min-height:100%; display:grid; place-items:center; padding:28px 16px;}
.auth-card{
  width:min(460px, 100%);
  border:1px solid var(--line);
  background: rgba(255,255,255,.78);
  border-radius: 26px;
  box-shadow: var(--shadow);
  overflow:hidden;
}
.auth-head{ padding:18px 18px 10px; }
.auth-head h1{ margin:10px 0 0; font-size:22px; font-weight:1100; }
.auth-head p{ margin:8px 0 0; color: var(--muted); line-height:1.5 }
.auth-body{ padding: 12px 18px 18px; }
.divider{ height:1px; background: rgba(11,18,32,.08); margin: 12px 0; }
.small{ font-size:12px; color: var(--muted); line-height:1.4; }
kbd{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  padding:2px 6px;
  border-radius:8px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.8);
  color: var(--text);
}
@media (max-width: 920px){
  #sidebar{ display:none; }
  #sidebar.open{ display:block; position:relative; }
}
