/* EXACTV5 Global UI — Kawai Tech */

:root{
  --bg:#f6f8fb;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --border:#e2e8f0;

  --primary:#10b981;
  --primary-700:#047857;
  --dark:#064e3b;

  --danger:#ef4444;
  --warning:#f59e0b;
  --info:#3b82f6;

  --radius:18px;
  --radius-sm:12px;
  --shadow:0 12px 30px rgba(15,23,42,.06);
  --shadow2:0 10px 18px rgba(0,0,0,.08);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Plus Jakarta Sans", sans-serif;
  background: radial-gradient(1200px 600px at 20% -10%, rgba(16,185,129,.12), transparent 60%),
              radial-gradient(900px 500px at 90% 0%, rgba(59,130,246,.10), transparent 55%),
              var(--bg);
  color:var(--text);
}

/* Layout */
.app{
  display:flex;
  min-height:100vh;
}

.sidebar{
  width:270px;
  background: linear-gradient(180deg, #053f2e 0%, #064e3b 55%, #033528 100%);
  color:#eafff6;
  padding:18px 16px;
  position:sticky;
  top:0;
  height:100vh;
  border-right:1px solid rgba(255,255,255,.08);
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 10px 18px;
}
.brand .logo{
  width:40px;height:40px;
  border-radius:14px;
  background: rgba(16,185,129,.18);
  display:flex;align-items:center;justify-content:center;
  border:1px solid rgba(255,255,255,.15);
  box-shadow: var(--shadow2);
}
.brand .title{
  line-height:1.1;
}
.brand .title b{
  font-size:15px;letter-spacing:.3px;
}
.brand .title small{
  display:block;
  font-size:11px;
  opacity:.85;
  font-weight:700;
  margin-top:2px;
}

.nav{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-top:6px;
}
.nav a{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  color:#dcfce7;
  text-decoration:none;
  font-weight:800;
  font-size:13px;
  border-radius:14px;
  border:1px solid transparent;
  transition:.15s;
}
.nav a:hover{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.12);
  transform: translateY(-1px);
}
.nav a.active{
  background: rgba(16,185,129,.18);
  border-color: rgba(16,185,129,.35);
}

.sidebar .meta{
  margin-top:auto;
  padding:12px 10px 6px;
  opacity:.9;
  font-size:11px;
  font-weight:800;
  color:#bbf7d0;
}

.main{
  flex:1;
  padding:18px 18px 0;
}

.topbar{
  position:sticky;
  top:0;
  z-index:20;
  background: rgba(246,248,251,.75);
  backdrop-filter: blur(10px);
  border:1px solid rgba(226,232,240,.7);
  border-radius: var(--radius);
  padding:14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  box-shadow: var(--shadow);
}

.topbar .who{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.topbar .who b{
  font-size:15px;
}
.topbar .who small{
  font-weight:800;
  color:var(--muted);
}

.actions{
  display:flex;
  align-items:center;
  gap:10px;
}

.btn{
  border:none;
  padding:10px 14px;
  border-radius: 14px;
  font-weight:900;
  cursor:pointer;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:8px;
  transition:.15s;
  font-size:13px;
}
.btn:hover{ transform: translateY(-1px); }
.btn-primary{
  background: var(--primary);
  color:white;
  box-shadow: 0 12px 20px rgba(16,185,129,.18);
}
.btn-primary:hover{ background: #0ea371; }
.btn-ghost{
  background:#fff;
  border:1px solid var(--border);
  color:var(--text);
}
.btn-danger{
  background: var(--danger);
  color:#fff;
}

.content{
  padding:18px 2px 80px;
}

.card{
  background: var(--card);
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:18px;
}

.grid{
  display:grid;
  gap:14px;
}
.grid.two{ grid-template-columns: 1fr 1fr; }
.grid.three{ grid-template-columns: repeat(3, 1fr); }

@media (max-width: 980px){
  .sidebar{ display:none; }
  .main{ padding:14px 12px 0; }
  .grid.two, .grid.three{ grid-template-columns: 1fr; }
}

/* Table */
.table{
  width:100%;
  border-collapse:collapse;
  overflow:hidden;
  border-radius: 14px;
}
.table th{
  background:#f8fafc;
  border-bottom:2px solid var(--border);
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:11px;
  color:var(--muted);
  padding:12px;
  text-align:left;
}
.table td{
  border-bottom:1px solid #eef2f7;
  padding:12px;
  font-size:14px;
}
.table tr:hover td{ background: #f0fdf4; }

/* Forms */
.input, select, textarea{
  width:100%;
  padding:12px 12px;
  border:1px solid var(--border);
  border-radius: 14px;
  outline:none;
  font-weight:700;
  font-family: inherit;
  background:#fff;
}
textarea{ min-height:120px; resize: vertical; }
.input:focus, select:focus, textarea:focus{
  border-color: rgba(16,185,129,.55);
  box-shadow: 0 0 0 4px rgba(16,185,129,.12);
}

/* Footer */
.footer{
  margin-top:18px;
  padding:18px 10px;
  color:var(--muted);
  font-weight:900;
  font-size:12px;
  text-align:center;
  border-top:1px solid rgba(226,232,240,.8);
}
