/* ===== 주소위키 관리자 페이지 전용 스타일 ===== */

.admin-body {
    background: var(--bg, #f4f6fb);
    min-height: 100vh;
    font-family: 'Noto Sans KR', 'Inter', sans-serif;
    color: var(--text, #1b2233);
}

.admin-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e9f2;
    position: sticky;
    top: 0;
    z-index: 50;
}

.admin-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    font-weight: 700;
}

.admin-brand img {
    height: 26px;
}

.admin-brand span {
    background: #2c86ff;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
}

.admin-header-nav a {
    color: #2c86ff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.admin-main {
    padding: 32px 20px 80px;
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
}

.admin-intro h1 {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 8px;
}

.admin-intro p {
    color: #5c6478;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 24px;
}

.admin-intro code {
    background: #eef1f8;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12.5px;
}

.admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    background: #ffffff;
    border: 1px solid #e5e9f2;
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 14px;
}

.admin-toolbar-left {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.admin-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12.5px;
    color: #5c6478;
    font-weight: 600;
}

.admin-field select,
.admin-field input {
    border: 1px solid #d9deea;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 14px;
    min-width: 160px;
    font-family: inherit;
    color: #1b2233;
}

.admin-field-search input {
    min-width: 220px;
}

.admin-toolbar-right {
    display: flex;
    gap: 8px;
}

.admin-btn {
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: transform .1s ease, opacity .15s ease;
}

.admin-btn:hover { opacity: .9; }
.admin-btn:active { transform: scale(0.97); }

.admin-btn-primary {
    background: #2c86ff;
    color: #fff;
}

.admin-btn-secondary {
    background: #eef1f8;
    color: #1b2233;
}

.admin-btn-save {
    background: #12a67c;
    color: #fff;
    font-size: 15px;
    padding: 12px 26px;
}

.admin-btn-danger {
    background: #fdeceb;
    color: #ef3f59;
}

.admin-status {
    min-height: 20px;
    font-size: 13px;
    color: #5c6478;
    margin: 0 0 10px;
}

.admin-status.is-error { color: #ef3f59; font-weight: 600; }
.admin-status.is-ok { color: #12a67c; font-weight: 600; }

.admin-table-wrap {
    background: #ffffff;
    border: 1px solid #e5e9f2;
    border-radius: 14px;
    overflow-x: auto;
    margin-bottom: 18px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 980px;
}

.admin-table th,
.admin-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eef1f8;
    font-size: 13.5px;
    text-align: left;
    vertical-align: middle;
}

.admin-table thead th {
    background: #f7f9fd;
    color: #5c6478;
    font-weight: 700;
    font-size: 12.5px;
    position: sticky;
    top: 0;
}

.admin-table tbody tr:hover { background: #fbfcff; }

.admin-table input[type="text"],
.admin-table input[type="url"],
.admin-table select,
.admin-table input[type="number"] {
    width: 100%;
    border: 1px solid #d9deea;
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 13.5px;
    font-family: inherit;
    color: #1b2233;
}

.col-order { width: 64px; }
.col-order input { width: 56px; }
.col-category { width: 130px; }
.col-hot { width: 56px; text-align: center; }
.col-hot input { width: auto; }
.col-actions { width: 64px; text-align: center; }

.admin-row-delete {
    border: none;
    background: none;
    color: #ef3f59;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.admin-row.is-new td { background: #f4fbf8; }
.admin-row.is-dirty td { background: #fff9ec; }
.admin-row.is-deleted { opacity: .4; text-decoration: line-through; }

.admin-loading-row td,
.admin-loading-text {
    text-align: center;
    color: #8a92a6;
    padding: 24px 0;
}

.admin-save-bar {
    position: sticky;
    bottom: 16px;
    background: #ffffff;
    border: 1px solid #e5e9f2;
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 8px 24px rgba(20, 30, 60, .08);
    margin-bottom: 24px;
}

.admin-save-hint {
    font-size: 13.5px;
    color: #5c6478;
}

.admin-save-hint.has-changes {
    color: #ef3f59;
    font-weight: 700;
}

.admin-category-panel {
    background: #ffffff;
    border: 1px solid #e5e9f2;
    border-radius: 14px;
    padding: 14px 18px;
}

.admin-category-panel summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
}

.admin-category-list {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.admin-category-item {
    border: 1px solid #eef1f8;
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-category-item-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 13.5px;
}

.admin-category-item-head img { width: 20px; height: 20px; }

.admin-category-item label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #5c6478;
    gap: 6px;
}

.admin-category-item input {
    border: 1px solid #d9deea;
    border-radius: 6px;
    padding: 4px 6px;
    font-size: 12.5px;
    width: 110px;
    font-family: inherit;
}

.admin-toast.toast { z-index: 200; }

@media (max-width: 720px) {
    .admin-toolbar { flex-direction: column; align-items: stretch; }
    .admin-toolbar-right { justify-content: flex-end; }
    .admin-save-bar { flex-direction: column; gap: 10px; align-items: stretch; text-align: center; }
}
