/* FWPart Lab Admin Console - Dark Theme (INICal/INISvn 톤) */
:root {
    --bg-body:    #0d1117;
    --bg-card:    #161b22;
    --bg-input:   #21262d;
    --border:     #30363d;
    --text:       #e6edf3;
    --text-muted: #adbac7;
    --text-faint: #7d8590;
    --accent:     #388bfd;
    --green:      #3fb950;
    --orange:     #f0883e;
    --purple:     #bc8cff;
    --red:        #f85149;
}
* { box-sizing: border-box; }
body {
    background: var(--bg-body);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0; padding: 0;
}
.navbar { background: var(--bg-card) !important; border-bottom: 1px solid var(--border); padding: 10px 0; }
.logo-icon { width: 44px; height: 44px; background: #2a1f3d; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.brand-title { font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.2; }
.brand-sub { font-size: 10px; color: var(--text-muted); }
.nav-link { color: var(--text-muted) !important; font-size: 14px; padding: 6px 12px !important; border-radius: 6px; transition: all 0.15s; }
.nav-link:hover, .nav-link.active { color: var(--text) !important; background: var(--bg-input); }
.nav-link.active { color: var(--accent) !important; }
.text-muted { color: var(--text-muted) !important; }
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; color: var(--text); }
.card-header { background: var(--bg-card); border-bottom: 1px solid var(--border); padding: 12px 16px; font-weight: 600; }
.form-control, .form-select { background: var(--bg-input); border: 1px solid var(--border); color: var(--text); }
.form-control:focus, .form-select:focus { background: var(--bg-input); border-color: var(--accent); color: var(--text); box-shadow: 0 0 0 2px rgba(56,139,253,0.25); }
.btn-primary { background: var(--accent); border-color: var(--accent); }
.btn-primary:hover { background: #1f6feb; border-color: #1f6feb; }
.btn-outline-secondary { border-color: var(--border); color: var(--text-muted); }
.btn-outline-secondary:hover { background: var(--bg-input); color: var(--text); border-color: var(--border); }
.alert-danger { background: #2d0f0e; border-color: #da3633; color: #f85149; }
.alert-success { background: #1a2e22; border-color: #238636; color: #3fb950; }
.alert-warning { background: #2e2410; border-color: #d29922; color: #d29922; }
.alert-info { background: #0d2233; border-color: #1f6feb; color: #79c0ff; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: #58a6ff; text-decoration: underline; }
hr { border-color: var(--border); }

/* 로그인 화면 */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-card { width: 100%; max-width: 400px; }
.login-card .card-body { padding: 30px; }
.login-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.login-logo .logo-icon { width: 48px; height: 48px; background: #1a2d4a; }

/* 대시보드 타일 그리드 */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.tile {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
    padding: 18px; text-decoration: none; color: var(--text);
    transition: border-color 0.15s, transform 0.1s;
    display: flex; flex-direction: column; gap: 8px;
}
.tile:hover { border-color: var(--accent); transform: translateY(-1px); color: var(--text); text-decoration: none; }
.tile-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.tile-icon.blue   { background: #1f2d3d; color: #58a6ff; }
.tile-icon.green  { background: #1a2e22; color: #3fb950; }
.tile-icon.orange { background: #2e1f0a; color: #f0883e; }
.tile-icon.purple { background: #2a1f3d; color: #bc8cff; }
.tile-icon.pink   { background: #3d1f30; color: #f778ba; }
.tile-icon.red    { background: #2d0f0e; color: #f85149; }
.tile-name { font-size: 14px; font-weight: 600; }
.tile-desc { font-size: 11px; color: var(--text-muted); line-height: 1.4; }
.tile-tag { font-size: 10px; padding: 2px 7px; border-radius: 10px; background: var(--bg-input); color: var(--text-muted); display: inline-block; align-self: flex-start; }

/* 카테고리 헤더 */
.section-title { font-size: 13px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin: 24px 0 12px; padding-left: 4px; }
.section-title:first-child { margin-top: 0; }

/* TOTP QR */
.qr-box { background: #fff; padding: 16px; border-radius: 8px; display: inline-block; }
.totp-secret { font-family: Consolas, monospace; background: var(--bg-input); padding: 8px 12px; border-radius: 6px; font-size: 13px; letter-spacing: 0.1em; }
.backup-codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.backup-codes code { background: var(--bg-input); padding: 6px 10px; border-radius: 4px; font-size: 13px; color: var(--text); font-family: Consolas, monospace; }
