/* =============================================
   DevReq - 개발 요청 관리 시스템
   디자인: 다크 네이비 사이드바 + 밝은 컨텐츠
   기존 site1~3 관리자 디자인과 완전 차별화
   ============================================= */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');

:root {
    --navy-900: #0a0f1e;
    --navy-800: #111827;
    --navy-700: #1e293b;
    --navy-600: #334155;
    --indigo-500: #6366f1;
    --indigo-400: #818cf8;
    --indigo-300: #a5b4fc;
    --violet-500: #8b5cf6;
    --violet-400: #a78bfa;
    --emerald-500: #10b981;
    --emerald-400: #34d399;
    --amber-500: #f59e0b;
    --amber-400: #fbbf24;
    --red-500: #ef4444;
    --red-400: #f87171;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --white: #ffffff;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,.08);
    --shadow-lg: 0 12px 32px rgba(0,0,0,.1);
    --transition: 200ms cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 15px; }
body {
    font-family: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--slate-50);
    color: var(--navy-800);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--indigo-500); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--violet-500); }

/* ─── 스크롤바 ─── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--slate-300); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--slate-400); }

/* ═══════════════════════════════════════
   랜딩 페이지
   ═══════════════════════════════════════ */
.landing {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--navy-900) 0%, #1a1040 50%, var(--navy-800) 100%);
    position: relative;
    overflow: hidden;
}
.landing::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(99,102,241,.15) 0%, transparent 70%);
    top: -200px; right: -100px;
}
.landing::after {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(139,92,246,.12) 0%, transparent 70%);
    bottom: -100px; left: -50px;
}
.landing-card {
    position: relative; z-index: 1;
    background: rgba(255,255,255,.04);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius-lg);
    padding: 48px;
    max-width: 440px;
    width: 90%;
    text-align: center;
}
.landing-logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}
.landing-logo span { color: var(--indigo-400); }
.landing-sub {
    color: var(--slate-400);
    font-size: .95rem;
    margin-bottom: 36px;
}
.landing-card .btn-primary {
    width: 100%;
    padding: 14px;
    font-size: 1.05rem;
    margin-bottom: 12px;
}
.landing-card .btn-ghost {
    width: 100%;
    padding: 12px;
    color: var(--slate-400);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius);
    background: transparent;
    font-size: .9rem;
    cursor: pointer;
    transition: all var(--transition);
}
.landing-card .btn-ghost:hover {
    border-color: rgba(255,255,255,.2);
    color: var(--white);
}

/* ═══════════════════════════════════════
   로그인 / 인증
   ═══════════════════════════════════════ */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--navy-900) 0%, #1a1040 50%, var(--navy-800) 100%);
    position: relative;
}
.auth-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 420px;
    width: 90%;
    box-shadow: var(--shadow-lg);
}
.auth-card h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--navy-900);
}
.auth-card .auth-desc {
    color: var(--slate-500);
    font-size: .9rem;
    margin-bottom: 28px;
}
.auth-card .auth-email-badge {
    display: inline-block;
    background: var(--slate-100);
    padding: 6px 14px;
    border-radius: 99px;
    font-size: .85rem;
    color: var(--indigo-500);
    font-weight: 600;
    margin-bottom: 24px;
}

/* ─── 폼 요소 ─── */
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: var(--slate-600);
    margin-bottom: 6px;
}
.form-group label .required { color: var(--red-500); margin-left: 2px; }
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-sm);
    font-size: .95rem;
    font-family: inherit;
    color: var(--navy-800);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--indigo-400);
    box-shadow: 0 0 0 3px rgba(99,102,241,.1);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--slate-400); }
.form-textarea { min-height: 120px; resize: vertical; }
.form-hint { font-size: .8rem; color: var(--slate-400); margin-top: 4px; }

/* ─── 인증번호 입력 ─── */
.code-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 24px 0;
}
.code-inputs input {
    width: 56px; height: 64px;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    border: 2px solid var(--slate-200);
    border-radius: var(--radius);
    outline: none;
    transition: all var(--transition);
    color: var(--navy-900);
}
.code-inputs input:focus {
    border-color: var(--indigo-500);
    box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}

/* ─── 버튼 ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1.4;
}
.btn-primary {
    background: linear-gradient(135deg, var(--indigo-500), var(--violet-500));
    color: var(--white);
    box-shadow: 0 2px 8px rgba(99,102,241,.3);
}
.btn-primary:hover {
    box-shadow: 0 4px 16px rgba(99,102,241,.4);
    transform: translateY(-1px);
    color: var(--white);
}
.btn-secondary {
    background: var(--white);
    color: var(--navy-800);
    border: 1.5px solid var(--slate-200);
}
.btn-secondary:hover { border-color: var(--slate-300); background: var(--slate-50); }
.btn-danger { background: var(--red-500); color: var(--white); }
.btn-danger:hover { background: var(--red-400); color: var(--white); }
.btn-sm { padding: 6px 12px; font-size: .8rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ═══════════════════════════════════════
   앱 레이아웃 (사이드바 + 메인)
   ═══════════════════════════════════════ */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* ─── 사이드바 ─── */
.sidebar {
    width: 260px;
    background: var(--navy-900);
    color: var(--white);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 100;
    transition: transform var(--transition);
}
.sidebar-header {
    padding: 24px 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.sidebar-logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
}
.sidebar-logo span { color: var(--indigo-400); }
.sidebar-user {
    margin-top: 14px;
    padding: 10px 12px;
    background: rgba(255,255,255,.04);
    border-radius: var(--radius-sm);
    font-size: .82rem;
}
.sidebar-user .user-name { font-weight: 600; color: var(--white); }
.sidebar-user .user-email { color: var(--slate-400); font-size: .78rem; margin-top: 2px; }

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
}
.sidebar-nav .nav-label {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--slate-500);
    padding: 12px 12px 6px;
    font-weight: 700;
}
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--slate-300);
    font-size: .88rem;
    font-weight: 500;
    transition: all var(--transition);
    margin-bottom: 2px;
}
.sidebar-nav a:hover {
    background: rgba(255,255,255,.06);
    color: var(--white);
}
.sidebar-nav a.active {
    background: linear-gradient(135deg, rgba(99,102,241,.2), rgba(139,92,246,.15));
    color: var(--indigo-300);
}
.sidebar-nav a .nav-icon {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.sidebar-nav .badge {
    margin-left: auto;
    background: var(--red-500);
    color: var(--white);
    font-size: .7rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 99px;
    min-width: 18px;
    text-align: center;
}

.sidebar-footer {
    padding: 16px 12px;
    border-top: 1px solid rgba(255,255,255,.06);
}
.sidebar-footer a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--slate-400);
    font-size: .85rem;
    transition: all var(--transition);
}
.sidebar-footer a:hover { color: var(--red-400); }

/* ─── 메인 컨텐츠 영역 ─── */
.main-content {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 상단바 */
.topbar {
    height: 64px;
    background: var(--white);
    border-bottom: 1px solid var(--slate-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 50;
}
.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.topbar-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy-900);
}
.topbar-breadcrumb {
    font-size: .82rem;
    color: var(--slate-400);
}
.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--navy-800);
    padding: 4px;
}

/* 페이지 본문 */
.page-body {
    flex: 1;
    padding: 28px;
}

/* ─── 카드 ─── */
.card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.card-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--slate-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.card-header h2 { font-size: 1rem; font-weight: 700; }
.card-body { padding: 22px; }
.card-footer {
    padding: 14px 22px;
    border-top: 1px solid var(--slate-100);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

/* ─── 스텝 폼 ─── */
.step-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 32px;
}
.step-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    color: var(--slate-400);
    font-weight: 500;
}
.step-item.active { color: var(--indigo-500); }
.step-item.done { color: var(--emerald-500); }
.step-num {
    width: 30px; height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 700;
    border: 2px solid var(--slate-300);
    color: var(--slate-400);
    background: var(--white);
    flex-shrink: 0;
}
.step-item.active .step-num {
    border-color: var(--indigo-500);
    color: var(--white);
    background: var(--indigo-500);
}
.step-item.done .step-num {
    border-color: var(--emerald-500);
    color: var(--white);
    background: var(--emerald-500);
}
.step-line {
    width: 40px;
    height: 2px;
    background: var(--slate-200);
    margin: 0 8px;
}
.step-line.done { background: var(--emerald-500); }

/* 유형 선택 카드 */
.type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
}
.type-card {
    padding: 20px 16px;
    border: 2px solid var(--slate-200);
    border-radius: var(--radius);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    background: var(--white);
}
.type-card:hover {
    border-color: var(--indigo-300);
    background: rgba(99,102,241,.02);
}
.type-card.selected {
    border-color: var(--indigo-500);
    background: rgba(99,102,241,.04);
    box-shadow: 0 0 0 3px rgba(99,102,241,.1);
}
.type-card input[type="radio"] { display: none; }
.type-card .type-icon { font-size: 1.8rem; margin-bottom: 8px; }
.type-card .type-label { font-size: .88rem; font-weight: 600; color: var(--navy-800); }
.type-card .type-desc { font-size: .75rem; color: var(--slate-400); margin-top: 4px; }

/* 사이트 선택 */
.site-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.site-card {
    padding: 18px 16px;
    border: 2px solid var(--slate-200);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
}
.site-card:hover { border-color: var(--indigo-300); }
.site-card.selected {
    border-color: var(--indigo-500);
    background: rgba(99,102,241,.04);
}
.site-card input[type="radio"] { display: none; }
.site-card .site-name { font-weight: 700; font-size: .95rem; }
.site-card .site-domain { font-size: .8rem; color: var(--slate-400); margin-top: 2px; }

/* 긴급도 */
.urgency-group {
    display: flex;
    gap: 10px;
}
.urgency-btn {
    flex: 1;
    padding: 10px;
    border: 2px solid var(--slate-200);
    border-radius: var(--radius-sm);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    font-size: .85rem;
    font-weight: 600;
    background: var(--white);
}
.urgency-btn input[type="radio"] { display: none; }
.urgency-btn:hover { border-color: var(--slate-300); }
.urgency-btn.selected.low { border-color: var(--emerald-500); color: var(--emerald-500); background: rgba(16,185,129,.04); }
.urgency-btn.selected.normal { border-color: var(--amber-500); color: var(--amber-500); background: rgba(245,158,11,.04); }
.urgency-btn.selected.high { border-color: var(--red-500); color: var(--red-500); background: rgba(239,68,68,.04); }

/* 스텝 컨텐츠 */
.step-content { display: none; }
.step-content.active { display: block; }
.step-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 28px;
    gap: 12px;
}

/* ─── 요청 목록 ─── */
.request-list { display: flex; flex-direction: column; gap: 10px; }
.request-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
    transition: all var(--transition);
    text-decoration: none;
    color: inherit;
}
.request-item:hover {
    border-color: var(--indigo-300);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
    color: inherit;
}
.request-item .req-id {
    font-size: .8rem;
    font-weight: 700;
    color: var(--slate-400);
    min-width: 44px;
}
.request-item .req-title {
    flex: 1;
    font-weight: 600;
    font-size: .95rem;
}
.request-item .req-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .8rem;
    color: var(--slate-400);
    flex-shrink: 0;
}

/* ─── 상태 뱃지 ─── */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .2px;
}
.status-received    { background: rgba(99,102,241,.1);  color: var(--indigo-500); }
.status-in_progress { background: rgba(245,158,11,.1);  color: var(--amber-500); }
.status-review      { background: rgba(139,92,246,.1);  color: var(--violet-500); }
.status-completed   { background: rgba(16,185,129,.1);  color: var(--emerald-500); }
.status-hold        { background: rgba(100,116,139,.1); color: var(--slate-500); }
.status-rejected    { background: rgba(239,68,68,.1);   color: var(--red-500); }

/* 마감일 초과 */
.overdue { color: var(--red-500) !important; font-weight: 700; }
.overdue-badge {
    display: inline-flex; align-items: center; gap: 3px;
    padding: 2px 8px; border-radius: 99px; font-size: .7rem; font-weight: 700;
    background: rgba(239,68,68,.1); color: var(--red-500);
}

/* 유형 뱃지 */
.type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: .72rem;
    font-weight: 600;
    background: var(--slate-100);
    color: var(--slate-600);
}

/* 긴급도 뱃지 */
.urgency-low    { color: var(--emerald-500); }
.urgency-normal { color: var(--amber-500); }
.urgency-high   { color: var(--red-500); font-weight: 700; }

/* ─── 상세 페이지 ─── */
.detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}
.detail-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--navy-900);
}
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
    font-size: .82rem;
    color: var(--slate-500);
}
.detail-meta span { display: flex; align-items: center; gap: 4px; }
.detail-body {
    padding: 24px 0;
    line-height: 1.8;
    white-space: pre-wrap;
    font-size: .95rem;
    color: var(--navy-700);
}

/* 첨부파일 */
.file-list { display: flex; flex-wrap: wrap; gap: 8px; }
.file-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm);
    font-size: .82rem;
    color: var(--slate-600);
    transition: all var(--transition);
}
.file-item:hover { border-color: var(--indigo-300); color: var(--indigo-500); }
.file-item .file-size { color: var(--slate-400); font-size: .75rem; }

/* 파일 업로드 드래그&드롭 */
.upload-zone {
    border: 2px dashed var(--slate-300);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    background: var(--slate-50);
}
.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--indigo-400);
    background: rgba(99,102,241,.02);
}
.upload-zone .upload-icon { font-size: 2rem; margin-bottom: 8px; }
.upload-zone .upload-text { font-size: .9rem; color: var(--slate-500); }
.upload-zone .upload-hint { font-size: .78rem; color: var(--slate-400); margin-top: 4px; }

.upload-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}
.upload-preview {
    position: relative;
    width: 80px; height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--slate-200);
}
.upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.upload-preview .file-icon {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: var(--slate-100); font-size: .7rem; color: var(--slate-500);
    font-weight: 700; text-transform: uppercase;
}
.upload-preview .remove-btn {
    position: absolute; top: 2px; right: 2px;
    width: 20px; height: 20px;
    background: rgba(0,0,0,.6); color: var(--white);
    border: none; border-radius: 50%; cursor: pointer;
    font-size: .7rem; display: flex; align-items: center; justify-content: center;
}

/* ─── 댓글 ─── */
.comment-list { display: flex; flex-direction: column; gap: 16px; }
.comment-item {
    display: flex;
    gap: 12px;
}
.comment-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .85rem; font-weight: 700;
    flex-shrink: 0;
}
.comment-avatar.client { background: rgba(99,102,241,.1); color: var(--indigo-500); }
.comment-avatar.admin { background: rgba(139,92,246,.1); color: var(--violet-500); }
.comment-body { flex: 1; }
.comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.comment-name { font-weight: 700; font-size: .88rem; }
.comment-tag {
    font-size: .7rem;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 700;
}
.comment-tag.admin { background: rgba(139,92,246,.1); color: var(--violet-500); }
.comment-time { font-size: .78rem; color: var(--slate-400); }
.comment-text {
    font-size: .9rem;
    line-height: 1.6;
    color: var(--navy-700);
    white-space: pre-wrap;
}

/* ─── 상태 타임라인 ─── */
.timeline { position: relative; padding-left: 24px; }
.timeline::before {
    content: '';
    position: absolute;
    left: 7px; top: 4px; bottom: 4px;
    width: 2px;
    background: var(--slate-200);
}
.timeline-item {
    position: relative;
    padding-bottom: 16px;
    font-size: .82rem;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -20px; top: 5px;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--slate-300);
    border: 2px solid var(--white);
}
.timeline-item:last-child::before { background: var(--indigo-500); }
.timeline-item .tl-time { color: var(--slate-400); font-size: .75rem; }
.timeline-item .tl-text { color: var(--slate-600); }

/* ─── 알림 ─── */
.notif-list { display: flex; flex-direction: column; }
.notif-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--slate-100);
    font-size: .88rem;
    transition: background var(--transition);
    text-decoration: none;
    color: inherit;
}
.notif-item:hover { background: var(--slate-50); }
.notif-item.unread { background: rgba(99,102,241,.03); }
.notif-item.unread::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--indigo-500);
    flex-shrink: 0;
}
.notif-time { margin-left: auto; font-size: .75rem; color: var(--slate-400); flex-shrink: 0; }

/* ─── 필터바 ─── */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
}
.filter-bar .form-select,
.filter-bar .form-input {
    width: auto;
    min-width: 140px;
    padding: 8px 12px;
    font-size: .85rem;
}

/* ─── 페이지네이션 ─── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 24px;
}
.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px; height: 36px;
    border-radius: var(--radius-sm);
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
}
.pagination a { color: var(--slate-600); }
.pagination a:hover { background: var(--slate-100); color: var(--navy-800); }
.pagination .active {
    background: var(--indigo-500);
    color: var(--white);
}

/* ─── 알림 토스트 ─── */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    padding: 14px 20px;
    border-radius: var(--radius);
    font-size: .88rem;
    font-weight: 600;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    animation: slideIn .3s ease;
}
.toast.success { background: var(--emerald-500); }
.toast.error   { background: var(--red-500); }
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

/* ─── 빈 상태 ─── */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--slate-400);
}
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state .empty-text { font-size: 1rem; margin-bottom: 6px; font-weight: 600; }
.empty-state .empty-desc { font-size: .85rem; }

/* ─── 미리보기 ─── */
.preview-section { margin-top: 24px; }
.preview-label {
    font-size: .82rem;
    font-weight: 700;
    color: var(--slate-500);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.preview-value { font-size: .95rem; color: var(--navy-800); }

/* ═══════════════════════════════════════
   반응형
   ═══════════════════════════════════════ */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.open { transform: translateX(0); }
    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.4);
        z-index: 99;
    }
    .sidebar.open + .sidebar-overlay { display: block; }
    .main-content { margin-left: 0; }
    .hamburger { display: block; }
    .page-body { padding: 16px; }
    .topbar { padding: 0 16px; }
    .type-grid { grid-template-columns: repeat(2, 1fr); }
    .site-grid { grid-template-columns: 1fr; }
    .step-progress { flex-wrap: wrap; gap: 4px; }
    .step-line { width: 20px; }
    .detail-header { flex-direction: column; }
    .urgency-group { flex-direction: column; }
    .code-inputs input { width: 48px; height: 56px; font-size: 1.3rem; }
}

/* ─── 라이트박스 ─── */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,.85);
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
}

/* ─── 가이드 ─── */
.guide-section { margin-bottom: 28px; }
.guide-title {
    font-size: 1.05rem; font-weight: 700; color: var(--navy-900);
    padding-bottom: 8px; border-bottom: 2px solid var(--indigo-500);
    margin-bottom: 14px;
}
.guide-body { font-size: .9rem; line-height: 1.8; color: var(--slate-700); }
.guide-body p { margin-bottom: 6px; }
.guide-tip {
    margin-top: 12px; padding: 12px 16px;
    background: rgba(99,102,241,.04); border: 1px solid rgba(99,102,241,.12);
    border-radius: var(--radius-sm); font-size: .85rem; color: var(--slate-600);
}
.guide-steps { display: flex; flex-direction: column; gap: 12px; margin: 12px 0; }
.guide-step {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 12px 16px; background: var(--white); border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm);
}
.guide-step-num {
    width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
    background: var(--indigo-500); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: .8rem; font-weight: 700;
}
.guide-step p { font-size: .82rem; color: var(--slate-500); margin: 2px 0 0; }
.guide-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0; }
.guide-bad, .guide-good {
    padding: 14px; border-radius: var(--radius-sm); font-size: .85rem;
}
.guide-bad { background: rgba(239,68,68,.04); border: 1px solid rgba(239,68,68,.12); }
.guide-good { background: rgba(16,185,129,.04); border: 1px solid rgba(16,185,129,.12); }
.guide-compare-label { font-size: .78rem; font-weight: 700; margin-bottom: 8px; }
.guide-bad .guide-compare-label { color: var(--red-500); }
.guide-good .guide-compare-label { color: var(--emerald-500); }
.guide-compare p { margin-bottom: 6px; color: var(--slate-600); }
.guide-status-list { display: flex; flex-direction: column; gap: 8px; }
.guide-status-item { display: flex; align-items: center; gap: 10px; font-size: .88rem; }
.guide-feature-list { padding-left: 18px; }
.guide-feature-list li { margin-bottom: 8px; font-size: .88rem; }
@media (max-width: 768px) {
    .guide-compare { grid-template-columns: 1fr; }
}

/* ─── 유틸리티 ─── */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.text-center { text-align: center; }
.text-muted { color: var(--slate-400); }
.text-sm { font-size: .82rem; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
