/* ============================================================
   한국의료기기협동조합 - 메인 스타일
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary:      #1a4fa0;
    --primary-dark: #0d3373;
    --primary-light:#e8f0fc;
    --accent:       #e53935;
    --accent-light: #fff5f5;
    --success:      #2e7d32;
    --warning:      #f57c00;
    --text-dark:    #1a1a2e;
    --text-body:    #374151;
    --text-muted:   #6b7280;
    --border:       #e5e7eb;
    --bg:           #f8fafd;
    --white:        #ffffff;
    --shadow-sm:    0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
    --shadow:       0 4px 16px rgba(0,0,0,.1);
    --shadow-lg:    0 8px 32px rgba(0,0,0,.12);
    --radius:       10px;
    --radius-lg:    16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Noto Sans KR', -apple-system, sans-serif;
    font-size: 15px;
    color: var(--text-body);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
img { max-width: 100%; }

/* ── 헤더 ── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 68px;
    display: flex;
    align-items: center;
    gap: 32px;
}
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
    flex-shrink: 0;
}
.site-logo .logo-icon {
    width: 38px;
    height: 38px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

/* GNB */
.gnb {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}
.gnb-item {
    position: relative;
}
.gnb-link {
    display: block;
    padding: 8px 16px;
    font-size: .9rem;
    font-weight: 600;
    color: var(--text-dark);
    border-radius: 6px;
    transition: background .15s, color .15s;
    white-space: nowrap;
}
.gnb-link:hover, .gnb-item.active .gnb-link {
    background: var(--primary-light);
    color: var(--primary);
}

/* 드롭다운 */
.gnb-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 180px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 6px 0;
    z-index: 200;
}
.gnb-item:hover .gnb-dropdown { display: block; }
.gnb-sub-link {
    display: block;
    padding: 9px 18px;
    font-size: .875rem;
    color: var(--text-body);
    transition: background .12s, color .12s;
}
.gnb-sub-link:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* 헤더 우측 */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.btn-login {
    padding: 7px 18px;
    border: 1.5px solid var(--primary);
    border-radius: 6px;
    color: var(--primary);
    font-size: .85rem;
    font-weight: 600;
    transition: .15s;
}
.btn-login:hover { background: var(--primary); color: white; }
.btn-join {
    padding: 7px 18px;
    background: var(--primary);
    border-radius: 6px;
    color: white;
    font-size: .85rem;
    font-weight: 600;
    transition: .15s;
}
.btn-join:hover { background: var(--primary-dark); color: white; }

/* 모바일 햄버거 */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    border: none;
    background: none;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: .3s;
}

/* ── 히어로 ── */
.hero {
    background: linear-gradient(135deg, #0d3373 0%, #1a4fa0 50%, #2563eb 100%);
    color: white;
    padding: 80px 24px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,.05);
    border-radius: 50%;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,.03);
    border-radius: 50%;
}
.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: .5px;
}
.hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 16px;
}
.hero p {
    font-size: 1.05rem;
    opacity: .85;
    margin-bottom: 32px;
    max-width: 540px;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-btn-primary {
    padding: 13px 28px;
    background: white;
    color: var(--primary);
    border-radius: 8px;
    font-weight: 700;
    font-size: .95rem;
    transition: .2s;
}
.hero-btn-primary:hover { background: #f0f4ff; color: var(--primary-dark); }
.hero-btn-outline {
    padding: 13px 28px;
    border: 2px solid rgba(255,255,255,.6);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    font-size: .95rem;
    transition: .2s;
}
.hero-btn-outline:hover { border-color: white; background: rgba(255,255,255,.1); }

/* 통계 바 */
.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,.2);
}
.hero-stat-label { font-size: .8rem; opacity: .7; margin-bottom: 4px; }
.hero-stat-value { font-size: 1.6rem; font-weight: 800; }

/* ── 섹션 공통 ── */
.section { padding: 72px 24px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 4px;
}
.section-sub {
    color: var(--text-muted);
    font-size: .9rem;
    margin-bottom: 32px;
}
.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 28px;
}
.more-link {
    font-size: .85rem;
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.more-link:hover { color: var(--primary-dark); }

/* 빠른메뉴 */
.quick-nav {
    background: white;
    box-shadow: var(--shadow);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-top: -32px;
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.quick-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 12px;
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    transition: .2s;
    cursor: pointer;
    text-align: center;
}
.quick-nav-item:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-2px);
}
.quick-nav-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}
.quick-nav-label { font-size: .85rem; font-weight: 600; color: var(--text-dark); }

/* ── 카드 ── */
.card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

/* 이벤트 카드 */
.event-card { display: flex; flex-direction: column; }
.event-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #e8f0fc, #c7d8f8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 2.5rem;
}
.event-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.event-card-category {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 600;
    margin-bottom: 10px;
}
.event-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.event-card-meta {
    font-size: .8rem;
    color: var(--text-muted);
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.event-card-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 700;
}
.status-open    { background: #dcfce7; color: #166534; }
.status-closed  { background: #f3f4f6; color: #6b7280; }
.status-draft   { background: #fef3c7; color: #92400e; }

/* 뉴스 리스트 */
.news-list { display: flex; flex-direction: column; gap: 0; }
.news-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    transition: .15s;
}
.news-item:last-child { border-bottom: none; }
.news-item:hover { padding-left: 4px; }
.news-badge {
    flex-shrink: 0;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: .72rem;
    font-weight: 700;
    background: var(--primary-light);
    color: var(--primary);
}
.news-badge.notice { background: #fff7ed; color: #c2410c; }
.news-title {
    flex: 1;
    font-size: .9rem;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}
.news-date { flex-shrink: 0; font-size: .78rem; color: var(--text-muted); }

/* 지원사업 카드 */
.support-card {
    padding: 28px;
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    background: white;
    transition: .2s;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.support-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}
.support-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}
.support-title { font-size: 1rem; font-weight: 700; color: var(--text-dark); }
.support-desc  { font-size: .85rem; color: var(--text-muted); line-height: 1.6; }
.support-link  { font-size: .85rem; color: var(--primary); font-weight: 600; }

/* ── 게시판 ── */
.page-container { max-width: 1200px; margin: 0 auto; padding: 40px 24px; }
.page-title-bar {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--primary);
}
.page-title-bar h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
}
.page-title-bar .breadcrumb {
    font-size: .8rem;
    color: var(--text-muted);
    margin-top: 4px;
}
.board-table { width: 100%; border-collapse: collapse; }
.board-table th {
    background: #f5f7fa;
    padding: 12px 16px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--text-muted);
    border-top: 2px solid var(--primary);
    border-bottom: 1px solid var(--border);
    text-align: left;
}
.board-table td {
    padding: 13px 16px;
    font-size: .88rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.board-table tr:hover td { background: #fafbff; }
.board-table .title-cell a { color: var(--text-dark); font-weight: 500; }
.board-table .title-cell a:hover { color: var(--primary); }
.board-notice td { background: #fffbf0; }

/* ── 버튼 ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    border-radius: 7px;
    font-size: .875rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: .15s;
    text-align: center;
    white-space: nowrap;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); color: white; }
.btn-danger  { background: var(--accent); color: white; }
.btn-danger:hover { background: #c62828; color: white; }
.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--text-body); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 6px 14px; font-size: .8rem; }
.btn-lg { padding: 13px 28px; font-size: 1rem; }

/* 폼 */
.form-group { margin-bottom: 20px; }
.form-label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}
.form-label.required::after { content: ' *'; color: var(--accent); }
.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 7px;
    font-size: .9rem;
    font-family: inherit;
    color: var(--text-dark);
    background: white;
    transition: border-color .15s;
    outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,79,160,.1); }
.form-control::placeholder { color: #9ca3af; }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-hint { font-size: .78rem; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: .78rem; color: var(--accent); margin-top: 4px; }

/* 알림 */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    font-size: .88rem;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.alert-danger   { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.alert-warning  { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.alert-info     { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }

/* 배지 */
.badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 20px;
    font-size: .72rem;
    font-weight: 700;
}
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-success { background: #dcfce7; color: #166534; }
.badge-danger  { background: #fee2e2; color: #991b1b; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-muted   { background: #f3f4f6; color: #6b7280; }

/* 페이지네이션 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 32px;
}
.page-item {
    display: inline-block;
}
.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 7px;
    font-size: .85rem;
    color: var(--text-body);
    border: 1px solid var(--border);
    transition: .15s;
}
.page-link:hover, .page-item.active .page-link {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ── 푸터 ── */
.site-footer {
    background: #111827;
    color: #9ca3af;
    padding: 48px 24px 32px;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid #1f2937;
    margin-bottom: 24px;
}
.footer-logo { color: white; font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.footer-desc { font-size: .83rem; line-height: 1.8; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-link-group h4 { color: white; font-size: .85rem; font-weight: 700; margin-bottom: 12px; }
.footer-link-group a { display: block; font-size: .8rem; padding: 3px 0; transition: color .15s; }
.footer-link-group a:hover { color: white; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .78rem;
}
.footer-info { line-height: 1.8; }

/* 모바일 사이드메뉴 */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 900;
}
.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100%;
    background: white;
    z-index: 950;
    overflow-y: auto;
    transition: left .3s ease;
    padding: 20px 0;
}
.mobile-nav.open { left: 0; }
.mobile-nav-header {
    padding: 0 20px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mobile-nav-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--text-muted);
}
.mobile-nav-item { border-bottom: 1px solid var(--border); }
.mobile-nav-parent {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    font-weight: 700;
    font-size: .9rem;
    color: var(--text-dark);
    cursor: pointer;
}
.mobile-nav-children { display: none; background: #fafbff; }
.mobile-nav-children.open { display: block; }
.mobile-nav-child {
    display: block;
    padding: 10px 32px;
    font-size: .85rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}
.mobile-nav-child:hover { color: var(--primary); }
.mobile-nav-actions {
    padding: 16px 20px;
    display: flex;
    gap: 8px;
}
.mobile-nav-actions a { flex: 1; text-align: center; padding: 10px; border-radius: 7px; font-size: .85rem; font-weight: 600; }

/* ── 반응형 ── */
@media (max-width: 1024px) {
    .gnb { display: none; }
    .hamburger { display: flex; }
    .quick-nav { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr; }
    .footer-links { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .hero { padding: 56px 20px; }
    .hero-stats { display: none; }
    .section { padding: 48px 16px; }
    .quick-nav { margin: 0 16px; margin-top: -24px; padding: 20px; gap: 12px; }
    .board-table th:nth-child(n+3),
    .board-table td:nth-child(n+3) { display: none; }
    .footer-links { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 480px) {
    .quick-nav { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 1.5rem; }
}

/* ── 관리자 레이아웃 ── */
.admin-wrap { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 240px;
    background: #111827;
    color: #d1d5db;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}
.admin-sidebar-logo {
    padding: 20px;
    border-bottom: 1px solid #1f2937;
    color: white;
    font-weight: 700;
    font-size: .9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.admin-sidebar-logo span {
    background: var(--primary);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: .72rem;
}
.admin-nav-section { padding: 16px 12px 4px; font-size: .7rem; font-weight: 700; color: #6b7280; letter-spacing: .8px; text-transform: uppercase; }
.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    margin: 1px 8px;
    border-radius: 6px;
    font-size: .85rem;
    color: #9ca3af;
    transition: .15s;
}
.admin-nav-link:hover, .admin-nav-link.active {
    background: #1f2937;
    color: white;
}
.admin-nav-link .nav-icon { width: 16px; text-align: center; }
.admin-content { flex: 1; overflow: auto; }
.admin-topbar {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 0 28px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}
.admin-page { padding: 28px; }
.admin-page-header { margin-bottom: 24px; }
.admin-page-header h1 { font-size: 1.3rem; font-weight: 800; color: var(--text-dark); }
.admin-page-header p { font-size: .85rem; color: var(--text-muted); margin-top: 2px; }

/* 대시보드 카드 */
.stat-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.stat-value { font-size: 1.8rem; font-weight: 800; color: var(--text-dark); line-height: 1; }
.stat-label { font-size: .8rem; color: var(--text-muted); margin-top: 4px; }

/* 관리자 테이블 */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
    background: #f9fafb;
    padding: 11px 14px;
    font-size: .8rem;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    text-align: left;
    white-space: nowrap;
}
.data-table td {
    padding: 12px 14px;
    font-size: .85rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.data-table tr:hover td { background: #fafbff; }
.data-table .actions { display: flex; gap: 4px; }

/* 필터 바 */
.filter-bar {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 16px;
    display: flex;
    gap: 10px;
    align-items: flex-end;
    flex-wrap: wrap;
}
.filter-group { display: flex; flex-direction: column; gap: 4px; }
.filter-label { font-size: .75rem; font-weight: 600; color: var(--text-muted); }
.filter-control {
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: .83rem;
    color: var(--text-dark);
    outline: none;
    font-family: inherit;
}
.filter-control:focus { border-color: var(--primary); }

/* 그리드 */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .admin-sidebar { display: none; }
    .admin-topbar .hamburger { display: flex; }
}

/* ============================================================
   토스트 메시지
============================================================ */
#toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.mn-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 260px;
    max-width: 380px;
    padding: 13px 16px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,.14);
    border-left: 4px solid #94a3b8;
    font-size: .875rem;
    line-height: 1.4;
    opacity: 0;
    transform: translateX(40px);
    transition: opacity .3s ease, transform .3s ease;
    pointer-events: auto;
}
.mn-toast.mn-toast-show { opacity: 1; transform: translateX(0); }
.mn-toast-success { border-color: var(--success, #16a34a); }
.mn-toast-error   { border-color: var(--accent,  #e53935); }
.mn-toast-warning { border-color: #f59e0b; }
.mn-toast-info    { border-color: var(--primary, #1a4fa0); }
.mn-toast-icon { font-size: 1rem; flex-shrink: 0; }
.mn-toast-success .mn-toast-icon { color: var(--success, #16a34a); }
.mn-toast-error   .mn-toast-icon { color: var(--accent, #e53935); }
.mn-toast-warning .mn-toast-icon { color: #f59e0b; }
.mn-toast-info    .mn-toast-icon { color: var(--primary, #1a4fa0); }
.mn-toast-msg  { flex: 1; color: #1e293b; }
.mn-toast-close {
    background: none;
    border: none;
    font-size: 1.1rem;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    padding: 0 0 0 6px;
    flex-shrink: 0;
}
.mn-toast-close:hover { color: #475569; }

/* ============================================================
   컨펌 모달
============================================================ */
.mn-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .25s ease;
}
.mn-modal-overlay.mn-modal-open { opacity: 1; }
.mn-modal-box {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 40px rgba(0,0,0,.18);
    width: 100%;
    max-width: 400px;
    margin: 16px;
    transform: translateY(-16px) scale(.97);
    transition: transform .25s ease;
}
.mn-modal-overlay.mn-modal-open .mn-modal-box { transform: translateY(0) scale(1); }
.mn-modal-header {
    padding: 20px 24px 0;
}
.mn-modal-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}
.mn-modal-body {
    padding: 14px 24px 20px;
    font-size: .9rem;
    color: #475569;
    line-height: 1.6;
    white-space: pre-line;
}
.mn-modal-footer {
    padding: 0 24px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}
.btn-danger {
    background: var(--accent, #e53935);
    color: #fff;
    border: none;
}
.btn-danger:hover { background: #c62828; color: #fff; }

/* ============================================================
   알림 모달 아이콘
============================================================ */
.mn-alert-box { text-align: center; }
.mn-alert-box .mn-modal-header { justify-content: center; }
.mn-alert-box .mn-modal-body   { text-align: center; }
.mn-alert-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #eff6ff;
    color: var(--primary, #1a4fa0);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto 4px;
}
.mn-alert-icon-warn {
    background: #fff7ed;
    color: #f59e0b;
}

/* ============================================================
   관리자 사이드바 - 권한 없는 메뉴
============================================================ */
.admin-nav-link.nav-no-perm {
    opacity: .45;
    cursor: not-allowed;
}
.admin-nav-link.nav-no-perm:hover {
    background: transparent;
    color: inherit;
}
