/* File: /public/assets/css/app.css
 * Module: GlobalDesign
 * Purpose: 글로벌/미니멀/프로덕션급 기본 UI
 * Linked: /app/Views/layouts/app.php
 * Version: v1.0 (2026-01-16)
 */

:root{
  --bg: #0b1220;
  --panel: rgba(255,255,255,.06);
  --panel-2: rgba(255,255,255,.08);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.62);
  --line: rgba(255,255,255,.10);

  --brand: #7c5cff; /* global-ish accent */
  --brand-2: #39d0ff;

  --r12: 12px;
  --r16: 16px;
  --shadow: 0 12px 40px rgba(0,0,0,.35);

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans KR", Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(124,92,255,.25), transparent 55%),
    radial-gradient(900px 500px at 85% 5%, rgba(57,208,255,.18), transparent 55%),
    var(--bg);
}

a{ color:inherit; text-decoration:none; }
a:hover{ opacity:.92; }

.app-shell{ min-height:100%; }

.topbar{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(16px);
  background: rgba(10,16,28,.55);
  border-bottom: 1px solid var(--line);
}

.topbar-inner{
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 18px;
  display:flex;
  align-items:center;
  gap:16px;
}

.brand{ display:flex; align-items:center; gap:10px; min-width:200px; }
.logo-dot{
  width:14px; height:14px; border-radius:7px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 0 6px rgba(124,92,255,.12);
}
.brand-name{ font-weight:700; letter-spacing:.2px; }

.topnav{
  display:flex; gap:8px;
  padding: 6px;
  background: rgba(255,255,255,.04);
  border:1px solid var(--line);
  border-radius: 999px;
  margin: 0 auto; /* centered */
}

.topnav-link{
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--muted);
}
.topnav-link:hover{
  color: var(--text);
  background: rgba(255,255,255,.06);
}

.topbar-right{ display:flex; align-items:center; gap:10px; min-width:200px; justify-content:flex-end; }

.main{
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px;
  display:grid;
  grid-template-columns: 260px 1fr;
  gap: 18px;
}

.sidebar{
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  border-radius: var(--r16);
  padding: 14px;
  box-shadow: var(--shadow);
  height: fit-content;
}

.sidebar-section{ padding: 8px; }
.sidebar-title{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  margin: 6px 6px 10px;
}
.side-link{
  display:block;
  padding: 10px 10px;
  border-radius: 12px;
  color: var(--muted);
}
.side-link:hover{
  color: var(--text);
  background: rgba(255,255,255,.06);
}

.content{ min-height: 70vh; }

.card{
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  border-radius: var(--r16);
  box-shadow: var(--shadow);
}
.card-body{ padding: 16px; }

.grid{
  display:grid;
  gap: 14px;
}
.grid-2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }

.h1{ font-size: 22px; margin:0 0 8px; letter-spacing:.2px; }
.sub{ color: var(--muted); margin:0 0 16px; }

.row{ display:flex; align-items:center; gap:10px; }
.row-between{ display:flex; align-items:center; justify-content:space-between; gap:10px; }

.pill{
  padding: 7px 10px;
  border-radius: 999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
}

.badge{
  display:inline-flex; align-items:center; gap:6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--muted);
}
.badge-ok{ color: rgba(110,255,197,.9); border-color: rgba(110,255,197,.25); }
.badge-wip{ color: rgba(255,216,120,.9); border-color: rgba(255,216,120,.25); }

.btn{
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 12px;
  cursor:pointer;
  font-weight: 700;
}
.btn:hover{ background: rgba(255,255,255,.09); }
.btn:active{ transform: translateY(1px); }

.btn-primary{
  border-color: rgba(124,92,255,.38);
  background: linear-gradient(135deg, rgba(124,92,255,.95), rgba(57,208,255,.55));
}
.btn-ghost{
  background: transparent;
}

.input, .textarea{
  width: 100%;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--text);
  border-radius: 12px;
  padding: 11px 12px;
  outline:none;
}
.input:focus, .textarea:focus{
  border-color: rgba(124,92,255,.55);
  box-shadow: 0 0 0 6px rgba(124,92,255,.12);
}
.label{ color: var(--muted); font-size: 12px; margin-bottom: 6px; display:block; }

.table{
  width:100%;
  border-collapse: collapse;
  overflow:hidden;
  border-radius: var(--r16);
}
.table th,.table td{
  padding: 12px 12px;
  border-bottom: 1px solid var(--line);
  text-align:left;
  font-size: 14px;
}
.table th{ color: var(--muted); font-weight: 700; }

.progress{
  height: 10px;
  border-radius: 999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  overflow:hidden;
}
.progress > div{
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.modal-root{ position:fixed; inset:0; display:none; }
.modal-root[aria-hidden="false"]{ display:block; }
.modal-backdrop{
  position:absolute; inset:0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(8px);
}
.modal{
  position: relative;
  width: min(860px, calc(100vw - 24px));
  margin: 70px auto;
  border-radius: 18px;
  border:1px solid var(--line);
  background: rgba(16,22,36,.92);
  box-shadow: var(--shadow);
}
.modal-head{
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.modal-title{ font-weight: 800; }
.modal-body{ padding: 16px; }
.icon-x{
  width: 42px; height: 42px;
  display:grid; place-items:center;
  border-radius: 12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  cursor:pointer;
}
.icon-x:hover{ background: rgba(255,255,255,.08); }

@media (max-width: 980px){
  .main{ grid-template-columns: 1fr; }
  .brand{ min-width: auto; }
  .topbar-right{ min-width:auto; }
}


