@charset "UTF-8";
@import url('https://cdn.jsdelivr.net/gh/fonts-archive/Paperlogy/Paperlogy.css');

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Paperlogy', serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    color: #222222;
    background-color: #f8f8f8;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(67, 89, 113, 0);
}

body.modal-open {
    overflow: hidden;
}

ol,
ul {
    padding: 0;
    margin: 0;
}

b,
strong {
    font-weight: 700;
}

a {
    color: #222;
    text-decoration: none;
    cursor: pointer;
}

h1, h2, h3, h4, h5, h6, p, span {
    margin: 0;
}

th {
    font-weight: 500;
    text-align: inherit;
    text-align: -webkit-match-parent;
}

thead,
tbody,
tfoot,
tr,
td,
th {
    border-color: inherit;
    border-style: solid;
    border-width: 0;
}

label {
    display: inline-block;
}

button {
    color: #464a53;
    border: none;
    background-color: transparent;
    border-radius: 0;
    padding: 0;
}

button:focus:not(:focus-visible) {
    outline: 0;
}

input,
button,
select,
optgroup,
textarea {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

@media (min-width: 768px) {
    .mo-only{
        display: none !important;
    }
}

@media (max-width: 768px) {
    .pc-only{
        display: none !important;
    }
}

.d-flex {
    display: flex !important;
}

.overflow-hidden {
    overflow: hidden !important;
}

/* 사이드바 스타일 */
.sidebar {
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9ff 100%);
    position: fixed;
    left: 0;
    top: 0;
    border-right: 1px solid #e0e5ff;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s ease;
    box-shadow: 2px 0 20px rgba(2, 14, 226, 0.05);
}

@media (min-width: 992px) {
    .sidebar.collapsed {
        transform: translateX(-280px);
    }

    body.sidebar-collapsed .main-content {
        margin-left: 0;
    }
}

@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }
}

.sidebar-logo {
    padding: 30px 20px;
    border-bottom: 1px solid #e0e5ff;
    text-align: center;
    background: white;
}

.sidebar-logo img {
    height: 40px;
}

.sidebar-menu {
    padding: 0 15px;
    margin: 0;
    list-style-type: none;
}

.sidebar-menu:first-of-type {
    padding-top: 30px;
}

.sidebar-menu:not(:last-of-type) {
    padding-bottom: 20px;
    border-bottom: 1px solid #e8ebf5;
    margin-bottom: 25px;
}

.sidebar-menu-category {
    margin: 0 0 15px 5px;
    padding: 0;
    color: #020ee2;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    opacity: 0.8;
}

.sidebar-menu-item {
    margin-bottom: 6px;
}

.sidebar-menu-link {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.sidebar-menu-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #020ee2, #5d66ff);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.sidebar-menu-link:hover::before,
.sidebar-menu-link.active::before {
    transform: scaleY(1);
}

.sidebar-menu-link:hover {
    background: linear-gradient(135deg, rgba(2, 14, 226, 0.08), rgba(93, 102, 255, 0.08));
    color: #020ee2;
    transform: translateX(5px);
}

.sidebar-menu-link.active {
    background: linear-gradient(135deg, rgba(2, 14, 226, 0.12), rgba(93, 102, 255, 0.12));
    color: #020ee2;
    font-weight: 600;
}

.sidebar-menu-icon {
    width: 24px;
    height: 24px;
    margin-right: 14px;
    text-align: center;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-user-section {
    margin-top: auto;
    padding: 20px;
    background: white;
    border-top: 1px solid #e0e5ff;
}

.sidebar-user-card {
    background: linear-gradient(145deg, #ffffff, #f5f7ff);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(2, 14, 226, 0.08);
    border: 1px solid rgba(2, 14, 226, 0.1);
}

.user-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    background: linear-gradient(135deg, #020ee2, #5d66ff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    margin-right: 14px;
    box-shadow: 0 4px 12px rgba(2, 14, 226, 0.3);
}

.user-name {
    font-size: 17px;
    font-weight: 700;
    color: #222;
    margin-bottom: 4px;
}

.user-role {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.sidebar-action-buttons {
    display: flex;
    gap: 8px;
}

.sidebar-action-btn {
    flex: 1;
    padding: 11px 8px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid #ddd;
}

.sidebar-account-btn {
    background: linear-gradient(135deg, #eef0ff, #e2e5ff);
    color: #020ee2;
    border-color: rgba(2, 14, 226, 0.2);
}

.sidebar-account-btn:hover {
    background: linear-gradient(135deg, #e2e5ff, #c8ccff);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 14, 226, 0.15);
    color: #020ee2;
}

.sidebar-logout-btn {
    background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
    color: #666;
    border-color: #ddd;
}

.sidebar-logout-btn:hover {
    background: linear-gradient(135deg, #e8e8e8, #d8d8d8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: #444;
}

/* 헤더 스타일 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background-color: white;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.05);
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    z-index: 990;
    transition: all 0.3s ease;
}

@media (max-width: 991px) {
    .header {
        display: flex;
    }
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #333;
    margin: 3px 0;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.profile-dropdown {
    position: relative;
}

.profile-button {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(145deg, #f5f7ff, #ffffff);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #020ee2;
    border: none;
}

.profile-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(2, 14, 226, 0.15);
}

/* 프로필 드롭다운 메뉴 */
.profile-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 200px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid #e0e5ff;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
    z-index: 1100;
}

.profile-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown-header {
    padding: 16px 18px 14px;
    background: linear-gradient(135deg, rgba(2, 14, 226, 0.05), rgba(93, 102, 255, 0.05));
}

.profile-dropdown-name {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    margin-bottom: 3px;
}

.profile-dropdown-id {
    font-size: 12px;
    color: #888;
    font-weight: 500;
}

.profile-dropdown-divider {
    height: 1px;
    background: #e8ebf5;
}

.profile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 18px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    transition: background 0.2s ease;
}

.profile-dropdown-item:hover {
    background: linear-gradient(135deg, rgba(2, 14, 226, 0.06), rgba(93, 102, 255, 0.06));
    color: #020ee2;
}

.profile-dropdown-item i {
    width: 16px;
    text-align: center;
    color: #020ee2;
    opacity: 0.8;
}

.profile-dropdown-logout {
    border-top: 1px solid #f0f0f0;
}

.profile-dropdown-logout:hover {
    background: linear-gradient(135deg, #fff5f5, #fff0f0);
    color: #e53e3e;
}

.profile-dropdown-logout i {
    color: #e53e3e;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-toggle-btn {
    position: fixed;
    left: 20px;
    top: 20px;
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid #e0e5ff;
    border-radius: 10px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 900;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (min-width: 992px) {
    .sidebar-toggle-btn {
        display: flex;
    }

    body.sidebar-collapsed .sidebar-toggle-btn {
        left: 20px;
    }
}

.sidebar-toggle-btn:hover {
    background: #f5f7ff;
    border-color: #020ee2;
    color: #020ee2;
}

/* 메인 컨텐츠 스타일 */
.main-content {
    margin-left: 280px;
    padding: 40px;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

@media (max-width: 991px) {
    .main-content {
        margin-left: 0;
        padding: 90px 20px 20px 20px;
    }
}