@charset "UTF-8";
@import url('https://cdn.jsdelivr.net/gh/fonts-archive/Paperlogy/Paperlogy.css');


/* ============================================================
   RESET
============================================================ */
html, body {
    -webkit-text-size-adjust: none;
    -moz-text-size-adjust: none;
    -ms-text-size-adjust: none;
    -o-text-size-adjust: none;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Paperlogy', serif;
    background-color: rgb(244 244 245);
    color: #222;
    letter-spacing: -0.5px;
}

ul, ol, li, dl, dt, dd {
    margin: 0;
    padding: 0;
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
    font-weight: normal;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    margin: 0;
    padding: 0;
    line-height: 0;
    vertical-align: middle;
    font-size: 0;
    border: 0;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

table td, table th {
    vertical-align: middle;
}

caption, legend {
    position: absolute;
    margin: -1px;
    padding: 0;
    width: 1px;
    height: 1px;
    border: 0;
    overflow: hidden;
}

select, input, textarea {
    font-weight: 400;
    font-size: 18px;
    color: #444;
}

select, input {
    vertical-align: middle;
}

address, em, i {
    font-style: normal;
}

button, input, optgroup, select, textarea {
    margin: 0;
    font-family: inherit;
    font-size: 100%;
    color: inherit;
}

button {
    background: none;
    border: 0;
    cursor: pointer;
}

hr {
    display: block;
    margin: 0;
    padding: 0;
    height: 0;
    border: none;
}

figure, figcaption, p {
    margin: 0;
    padding: 0;
}

form, fieldset {
    margin: 0;
    padding: 0;
    line-height: 1;
    border: none;
}

button, [type="button"], [type="reset"], [type="submit"] {
    appearance: none;
    -webkit-appearance: none;
}

article, section, aside, nav, main {
    display: block;
}

small {
    font-size: 13px;
}

sub, sup {
    position: relative;
    line-height: 0;
    vertical-align: baseline;
    font-size: 12px;
}

sub {
    bottom: -.25em;
}

sup {
    top: -.5em;
}

b, strong {
    font: inherit;
}

/* ============================================================
   HEADER
============================================================ */
.admin-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 58px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #e8e9ec;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
}

.header-inner {
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 800;
    color: #5b5ef4;
    letter-spacing: -0.5px;
}

.header-logo-icon {
    width: 32px;
    height: 32px;
    background: #5b5ef4;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-logo-icon svg {
    color: #fff;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-icon-btn {
    position: relative;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    transition: background 0.15s;
    border: none;
}

.header-icon-btn:hover {
    background: #f5f5f7;
}

.header-icon-btn .dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ef4444;
    border: 1.5px solid #fff;
}

.header-divider {
    width: 1px;
    height: 20px;
    background: #e8e9ec;
    margin: 0 4px;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 6px 10px 6px 6px;
    border-radius: 10px;
    transition: background 0.15s;
}

.header-user:hover {
    background: #f5f5f7;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: linear-gradient(135deg, #7c3aed, #5b5ef4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: #212225;
}

.user-role {
    font-size: 12px;
    color: #878a93;
}

/* ============================================================
   LAYOUT
============================================================ */
.admin-layout {
    display: flex;
    min-height: 100vh;
    padding-top: 58px;
    max-width: 1600px;
    margin: 0 auto;
}

/* ============================================================
   SIDEBAR
============================================================ */
.admin-sidebar {
    position: fixed;
    top: 58px;
    left: 50%;
    transform: translateX(-800px);
    width: 268px;
    height: calc(100vh - 58px);
    padding: 16px 14px;
    overflow-y: auto;
    z-index: 100;
    font-family:  'Paperlogy', sans-serif;
}

@media (max-width: 1600px) {
    .admin-sidebar {
        left: 0;
        transform: none;
    }
}

.admin-sidebar::-webkit-scrollbar {
    width: 3px;
}

.admin-sidebar::-webkit-scrollbar-thumb {
    background: #e8e9ec;
    border-radius: 4px;
}

.sidebar-inner {
    background: #ffffff;
    border-radius: 20px;
    height: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
    padding: 18px 0 20px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* ============================================================
   SIDEBAR PROFILE
============================================================ */
.sidebar-profile {
    padding: 4px 16px 18px;
    border-bottom: 1px solid #f0f0f3;
    margin-bottom: 8px;
}

.sidebar-profile-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    transition: background 0.15s;
    text-decoration: none;
}

.sidebar-profile-link:hover {
    background: #f5f5f7;
}

.profile-avatar {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #f0f0f5;
    border-radius: 12px;
    color: #c2c4c8;
    font-size: 28px;
    line-height: 1;
}

.profile-name {
    font-size: 15px;
    font-weight: 700;
    color: #212225;
    letter-spacing: -0.3px;
}

.profile-id {
    font-size: 13px;
    color: #a0a3aa;
    margin-top: 2px;
    letter-spacing: 0;
}

/* ============================================================
   SIDEBAR MENU
============================================================ */
.menu-section-label {
    padding: 14px 20px 5px;
    font-size: 10.5px;
    font-weight: 700;
    color: #c2c4c8;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.sidebar-menu {
    flex: 1;
    padding: 0 10px;
    overflow-y: auto;
}

.sidebar-menu::-webkit-scrollbar {
    display: none;
}

.menu-item {
    margin-bottom: 2px;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 14px;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 500;
    color: #5a5c63;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
    user-select: none;
    letter-spacing: -0.2px;
}

.menu-link:hover {
    background: #f5f5f7;
    color: #212225;
}

.menu-link.active {
    background: #eeeeff;
    color: #5b5ef4;
    font-weight: 600;
}

.menu-link.active .menu-icon {
    color: #5b5ef4;
}

.menu-link:hover .menu-icon {
    color: #464750;
}

.menu-icon {
    width: 17px;
    text-align: center;
    flex-shrink: 0;
    font-size: 15px;
    color: #c2c4c8;
    transition: color 0.15s;
}

.menu-label {
    flex: 1;
}

/* ============================================================
   SUBMENU
   (기존 구조 호환용으로 유지)
============================================================ */
.menu-arrow {
    font-size: 11px;
    color: #c2c4c8;
    transition: transform 0.2s ease;
}

.menu-arrow.open {
    transform: rotate(180deg);
}

.submenu {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.28s ease;
}

.submenu.open {
    max-height: 400px;
}

.submenu-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px 12px 42px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: rgb(70 71 76);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
    margin-bottom: 1px;
    letter-spacing: -0.2px;
}

.submenu-link::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #d0d2d8;
    flex-shrink: 0;
}

.submenu-link:hover {
    background: rgb(243 244 246);
    color: #212225;
}

.submenu-link:hover::before {
    background: #5b5ef4;
}

.submenu-link.active {
    color: #5b5ef4;
    font-weight: 600;
}

.submenu-link.active::before {
    background: #5b5ef4;
}

/* ============================================================
   SIDEBAR FOOTER
============================================================ */
.sidebar-footer {
    padding: 12px 18px 0;
    border-top: 1px solid #f0f0f3;
    margin-top: 8px;
}

.sidebar-footer-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #9496a0;
    cursor: pointer;
    transition: all 0.15s;
    letter-spacing: -0.2px;
}

.sidebar-footer-item:hover {
    background: #fff1f1;
    color: #ef4444;
}

.sidebar-footer-item i {
    font-size: 14px;
}

/* ============================================================
   MAIN CONTENT
============================================================ */
.admin-main {
    margin-left: 268px;
    flex: 1;
    padding: 22px 24px 0;
    min-width: 0;
}

/* ============================================================
   PAGE TITLE
============================================================ */
.page-title-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.page-title-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-breadcrumb {
    font-size: 13px;
    color: #878a93;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
}

.page-breadcrumb span {
    color: #5b5ef4;
}

.page-title {
    font-size: 24px;
    font-weight: 800;
    color: #212225;
    letter-spacing: -0.4px;
}

.page-title-bar .page-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.refresh-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 9px;
    background: #ffffff;
    border: 1px solid #e8e9ec;
    font-size: 13px;
    font-weight: 500;
    color: #5a5c63;
    cursor: pointer;
    transition: all 0.15s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
}

.refresh-btn:hover {
    border-color: #5b5ef4;
    color: #5b5ef4;
}

.refresh-btn svg {
    width: 14px;
    height: 14px;
}

.page-update-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 9px;
    background: #ffffff;
    border: 1px solid #e8e9ec;
    font-size: 12px;
    color: #878a93;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
}

.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 900px) {
    .admin-sidebar {
        display: none;
    }

    .admin-main {
        margin-left: 0;
    }
}