.header {
    display: flex;
    align-items: center;
    padding: 0 32px;
    position: fixed;
    height: 60px;
    width: 100%;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 6px -4px gray;
    background-color: #fff;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
}

/* 사이드바 스타일 */
.sidebar {
    width: 280px;
    position: fixed;
    height: calc(100% - 60px);
    overflow-y: auto;
    transition: transform 0.3s ease;
    background-color: #fff;
    box-shadow: 0 0.125rem 0.25rem 0.125rem rgba(161, 172, 184, 0.14);
    transition: transform 0.3s ease;
    z-index: 900;
}

/* 사용자 프로필 섹션 */
.user-profile {
    display: flex;
    align-items: center;
    padding: 2rem 0.5rem 0.5rem;
}

.user-id {
    font-size: 0.875rem;
    color: #aaa;
}

.sidebar nav {
    margin-bottom: 4rem;
}

.sidebar nav .side-menu {
    position: relative;
    margin: 1rem 0 0.5rem 0;
    padding: 0.625rem 2rem 0.625rem 2rem;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
    color: #aaa;
}

.sidebar nav .side-menu::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.2rem;
    width: 1rem;
    height: 1px;
    transition: all 0.3s ease-in-out;
    background-color: #ccc !important;
}

.sidebar nav .side-item {
    margin: 0.125rem 0;
}

.sidebar nav .side-item .side-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    min-height: 2.625rem;
    margin: 0rem 1rem;
    padding: 0.75rem 0.925rem;
    font-weight: 600;
}

.sidebar nav .side-item > .side-link.active::before {
    content: "";
    position: absolute;
    right: 0;
    width: 0.25rem;
    height: 2.5rem;
    border-radius: 0.375rem 0 0 0.375rem;
    background: var(--bs-primary);
}

.sidebar nav .side-item .side-link:hover {
    background-color: #f5f5f9;
    color: var(--bs-primary);
}

.sidebar nav .side-item > .side-link.active {
    background-color: rgba(var(--bs-primary-rgb), 0.2);
    color: var(--bs-primary);
    font-weight: 700;
}

.sidebar nav .side-item .side-sub .side-link.active {
    color: var(--bs-primary);
    font-weight: 700;
}

.sidebar nav .side-item .dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar nav .side-item .dropdown-toggle::after {
    content: "\f105" !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    border: none !important;
    vertical-align: middle !important;
    transition: transform 0.3s ease !important;
    margin-left: auto !important;
}

.sidebar nav .side-item .dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(90deg);
}

.sidebar nav .side-item > .side-link {
    border-radius: 0.375rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
        border-color 0.15s ease-in-out;
}

.sidebar nav .side-item .side-sub .side-link {
    margin-top: 0.25rem;
    padding-left: 2.5rem;
    font-size: 1rem;
}

.side-sub li a {
    position: relative;
    padding-left: 16px;
}

.side-sub li a::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #ccc;
    transform: translateY(-50%);
}

/* active 상태일 때 색상 변경 */
.side-sub li a.active::before {
    background-color: var(--bs-primary);
}

.side-sub .side-sub {
    margin-top: 0.25rem;
    margin-left: 0.5rem;
    border-left: 1px solid #eee;
    padding-left: 0.75rem;
}

/* 스크롤바 스타일 */
.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: rgba(var(--bs-primary-rgb), 0.2);
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.5);
}

/* 메인 콘텐츠 스타일 */
.wrap {
    margin-left: 280px;
    margin-top: 60px;
    width: calc(100% - 280px);
    height: calc(100vh - 60px);
}

.wrap-content {
    min-height: 100%;
    /* max-width: 1400px; */
    padding: 15px;
    margin: 0 auto;
}

section {
    min-height: 100%;
    margin: 0 auto;
}

.section-content {
    min-height: 100%;
    background-color: #fff;
    border-radius: 8px;
    /* box-shadow: 0 0.125rem 0.375rem 0 rgba(161, 172, 184, 0.12); */
}

.section-content .section-header {
    padding: 1.5rem 1.5rem;
}

.section-content .section-body {
    padding: 1rem;
}

.section-content .section-body .section-body-header .body-header__btn {
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 5px;
    margin: 1rem 0.5rem;
}

.section-content .section-body .section-body-header .body-header__filter {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0.5rem;
}

.close-btn {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 15;
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
    .menu-toggle {
        display: block;
    }

    .sidebar {
        top: 0;
        height: 100%;
        transform: translateX(-100%);
        z-index: 1000;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .close-btn {
        display: block;
    }

    .wrap {
        margin-left: 0;
        width: 100%;
    }

    .overlay.active {
        display: block;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0 24px;
    }

    .wrap-content {
        padding: 10px;
    }

    .section-content .section-header {
        padding: 1rem;
    }

    .section-content .section-body {
        padding: 0.5rem;
    }
}

.content-list {
    display: flex;
    flex-wrap: wrap;
}

.content-list-row {
    border: 1px solid #e6e8eb;
    border-radius: 10px;
    margin: 7px;
}

.content-list-row .list-item {
    padding: 1rem;
}

.content-list-row .list-item .list-item-title {
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    letter-spacing: -0.4px;
    height: 66px;
    word-break: keep-all;
}

.list-item .list-item-footer {
    display: flex;
    align-content: center;
    justify-content: flex-end;
    margin-top: 15px;
}

.content-filter {
    margin: 0.5rem;
}

.content-list .link-row:hover,
.content-list .link-row:active {
    transform: translateY(-2px);
    box-shadow: 0 2px 7px -1px rgba(0, 0, 0, 0.08);
}

.form-input-sub {
    border: 1px solid #efefef;
    background-color: #f9f9f9;
    padding: 30px 20px;
    border-radius: 10px;
}

/* accordions */
.accordions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.accordions .accordions-item {
    display: flex;
    flex-direction: column;
    word-wrap: break-word;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.accordions .accordions-item .accordions-header {
    display: flex;
    align-items: center;
    padding: 1rem;
}

.accordions .accordions-item .accordions-header.active {
    border-bottom: 1px solid #ddd;
}

.accordions-header .accordions-button {
    width: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.accordions-header .accordions-button .accordions-name {
    font-size: 1.125rem;
    font-weight: 500;
}

.accordions-header .accordions-button .icon {
    transition: transform 0.3s ease;
}

.accordions-header.active .accordions-button .icon {
    transform: rotate(180deg);
}

.accordions-item .accordions-body {
    display: none;
    animation: fadeIn 0.3s ease;
}

.accordions-item .accordions-body.active {
    display: block !important;
}

.accordions-item .accordions-body .accordions-content {
    padding: 1rem;
}

/* tab */
.tabs {
    display: flex;
    flex-wrap: wrap;
    background: #f9f9f9;
    border-bottom: 1px solid #ddd;
}

.tabs .tab-button {
    flex: 1;
    padding: 15px;
    border: none;
    background: transparent;
    font-size: 1.125rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.tabs .tab-button:hover {
    color: var(--bs-main-active);
}

.tabs .tab-button.active {
    color: var(--bs-main-active);
    font-weight: 600;
    border-bottom: 3px solid var(--bs-main-active) !important;
}

/* 애니메이션 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 반응형 스타일 */
@media (max-width: 768px) {
    .tabs .tab-button {
        flex: 1 1 100%;
        font-size: 1rem;
        padding: 12px;
        border-bottom: 1px solid #ddd;
    }

    .tabs .tab-button:last-child {
        border-bottom: unset;
    }
}

/* 스크롤바 스타일 */
.modal-body-scroll::-webkit-scrollbar {
    width: 5px;
}

.modal-body-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(var(--bs-primary-rgb) 0.4);
    border-radius: 10px;
}

.modal-body-scroll::-webkit-scrollbar-thumb:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.6);
}

#loading {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.35);
    z-index: 999;
}

#loading-bar {
    position: absolute;
    left: 50%;
    top: 50%;
    border: 4px solid #e4e4e4;
    border-radius: 50%;
    border-top: 4px solid var(--bs-primary);
    width: 30px;
    height: 30px;
    -webkit-animation: 0.75s linear infinite spinner-border;
    animation: 1s linear infinite spinner-border;
}

#meetingInfo {
    width: 100%;
    border: 1px solid #ced1d5;
    border-radius: 0.375rem;
}

#meetingInfo li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 8px;
    margin: 5px 0;
    gap: 5px;
}

#meetingInfo p {
    display: flex;
    align-items: center;
    word-break: keep-all;
}

#meetingInfo p i {
    font-size: 0.25rem;
    margin-left: 7px;
    margin-right: 12px;
}

#meetingInfo button {
    word-break: keep-all;
}

.bootstrap-select > .dropdown-menu .dropdown-item {
    white-space: unset !important;
    word-break: keep-all;
}
