/* UI/UX 개선: 관리자 요약, 모바일 가독성, 입력·상태 피드백 */
:root{color-scheme:light;scroll-behavior:smooth}body{background:#f3f6fb;color:#172033;line-height:1.5}header{position:sticky;top:0;z-index:30;padding:13px 18px;box-shadow:0 3px 14px #0f234015}header .head{display:flex;align-items:center;justify-content:space-between;gap:16px}header .brand{min-width:0}header .brand-subtitle{font-size:12px;opacity:.78;margin-top:2px}header .header-account{display:flex;align-items:center;gap:12px;min-width:0}header .account-copy{min-width:0;text-align:right;line-height:1.35}header .account-name{font-size:13px;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}header .account-detail{font-size:11px;opacity:.76;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}header .header-account button{width:auto;min-width:72px;min-height:36px;margin:0;padding:7px 11px;background:#ffffff1a;border:1px solid #ffffff55;color:#fff;font-size:12px}header .header-account button:hover{background:#ffffff2b}header h1{font-size:19px;letter-spacing:-.03em}header .head>div:last-child{font-size:12px!important}main{max-width:1080px;margin:18px auto 48px}.card{background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:var(--ui-radius);padding:20px;margin-bottom:16px;box-shadow:var(--ui-shadow)}h2{font-size:17px;letter-spacing:-.02em}h3{font-size:14px;color:#334155}label{font-size:13px;color:#334155}input,select,textarea{min-height:44px;border-radius:var(--ui-control-radius);border-color:#cbd5e1}input:focus,select:focus,textarea:focus{outline:2px solid #2563eb;outline-offset:1px;border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1f}button{min-height:44px;border-radius:var(--ui-control-radius);background:#245bdb;transition:filter .15s,transform .15s}button:hover{filter:brightness(.96)}button:active{transform:translateY(1px)}button.secondary{background:#edf2f8;color:#243247;border:1px solid #dce4ef}button.danger{background:#fff1f2;color:#b42332;border:1px solid #fecdd3}.admin-nav{position:sticky;top:58px;z-index:20;display:flex;gap:7px;overflow-x:auto;padding:9px 2px 12px;background:#f3f6fb}.admin-nav a{flex:0 0 auto;text-decoration:none;color:#334155;background:#fff;border:1px solid #dbe3ef;border-radius:999px;padding:8px 13px;font-size:12px;font-weight:700}.admin-nav a:focus,.admin-nav a:hover{border-color:#245bdb;color:#245bdb}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.stat-card{padding:13px;border:1px solid #e2e8f0;border-radius:12px;background:linear-gradient(180deg,#fff,#f9fbff)}.stat-label{font-size:12px;color:#64748b}.stat-value{font-size:24px;font-weight:800;letter-spacing:-.04em;margin-top:3px;font-variant-numeric:tabular-nums}.live-line{display:flex;align-items:center;gap:7px;font-size:12px;color:#64748b}.live-dot{width:8px;height:8px;border-radius:50%;background:#16a34a;display:inline-block}.live-dot.offline{background:#d97706}.section-anchor{scroll-margin-top:116px}.card>h2{margin-top:0}.reservation-item,.schedule-row,.vehicle{padding:14px 0}.reservation-meta{line-height:1.8}.repeat-date-row{border:1px solid #e5eaf2;border-radius:10px;padding:10px;margin-top:5px}.form-actions{margin-top:8px}.msg{border:1px solid #dbeafe}.msg.error{border-color:#fecaca}.msg.success{border-color:#bbf7d0}#globalMsg{max-width:1080px;margin:0 auto 24px;padding:0 14px}.vehicle-actions button{min-height:38px}
@media(max-width:680px){header{padding:10px 12px}header .head{gap:8px}header h1{font-size:16px}header .brand-subtitle{font-size:10px}header .header-account{gap:7px;max-width:58%}header .account-name{font-size:11px}header .account-detail{font-size:10px}header .header-account button{min-width:54px;min-height:34px;padding:6px 8px;font-size:11px}main{margin:12px auto 30px;padding:0 10px}.card{padding:15px;border-radius:var(--ui-radius);margin-bottom:11px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.stat-value{font-size:21px}.admin-nav{top:50px;margin:0 -2px}.admin-nav a{padding:7px 11px}.section-head{gap:8px}.section-head button{max-width:none;width:auto;white-space:nowrap;font-size:12px;padding:8px 10px}.row,.grid3{grid-template-columns:1fr}.form-actions{flex-direction:column}.form-actions button{width:100%}.repeat-date-row{grid-template-columns:1fr 1fr;gap:8px}.repeat-date-row label{grid-column:1/-1}.vehicle-top{gap:8px}.vehicle-name{font-size:15px}button{min-height:46px}input,select,textarea{font-size:16px}#tripStartForm button,#tripReturnForm button,#createReservationBtn{position:sticky;bottom:8px;z-index:5;box-shadow:0 4px 14px #172b4d30}}


/* Decorative heading markers keep the original text and control layout. */
.card>h2,.section-head h2,#tripSection>h2{display:flex;align-items:center;gap:8px}
.card>h2::before,.section-head h2::before,#tripSection>h2::before{content:"";width:4px;height:18px;border-radius:2px;background:#1d4ed8;flex:0 0 auto}
.stat-card{position:relative;border-color:var(--ui-border);background:var(--ui-surface);padding-left:17px}
.stat-card::before{content:"";position:absolute;left:0;top:12px;bottom:12px;width:3px;border-radius:2px;background:#1d4ed8}
.stat-card:nth-child(2)::before{background:#0e7490}.stat-card:nth-child(3)::before{background:#15803d}.stat-card:nth-child(4)::before{background:#6d28d9}

/* Candidate: 헤더 */

header{background:linear-gradient(135deg,#0f1f4d,#1e3a8a);box-shadow:0 2px 12px #0f172a30;padding:10px 18px}
header .head{max-width:1120px}
header h1{display:flex;align-items:center;gap:9px;font-size:18px;font-weight:800;letter-spacing:-.02em}
header h1::before{content:"🚗";display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:#ffffff1f;font-size:17px}
header .brand-subtitle{margin-left:41px;margin-top:0}
header .header-account button{border-radius:999px;min-height:34px;background:#ffffff14}
header .account-name{font-size:13px}


/* Candidate: 레이아웃 */

main{max-width:1120px;margin:16px auto 56px;padding:0 14px}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-1);padding:20px}
.card>h2,.section-head h2,#tripSection>h2{display:flex;align-items:center;gap:8px}
.card>h2::before,.section-head h2::before,#tripSection>h2::before{content:"";width:4px;height:18px;border-radius:2px;background:var(--brand-600);flex:0 0 auto}
h2{font-size:18px;font-weight:800;letter-spacing:-.02em;color:var(--ink)}
h3{font-size:15px;font-weight:750;color:#1f2937}
.muted{color:var(--ink-3)}
label{color:#1f2937;font-weight:650}
#loginCard{max-width:420px;margin:9vh auto 0;padding:28px 24px;box-shadow:var(--shadow-2)}
#loginCard h2{font-size:22px;margin-bottom:4px}
#loginCard button{margin-top:18px;min-height:48px;font-size:16px}
.password-gate{box-shadow:var(--shadow-2)}


/* Candidate: 관리자 대시보드 */

.stats-grid{gap:12px}
.stat-card{position:relative;overflow:hidden;border-radius:12px;background:#fff;border:1px solid var(--line);padding:14px 16px}
.stat-card::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--brand-600)}
.stat-card:nth-child(2)::before{background:#0891b2}.stat-card:nth-child(3)::before{background:var(--ok)}.stat-card:nth-child(4)::before{background:#7c3aed}
.stat-label{font-weight:650}
.stat-value{font-size:28px;color:var(--ink)}
.live-line{background:#f1f5f9;border-radius:999px;padding:4px 10px;white-space:nowrap}
