/* ============================================================
   식당 웨이팅 — Admin CSS
   관리자 전용 스타일 (Phase 1)
   컴포넌트 스타일은 Phase 3에서 추가
   ============================================================ */

/* ─── 디자인 토큰 (guest.css와 동일) ─────────────────────── */
:root {
    --bg-primary:    #F8F7F4;
    --bg-surface:    #FFFFFF;
    --bg-elevated:   #F3F2EE;
    --bg-muted:      #EEECEA;

    --accent-primary: #FF6B35;
    --accent-light:   #FFF0E8;
    --accent-dark:    #E55A25;

    --text-primary:   #1A1918;
    --text-secondary: #6B6860;
    --text-tertiary:  #9C9A93;
    --text-on-accent: #FFFFFF;

    --border-subtle:  #E5E3DC;

    --status-negative: #EF4444;
    --status-positive: #22C55E;
    --status-warning:  #F59E0B;
    --status-info:     #3B82F6;

    --font-base: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.10);

    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;

    --max-width: 430px;

    /* 관리자 전용 */
    --admin-header-h: 56px;
    --badge-waiting-bg:   #F1F5F9;
    --badge-waiting-text: #475569;
    --badge-called-bg:    #EFF6FF;
    --badge-called-text:  #2563EB;
    --badge-seated-bg:    #F0FDF4;
    --badge-seated-text:  #16A34A;
    --badge-cancelled-bg: #FEF2F2;
    --badge-cancelled-text: #DC2626;
}

/* ─── 리셋 ────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body.admin-body {
    font-family: var(--font-base);
    font-weight: 400;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ─── 레이아웃 ────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ─── 버튼 ────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 10px var(--space-md);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-base);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease, opacity 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: var(--text-on-accent);
}

.btn-primary:active { background-color: var(--accent-dark); }

.btn-secondary {
    background-color: var(--bg-muted);
    color: var(--text-primary);
}

.btn-danger {
    background-color: var(--status-negative);
    color: #FFFFFF;
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ─── 카드 ────────────────────────────────────────────────── */
.card {
    background-color: var(--bg-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--space-md);
}

/* ─── 배지 (상태 표시) ────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-waiting   { background: var(--badge-waiting-bg);   color: var(--badge-waiting-text); }
.badge-called    { background: var(--badge-called-bg);    color: var(--badge-called-text); }
.badge-seated    { background: var(--badge-seated-bg);    color: var(--badge-seated-text); }
.badge-cancelled { background: var(--badge-cancelled-bg); color: var(--badge-cancelled-text); }

/* ─── 인풋 ────────────────────────────────────────────────── */
.input {
    width: 100%;
    padding: 12px var(--space-md);
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius-md);
    font-family: var(--font-base);
    font-size: 0.9375rem;
    color: var(--text-primary);
    background-color: var(--bg-surface);
    outline: none;
    transition: border-color 0.15s ease;
}

.input:focus { border-color: var(--accent-primary); }
.input::placeholder { color: var(--text-tertiary); }

/* ─── 셀렉트박스 ──────────────────────────────────────────── */
.select {
    width: 100%;
    padding: 10px var(--space-md);
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius-md);
    font-family: var(--font-base);
    font-size: 0.9375rem;
    color: var(--text-primary);
    background-color: var(--bg-surface);
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239C9A93' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.select:focus { border-color: var(--accent-primary); }

/* ─── 토스트 메시지 ───────────────────────────────────────── */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: #FFFFFF;
    background-color: var(--text-primary);
    box-shadow: var(--shadow-md);
    z-index: 9999;
    white-space: nowrap;
    animation: toast-in 0.2s ease;
}

.toast.success { background-color: var(--status-positive); }
.toast.error   { background-color: var(--status-negative); }

@keyframes toast-in {
    from { opacity: 0; transform: translateX(-50%) translateY(8px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ─── 유틸리티 ────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-secondary { color: var(--text-secondary); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.hidden { display: none !important; }

/* ============================================================
   Phase 3 컴포넌트 스타일
   ============================================================ */

/* ─── 고정 헤더 ──────────────────────────────────────────── */
.admin-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--max-width);
    height: var(--admin-header-h);
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    padding: 0 var(--space-md);
    gap: var(--space-sm);
    z-index: 100;
}

.admin-store-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-header-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    flex: 1;
}

.admin-header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

/* 헤더 높이 보정 */
.admin-body-offset {
    padding-top: calc(var(--admin-header-h) + var(--space-md));
    max-width: var(--max-width);
    margin: 0 auto;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ─── 버튼 크기 변형 ─────────────────────────────────────── */
.btn-sm {
    padding: 6px 12px;
    font-size: 0.8125rem;
    border-radius: var(--radius-sm);
}

.btn-xs {
    padding: 4px 10px;
    font-size: 0.75rem;
    border-radius: var(--radius-xs);
    font-weight: 600;
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: none;
    padding: 6px 8px;
}

.btn-ghost:hover {
    background-color: var(--bg-elevated);
    color: var(--text-primary);
}

/* ─── 접수 토글 버튼 ─────────────────────────────────────── */
.reception-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.reception-toggle-btn.open {
    background-color: #DCFCE7;
    color: #16A34A;
}

.reception-toggle-btn.closed {
    background-color: #FEE2E2;
    color: #DC2626;
}

.reception-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: currentColor;
}

/* ─── 현황 요약 ──────────────────────────────────────────── */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.stat-item {
    background-color: var(--bg-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: var(--space-sm) var(--space-xs);
    text-align: center;
}

.stat-item.called    { border-top: 2px solid var(--badge-called-text); }
.stat-item.seated    { border-top: 2px solid var(--badge-seated-text); }
.stat-item.cancelled { border-top: 2px solid var(--badge-cancelled-text); }

.stat-val {
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.6875rem;
    color: var(--text-tertiary);
    font-weight: 500;
    margin-top: 3px;
}

/* ─── 탭 필터 ────────────────────────────────────────────── */
.tab-bar {
    display: flex;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0;
}

.tab-btn {
    padding: 8px 14px;
    border: none;
    background: transparent;
    font-family: var(--font-base);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-tertiary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.15s ease, border-color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.tab-btn.active {
    color: var(--accent-primary);
    font-weight: 700;
    border-bottom-color: var(--accent-primary);
}

/* ─── 대기 목록 ──────────────────────────────────────────── */
.waiting-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.waiting-card {
    background-color: var(--bg-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: var(--space-md);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-sm);
}

.waiting-card-left {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex: 1;
    min-width: 0;
}

.waiting-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1;
    min-width: 36px;
    text-align: center;
}

.waiting-card-meta {
    flex: 1;
    min-width: 0;
}

.waiting-card-top {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    flex-wrap: wrap;
}

.waiting-phone {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}

.waiting-party {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.waiting-card-time {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-top: 3px;
}

.waiting-card-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    align-items: flex-end;
    flex-shrink: 0;
}

/* ─── 빈 목록 안내 ───────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: var(--space-xl) var(--space-md);
    color: var(--text-tertiary);
}

.empty-state-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
}

.empty-state-text {
    font-size: 0.9375rem;
    font-weight: 500;
}

/* ─── 로딩 행 ────────────────────────────────────────────── */
.loading-row {
    display: flex;
    justify-content: center;
    padding: var(--space-xl) 0;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border-subtle);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

/* ─── 전체 초기화 행 ─────────────────────────────────────── */
.clear-all-row {
    display: flex;
    justify-content: center;
    padding: var(--space-md) 0 var(--space-xl);
}

/* ─── 로그인 화면 ────────────────────────────────────────── */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.login-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
}

.login-card {
    width: 100%;
    max-width: 360px;
    background-color: var(--bg-surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: var(--space-xl) var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    position: relative;
}

.login-home-btn {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    color: var(--text-tertiary);
    transition: background-color 0.15s, color 0.15s;
}
.login-home-btn:hover {
    background-color: var(--bg-elevated);
    color: var(--text-primary);
}

.login-icon {
    display: flex;
    justify-content: center;
    color: var(--accent-primary);
}

.login-title {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: calc(-1 * var(--space-sm));
}

.alert-error {
    background-color: #FEF2F2;
    color: #DC2626;
    border: 1px solid #FECACA;
    border-radius: var(--radius-sm);
    padding: var(--space-sm) var(--space-md);
    font-size: 0.875rem;
    font-weight: 500;
}

/* ─── 설정 화면 ──────────────────────────────────────────── */
.settings-section {
    background-color: var(--bg-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--space-lg) var(--space-md);
    margin-bottom: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.settings-title {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-primary);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border-subtle);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}

.form-row.three {
    grid-template-columns: 1fr 1fr 1fr;
}

.textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
}

/* ─── 이미지 미리보기 ────────────────────────────────────── */
.image-preview-box {
    width: 100%;
    height: 160px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    color: var(--text-tertiary);
    font-size: 0.8125rem;
}

.image-upload-btn {
    align-self: flex-start;
    cursor: pointer;
}

.field-error {
    font-size: 0.8125rem;
    color: var(--status-negative);
    font-weight: 500;
}
/* ─── 접수 상태 행 (설정 페이지) ──────────────────────────── */
.reception-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) 0;
}

.reception-status-indicator {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.9375rem;
    font-weight: 600;
}

.reception-status-indicator.open  { color: #16A34A; }
.reception-status-indicator.closed { color: #DC2626; }

.reception-status-indicator .reception-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: currentColor;
}

.btn-danger {
    background-color: #DC2626;
    color: #FFFFFF;
    border: none;
}

.btn-danger:hover {
    background-color: #B91C1C;
}

/* ─── 헤더 아이콘 버튼 ──────────────────────────────────── */
.btn-icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.15);
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.btn-icon-circle:hover { background-color: rgba(0,0,0,0.08); }

/* ─── 현황 히어로 (녹색 배경) ────────────────────────────── */
.stats-hero {
    background-color: #4A7C59;
    padding: var(--space-sm) var(--space-md) var(--space-md);
}
.stats-hero .stats-row { margin-bottom: 0; }
.stats-hero .stat-item { background-color: rgba(255,255,255,0.15); }
.stats-hero .stat-val   { color: #FFFFFF; }
.stats-hero .stat-label { color: rgba(255,255,255,0.8); }

.stats-hero-top {
    display: flex;
    justify-content: flex-end;
    margin-bottom: var(--space-xs);
}
.reception-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 99px;
}
.reception-badge::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.reception-open {
    background-color: rgba(255,255,255,0.2);
    color: #FFFFFF;
}
.reception-open::before  { background-color: #A8F0C0; }
.reception-closed {
    background-color: rgba(0,0,0,0.25);
    color: rgba(255,255,255,0.7);
}
.reception-closed::before { background-color: rgba(255,255,255,0.4); }

/* ─── 목록 타이틀 행 ─────────────────────────────────────── */
.list-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-md) var(--space-xs);
}
.list-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}
.btn-text-icon {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: var(--radius-sm);
}
.btn-text-icon:hover { color: var(--text-primary); background-color: var(--bg-elevated); }

/* ─── 대기 카드 (새 디자인) ──────────────────────────────── */
.waiting-card {
    background-color: var(--bg-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin: 0 var(--space-md) var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}
.wc-left {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex: 1;
    min-width: 0;
}
.wc-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-xs);
    flex-shrink: 0;
}
.wc-num-badge {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #4A7C59;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.wc-info { flex: 1; min-width: 0; }
.wc-top  { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.wc-phone {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-primary);
}
.wc-table {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}
.wc-sub {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    margin-top: 2px;
}
/* 상태 배지 */
.wc-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
}
.badge-waiting  { background-color: #EFF6FF; color: #1D4ED8; }
.badge-called   { background-color: #FEF9C3; color: #A16207; }
.badge-seated   { background-color: #F0FDF4; color: #15803D; }
.badge-cancelled{ background-color: #F3F4F6; color: #6B7280; }

/* 액션 버튼 행 */
.wc-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}
.table-select {
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 5px 6px;
    font-size: 0.8125rem;
    color: var(--text-primary);
    background-color: var(--bg-surface);
    cursor: pointer;
    outline: none;
}
.table-select:focus { border-color: var(--accent-primary); }

.btn-act {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.btn-act-call   { background-color: #4A7C59; color: #FFFFFF; }
.btn-act-call:hover { background-color: #3d6649; }
.btn-act-seat   { background-color: #EFF6FF; color: #1D4ED8; }
.btn-act-seat:hover { background-color: #DBEAFE; }
.btn-act-cancel { background-color: #FEF2F2; color: #DC2626; }
.btn-act-cancel:hover { background-color: #FEE2E2; }

/* ─── 전체 삭제 버튼 (아웃라인) ──────────────────────────── */
.btn-outline-danger {
    background-color: transparent;
    color: var(--accent-primary);
    border: 1.5px solid var(--accent-primary);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    justify-content: center;
    transition: background-color 0.15s;
}
.btn-outline-danger:hover { background-color: #FFF0E8; }

/* ─── 대시보드 푸터 ──────────────────────────────────────── */
.admin-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-md);
    margin-top: auto;
    border-top: 1px solid var(--border-subtle);
}
.admin-footer-copy {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin: 0;
}
.admin-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
}
.admin-footer-link:hover { color: var(--text-primary); }

/* ─── 설정: 폼 힌트 / 서브라벨 ──────────────────────────── */
.form-hint {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-top: 4px;
}
.form-sublabel {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
}

/* ─── 입력 + 단위 래퍼 ──────────────────────────────────── */
.input-suffix-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.input-suffix-wrap .input { flex: 1; padding-right: 36px; }
.input-suffix {
    position: absolute;
    right: 12px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    pointer-events: none;
}

/* ─── 토글 스위치 ────────────────────────────────────────── */
.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
}
.toggle-switch {
    position: relative;
    width: 48px;
    height: 28px;
    flex-shrink: 0;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
.toggle-thumb {
    position: absolute;
    inset: 0;
    background-color: #D1D5DB;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.2s;
}
.toggle-thumb::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    left: 3px;
    top: 3px;
    background-color: #FFFFFF;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle-switch input:checked + .toggle-thumb {
    background-color: #4A7C59;
}
.toggle-switch input:checked + .toggle-thumb::before {
    transform: translateX(20px);
}
