/* 기본 스타일 초기화 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    color: #333;
    background-color: #fff8f8;
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

a {
    color: #e35d6a;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #ff8a9a;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* 다크 모드 스타일 */
body.dark-mode {
    background-color: #282c35;
    color: #f0f0f0;
}

body.dark-mode a {
    color: #ff9eb5;
}

body.dark-mode a:hover {
    color: #ffccd5;
}

body.dark-mode #sidebar {
    background-color: #1f232c;
}

body.dark-mode .dashboard-header {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

body.dark-mode .article, 
body.dark-mode .comment-list .comment, 
body.dark-mode .reply-list .reply,
body.dark-mode .comment-form,
body.dark-mode .inline-toc,
body.dark-mode .toc-container,
body.dark-mode .counter {
    background-color: #2d333b;
}

body.dark-mode .banner-overlay {
    background-color: rgba(0, 0, 0, 0.5);
}

/* 레이아웃 */
#wrap {
    display: flex;
    min-height: 100vh;
}

#sidebar {
    width: 300px;
    padding: 30px 20px;
    background-color: #fff;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    transition: transform 0.3s, background-color 0.3s;
}

#container {
    flex: 1;
    margin-left: 300px;
    padding: 20px;
    transition: margin 0.3s;
}

/* 사이드바 스타일 */
.sidebar-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-header {
    margin-bottom: 30px;
    text-align: center;
}

.blog-title {
    font-size: 24px;
    margin-bottom: 10px;
}

.cherry-icon {
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 60px;
    overflow: hidden;
    margin-bottom: 15px;
    border: 3px solid #ffccd5;
    transition: transform 0.3s;
}

.profile-image:hover {
    transform: scale(1.05);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-desc {
    text-align: center;
    font-size: 14px;
    color: #777;
    padding: 0 20px;
}

/* 사이드바 요소들 */
.search {
    margin-bottom: 25px;
    position: relative;
}

.search input[type="text"] {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.search input[type="text"]:focus {
    outline: none;
    border-color: #ffabb7;
}

.search .submit {
    position: absolute;
    right: 5px;
    top: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #888;
    font-size: 14px;
    padding: 5px 10px;
}

.counter {
    margin-bottom: 25px;
    padding: 15px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    font-size: 13px;
    display: flex;
    flex-direction: column;
}

.counter span {
    margin-bottom: 5px;
}

.category, .tagbox, .recentComment, .popularPost, .recentPost, .notice {
    margin-bottom: 25px;
}

.category h3, .tagbox h3, .recentComment h3, .popularPost h3, .recentPost h3, .notice h3 {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ffccd5;
    color: #e35d6a;
}

/* 카테고리 스타일 */
.category ul li {
    padding: 5px 0;
    margin-bottom: 5px;
}

.category ul li a {
    display: block;
    padding: 5px 10px;
    transition: all 0.3s;
    border-radius: 5px;
}

.category ul li a:hover {
    background-color: #ffecef;
    padding-left: 15px;
}

body.dark-mode .category ul li a:hover {
    background-color: #3a3f4a;
}

.category ul li ul {
    margin-left: 15px;
}

/* 태그 클라우드 */
.tagbox ul {
    display: flex;
    flex-wrap: wrap;
}

.tagbox ul li {
    margin: 0 5px 5px 0;
}

.tagbox ul li a {
    display: inline-block;
    padding: 5px 10px;
    background-color: #ffecef;
    border-radius: 15px;
    font-size: 12px;
    transition: all 0.3s;
}

.tagbox ul li a:hover {
    background-color: #ffccd5;
    transform: translateY(-2px);
}

body.dark-mode .tagbox ul li a {
    background-color: #3a3f4a;
}

body.dark-mode .tagbox ul li a:hover {
    background-color: #4a5060;
}

/* 최근 댓글, 인기글, 최근글 */
.recentComment ul li, .popularPost ul li, .recentPost ul li {
    padding: 10px 0;
    border-bottom: 1px dashed #ddd;
}

.recentComment ul li:last-child, .popularPost ul li:last-child, .recentPost ul li:last-child {
    border-bottom: none;
}

.info_wrap {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

.name {
    margin-right: 10px;
}

.cnt {
    display: inline-block;
    padding: 0 5px;
    background-color: #ffecef;
    border-radius: 10px;
    font-size: 11px;
    margin-left: 5px;
}

/* 테마 전환 버튼 */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding: 15px 10px;
    background-color: #f8f8f8;
    border-radius: 10px;
    transition: background-color 0.3s;
    cursor: pointer;
}

body.dark-mode .theme-toggle {
    background-color: #3a3f4a;
}

.theme-btn {
    position: relative;
    width: 50px;
    height: 26px;
    border-radius: 13px;
    background-color: #ccc;
    cursor: pointer;
    transition: all 0.3s;
}

.theme-btn:before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #fff;
    transition: all 0.3s;
}

body.dark-mode .theme-btn {
    background-color: #e35d6a;
}

body.dark-mode .theme-btn:before {
    left: 27px;
}

/* 메인 컨텐츠 스타일 */
.inner {
    max-width: 900px;
    margin: 0 auto;
}

/* 상단 검색 바 */
.top-search {
    margin-bottom: 30px;
    position: relative;
    max-width: 500px;
}

.top-search input[type="text"] {
    width: 100%;
    padding: 12px 50px 12px 20px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 15px;
    transition: all 0.3s;
}

.top-search input[type="text"]:focus {
    outline: none;
    border-color: #ffabb7;
    box-shadow: 0 0 10px rgba(255, 171, 183, 0.3);
}

.top-search button {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    color: #999;
    font-size: 18px;
}

/* 헤더 배너 */
.dashboard-header {
    position: relative;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.banner-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 236, 239, 0.7);
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    color: #333;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.banner-content h2 {
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 700;
}

.banner-content p {
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* 글 목록 */
.searchList {
    margin-bottom: 30px;
}

.searchList h3 {
    font-size: 22px;
    margin-bottom: 20px;
}

.searchList ol li {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    position: relative;
    transition: all 0.3s;
}

.searchList ol li:hover {
    background-color: #ffecef;
}

.searchList ol li .date {
    color: #999;
    font-size: 13px;
    margin-bottom: 5px;
    display: block;
}

/* 글 보기 */
.titleWrap {
    margin-bottom: 20px;
}

.titleWrap h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.titleWrap .category {
    margin-bottom: 5px;
}

.titleWrap .date {
    color: #999;
    font-size: 14px;
}

.article {
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    line-height: 1.8;
}

.article img, .article iframe {
    max-width: 100%;
    border-radius: 5px;
    margin: 20px 0;
}

.article pre {
    background-color: #f6f8fa;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 20px 0;
}

.article blockquote {
    border-left: 4px solid #ffccd5;
    padding-left: 20px;
    margin: 20px 0;
    color: #666;
}

body.dark-mode .article pre {
    background-color: #1f232c;
}

/* 포스트 태그 */
.post-tags {
    margin: 30px 0;
}

.post-tags a {
    display: inline-block;
    margin: 0 5px 5px 0;
    padding: 5px 12px;
    background-color: #ffecef;
    border-radius: 15px;
    font-size: 13px;
    transition: all 0.3s;
}

.post-tags a:hover {
    background-color: #ffccd5;
    transform: translateY(-2px);
}

body.dark-mode .post-tags a {
    background-color: #3a3f4a;
}

body.dark-mode .post-tags a:hover {
    background-color: #4a5060;
}

/* 댓글 영역 */
.comment-area {
    margin-bottom: 50px;
}

.comment-title {
    font-size: 20px;
    margin-bottom: 20px;
}

.comment-list .comment {
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.comment-info {
    margin-bottom: 10px;
}

.comment-content {
    margin-bottom: 10px;
}

.comment-control {
    text-align: right;
}

.comment-control a {
    margin-left: 10px;
    font-size: 13px;
}

.reply-list {
    margin-top: 15px;
    margin-left: 30px;
}

.reply-list .reply {
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 10px;
    margin-bottom: 10px;
}

.comment-form {
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    margin-top: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.guest-info {
    display: flex;
    margin-bottom: 15px;
}

.guest-info input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-right: 10px;
}

.guest-info input:last-child {
    margin-right: 0;
}

.comment-input textarea {
    width: 100%;
    height: 100px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    resize: vertical;
    margin-bottom: 15px;
    transition: border-color 0.3s;
}

.comment-input textarea:focus {
    outline: none;
    border-color: #ffabb7;
}

.submit button {
    padding: 10px 20px;
    background-color: #e35d6a;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit button:hover {
    background-color: #d84759;
}

/* 목차 (TOC) 스타일 */
.toc-container {
    width: 250px;
    position: fixed;
    right: 20px;
    top: 100px;
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    max-height: 70vh;
    overflow-y: auto;
    z-index: 50;
    transition: all 0.3s;
    opacity: 0.85;
}

.toc-container:hover {
    opacity: 1;
}

body.dark-mode .toc-container {
    background-color: #2d333b;
}

.toc-header {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ffccd5;
    color: #e35d6a;
}

.toc-list {
    list-style-type: none;
}

.toc-list li {
    padding: 5px 0;
    margin-bottom: 5px;
    font-size: 14px;
}

.toc-list li a {
    display: block;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s;
}

.toc-list li a:hover {
    background-color: #ffecef;
    padding-left: 15px;
}

body.dark-mode .toc-list li a:hover {
    background-color: #3a3f4a;
}

.toc-list li ul {
    margin-left: 15px;
}

.toc-list li.active a {
    background-color: #ffecef;
    color: #e35d6a;
    font-weight: 500;
}

body.dark-mode .toc-list li.active a {
    background-color: #3a3f4a;
}

.toc-sticky {
    position: sticky;
    top: 20px;
}

/* 인라인 TOC (모바일 및 화면 좁을 때) */
.inline-toc {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: none;
}

body.dark-mode .inline-toc {
    background-color: #2d333b;
}

/* 푸터 */
.blog-footer {
    margin-top: 50px;
    padding: 30px 0;
    border-top: 1px solid #eee;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.copyright {
    margin-bottom: 15px;
    color: #999;
    font-size: 13px;
}

.footer-links a {
    margin: 0 10px;
    font-size: 13px;
}

/* 벚꽃 애니메이션 */
.cherry-blossom-container {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.cherry-petal {
    position: absolute;
    width: 15px;
    height: 15px;
    background: #ffccd5;
    border-radius: 150% 0 150% 0;
    animation: fall 10s linear forwards;
    z-index: -1;
}

.cherry-ground {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    z-index: -1;
    display: flex;
    justify-content: flex-start;
    pointer-events: none;
}

.ground-petal {
    width: 10px;
    height: 10px;
    background: #ffccd5;
    border-radius: 150% 0 150% 0;
    margin: 0 5px;
    opacity: 0.8;
}

@keyframes fall {
    0% {
        transform: translateY(-50px) rotate(0deg);
        opacity: 0.9;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0.4;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* 이미지 확대 오버레이 */
.image-zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    display: none;
}

.zoom-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border: 3px solid #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.zoom-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.3);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.zoom-close:hover {
    background-color: rgba(255,255,255,0.5);
}

/* 코드 블록 스타일 */
.code-block {
    background-color: #2d2d2d;
    color: #f8f8f2;
    border-radius: 5px;
    padding: 20px;
    margin: 20px 0;
    overflow-x: auto;
    position: relative;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    line-height: 1.5;
}

/* 코드 언어 라벨 */
.code-block:before {
    content: attr(class);
    position: absolute;
    top: 0;
    right: 0;
    padding: 3px 10px;
    font-size: 12px;
    color: #f8f8f2;
    background-color: rgba(0,0,0,0.2);
    border-radius: 0 5px 0 5px;
}

body.dark-mode .code-block {
    background-color: #1a1a1a;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* 모바일 메뉴 토글 버튼 */
.menu-toggle {
    display: none;
    position: fixed;
    top: 10px;
    left: 10px;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1100;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

body.dark-mode .menu-toggle {
    background-color: rgba(45, 51, 59, 0.8);
    color: #fff;
}

/* 모바일 & 반응형 스타일 */
@media (max-width: 1200px) {
    .toc-container {
        display: none;
    }
    
    .inline-toc {
        display: block;
    }
}

@media (max-width: 991px) {
    #sidebar {
        transform: translateX(-100%);
        width: 280px;
    }
    
    #container {
        margin-left: 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    body.menu-open #sidebar {
        transform: translateX(0);
    }
    
    .top-search {
        margin-left: 60px;
        max-width: calc(100% - 70px);
    }
}

@media (max-width: 768px) {
    .dashboard-header {
        height: 250px;
    }
    
    .banner-content h2 {
        font-size: 22px;
    }
    
    .banner-content p {
        font-size: 14px;
    }
    
    .titleWrap h2 {
        font-size: 26px;
    }
    
    .article {
        padding: 20px;
    }
    
    .cherry-petal {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 576px) {
    #container {
        padding: 15px;
    }
    
    .dashboard-header {
        height: 200px;
    }
    
    .banner-content {
        padding: 20px;
    }
    
    .banner-content h2 {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .guest-info {
        flex-direction: column;
    }
    
    .guest-info input {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* 카테고리 스타일 */
#treeComponent {
    width: 100%;
    font-family: 'Noto Sans KR', sans-serif;
    border: none;
    margin-bottom: 20px;
}

#treeComponent table {
    width: 100%;
    border-spacing: 0;
    border-collapse: collapse;
    margin-bottom: 10px;
}

/* 기본 카테고리 텍스트 스타일 */
#treeComponent div {
    font-size: 14px;
    padding: 8px 0;
    transition: all 0.3s ease;
    border-radius: 5px;
}

/* 카테고리 텍스트에 호버 효과 */
#treeComponent .branch3:hover div {
    color: #e35d6a !important;
    background-color: #ffecef;
    padding-left: 10px;
}

body.dark-mode #treeComponent .branch3:hover div {
    background-color: #3a3f4a;
}

/* 카테고리 항목 간 간격 */
#treeComponent td {
    padding: 2px 0;
}

/* 카테고리 트리 아이콘 숨기기 및 조정 */
#treeComponent .ib img,
#treeComponent td img[src*="tab_"],
#treeComponent td img[src*="navi_back"] {
    display: none !important;
}

#treeComponent .ib,
#treeComponent td[style*="width:39px"] {
    width: 15px !important;
    background-image: none !important;
}

/* 카테고리 클릭 영역 스타일 */
#treeComponent .branch3 {
    cursor: pointer;
    padding: 1px 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 20px !important;
}

/* 벚꽃 아이콘으로 대체 */
#treeComponent .branch3::before {
    content: "🌸";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    opacity: 0.8;
}

/* 서브 카테고리 스타일 (들여쓰기) */
#treeComponent div[id^="category_"] div {
    padding-left: 5px;
}

/* 자식 카테고리 스타일 */
#treeComponent div[id$="_children"] table .branch3::before {
    content: "🌿";
    font-size: 12px;
}

/* 카테고리 글 수 스타일 */
#treeComponent .c_cnt {
    font-size: 12px;
    color: #888;
    padding-left: 5px;
    font-weight: normal;
}

/* 접힌/펼친 아이콘 호버 효과 */
#treeComponent .click:hover {
    opacity: 0.7;
}

/* 활성화된 카테고리 스타일 */
#treeComponent .branch3.selected div {
    font-weight: bold;
    color: #e35d6a !important;
    background-color: #ffecef;
    padding-left: 10px;
}

#treeComponent .branch3.selected::before {
    content: "🌺";
}

body.dark-mode #treeComponent .branch3.selected div {
    background-color: #3a3f4a;
}

/* 카테고리 전체보기 스타일 */
#treeComponent #text_0 {
    font-weight: 500;
    padding: 10px 5px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 5px;
}

body.dark-mode #treeComponent #text_0 {
    border-bottom: 1px solid #3a3f4a;
}

/* 티스토리 카테고리 스타일 재정의 */
.category_list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category_list li {
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 5px;
    position: relative;
    padding-left: 20px !important;
}

.category_list li::before {
    content: "🌸";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
}

.category_list li a {
    display: block;
    padding: 8px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
    color: #333;
    text-decoration: none;
}

body.dark-mode .category_list li a {
    color: #f0f0f0;
}

/* 카테고리 아이콘 스타일 변경 */
.category_list .item_expand {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: none !important;
    vertical-align: middle;
    margin-right: 5px;
    position: relative;
}

.category_list .item_expand::before {
    content: "🌸";
    font-size: 14px;
    opacity: 0.7;
    position: absolute;
    left: 0;
    top: -2px;
}

.category_list .item_expand.on::before {
    content: "🌺";
}

/* 선택된 카테고리 스타일 */
.category_list li.on > a {
    background-color: #ffecef;
    color: #e35d6a;
    font-weight: bold;
}

body.dark-mode .category_list li.on > a {
    background-color: #3a3f4a;
    color: #ff9eb5;
}

/* 카테고리 호버 효과 */
.category_list li a:hover {
    background-color: #ffecef;
    padding-left: 15px;
    color: #e35d6a;
}

body.dark-mode .category_list li a:hover {
    background-color: #3a3f4a;
    color: #ff9eb5;
}

/* 하위 카테고리 들여쓰기 */
.category_list ul {
    padding-left: 15px;
}

/* 카테고리 글 수 스타일 */
.category_list .c_cnt {
    font-size: 12px;
    color: #999;
    margin-left: 5px;
}

/* 티스토리 카테고리 토글 버튼용 스타일 */
a.api_toggle_children {
    display: inline-block;
    width: 16px;
    height: 16px;
    position: relative;
    margin-right: 5px;
    vertical-align: middle;
    background-image: none !important;
}

a.api_toggle_children::before {
    content: "🌿";
    font-size: 13px;
    opacity: 0.8;
    position: absolute;
    left: 0;
    top: -2px;
}

a.api_toggle_children.on::before {
    content: "🌺";
}

/* 다크 모드 추가 스타일 */
body.dark-mode .category_list li::before,
body.dark-mode #treeComponent .branch3::before {
    opacity: 1; /* 다크 모드에서 아이콘 더 선명하게 */
}

body.dark-mode .counter span,
body.dark-mode .profile-desc,
body.dark-mode .category h3, 
body.dark-mode .tagbox h3, 
body.dark-mode .recentComment h3, 
body.dark-mode .popularPost h3, 
body.dark-mode .recentPost h3, 
body.dark-mode .notice h3,
body.dark-mode .toc-header {
    color: #f0f0f0 !important;
}

body.dark-mode .category h3, 
body.dark-mode .tagbox h3, 
body.dark-mode .recentComment h3, 
body.dark-mode .popularPost h3, 
body.dark-mode .recentPost h3, 
body.dark-mode .notice h3,
body.dark-mode .toc-header {
    border-bottom-color: #3a3f4a;
}

body.dark-mode input[type="text"],
body.dark-mode textarea {
    background-color: #2d333b;
    color: #f0f0f0;
    border-color: #3a3f4a;
}

body.dark-mode .search .submit,
body.dark-mode .top-search button {
    color: #f0f0f0;
}

body.dark-mode #wrap {
    background-color: #282c35;
}

body.dark-mode a.api_toggle_children::before {
    opacity: 1;
}

body.dark-mode .info_wrap,
body.dark-mode .date,
body.dark-mode .copyright {
    color: #aaa !important;
}

/* 특별한 다크 모드 스타일 - 테마 전환 버튼에 추가적인 스타일 */
.theme-toggle span {
    font-weight: 500;
    transition: color 0.3s;
}

body.dark-mode .theme-toggle span {
    color: #f0f0f0;
}

.theme-toggle:hover .theme-btn {
    box-shadow: 0 0 8px rgba(255, 171, 183, 0.5);
}

body.dark-mode .theme-toggle:hover .theme-btn {
    box-shadow: 0 0 8px rgba(227, 93, 106, 0.5);
}