﻿.login-wid{
    position: relative;
    padding: 20px 30px;
    width: 304px;
    border-radius: 2px;
    border: 1px solid rgb(235, 235, 235);
}
.login-wid h1{
    font-size: 20px;
    padding: 20px 0;
    text-align: center;
}
.login-input{
    padding-top: 10px;
}
.login-input input{
    margin: 10px 0;
    height: 30px;
    width: 100%;
    border: none;
    border-bottom: 1px solid rgb(235, 235, 235);
    outline: none;
}
.login-input div input{
    height: auto;
    margin-top: 40px;
    width: auto;
    border: 1px slid rgb(235, 235, 235);
}
.login-input div span{
    font-size: 14px;
}
.login-btn{
    position: relative;
    padding-top: 6px;
}
.login-btn button{
    padding: 14px;
    cursor: pointer;
    background: var(--brand-action);
    width: 100%;
    color: white;
    border-radius: 50px;
    border: none;
}
.login-btn a{
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    display: block;
    padding-top: 10px;
    color: black;
}
.login-text{
    font-size: 14px;
    text-align: center;
    padding-top: 30px;
}
.login-text p:first-child{
    padding-bottom: 10px;
}

/* 登录成功 */
.login-list{
    position: relative;
    width: 304px;
    border-radius: 2px;
    border: 1px solid rgb(235, 235, 235);
}
.login-name{
    position: relative;
    display: flex;
    align-items: center;
    padding: 20px 30px;
    background-color: rgb(250, 250, 250);
    border-bottom: 1px solid rgb(235, 235, 235);
}
.login-image{
    margin-right: 20px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 60px;
    height: 60px;
}
.login-name-p h1{
    font-size: 20px;
    padding-bottom: 4px;    
}
.login-name-p p{
    font-size: 14px;
}
.logoin-listt{
    padding: 0 20px;
}
.logoin-listt a{
    display: block;
    font-weight: 600;
    color: rgb(34, 34, 34);
    padding: 16px 0;
    font-size: 14px;
    border-bottom: 1px solid rgb(235, 235, 235);
}
.logoin-listt button{
    padding: 16px 0;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;

}
.lo-bt-cg{
    padding-top: 20px;
}
.lo-bt-cg button:last-child{
    margin-top: 20px;
    background-color: white;
    border: 1px solid rgb(235, 235, 235);
    color: rgb(34, 34, 34);
}
.login-wid h3{
    padding: 30px 0;
}
.login-img-cg {
    position: relative;
    display: flex;
    /* margin: 30px 0; */
    /* justify-content: center; */
    align-items: center;
}
.login-img-cg input{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: none;
    border: none;
    bottom: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}
.login-img-cg img{
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}
.login-img-cg p{
    padding-left: 10px;
}

.regi-int-a-title{
    position: relative;
    display: flex;
    align-items: center;
}
.regi-int-a-title a{
    display: flex;
    align-items: center;
    color: black;
    font-weight: 600;
}
.regi-int-a-title img{
    width: 60px;
    height: 60px;
    margin-right: 20px;
}
.regi-int-a-title span{
    font-size: 20px;
}

/* 注册会员 */
.oot-register{
    position: relative;
}
.regi-width{
    margin: 0 auto;
    width: 100%;
    max-width: 410px;
    padding: 0 12px;
}
.regi-int-a{
    position: relative;
    padding-top: 20px;
}
.regi-int-a h4, .regi-int-b h4, .regi-int-c h4{
    font-size: 20px;
    padding: 10px 0;
}
.int-a-a, .int-a-b{
    padding: 10px 0;
}
.int-a-a input, .int-a-b input, .regi-int-b input, .int-b-a input{
    width: 100%;
    height: 40px;
    outline: none;
    border: none;
    border-bottom: 1px solid rgb(235, 235, 235);
}
.int-a-a p, .int-b-a p, .int-b-b p, .int-c-b p{
    font-size: 14px;
    padding-top: 4px;
    color: rgb(202, 202, 202);
}
.regi-int-b, .regi-int-c{
    padding: 20px 0;
}
.regi-int-b h4{
    padding-bottom: 20px;
}
.int-c-a{
    padding: 20px 0;
}
.int-c-a h5, .int-c-b h5{
    padding-bottom: 6px;
}
.int-c-a span, .int-c-b span{
    font-size: 14px;
    padding-left: 4px;
    vertical-align: top;
}
.regi-int-d{
    position: relative;
    padding: 10px 0;
}
.regi-int-d button{
    width: 100%;
    background: var(--brand-action);
    border: none;
    border-radius: 46px;
    padding: 14px 0;
    color: white;
    margin: 8px 0;
    cursor: pointer;
    font-weight: bold;
}
.regi-int-d button:last-child{
    background: white;
    border: 1px solid rgb(235, 235, 235);
    color: rgb(34, 34, 34);
}



/* 注册成功 */
.regi-cg{
    padding: 30px 0;
    position: relative;
    text-align: center;
}
.regi-cg-tt{
    text-align: center;
}
.regi-cg-tt h1{
    padding-bottom: 20px;
}
.regi-cg-tt a{
    display: block;
    width: 100%;
    padding: 14px 0;
    border-radius: 50px;
    border: 1px solid rgb(235, 235, 235);
    color: rgb(34, 34, 34);
    font-weight: bold;
}
.oot-re-height{
    min-height: 600px;
}



/* 我的书单 */
.my-book{
    position: relative;
    padding: 30px 0;
}
.my-book button{
    font-weight: bold;
    font-size: 18px;
    background: none;
    border: none;
    padding-right: 20px;
    cursor: pointer;
}
.my-book button:first-child{
    color:var(--brand-text);
}
.my-book button:last-child{
    position: absolute;
    right: 0;
    top: 34px;
    display: flex;
    align-items: center;
    font-weight: normal;
    font-size: 14px;
}
.my-book button:last-child svg{
    margin-right: 8px;
}
.my-bk-on{
    position: relative;
}
.my-bk-dt{
    position: absolute;
    display: flex;
    align-items: center;
    right: 0;
    top: 22px;
}
.my-bk-dt span{
    font-size: 14px;
    cursor: pointer;
}
.my-bk-dt p{
    padding-right: 24px;
}
.my-bk-dt p font{
    color:var(--brand-text);
    font-weight: bold;
}
.my-bk-dt span:nth-child(2){
    padding: 10px 20px;
    background-color: var(--brand-action);
    color: white;
    margin-right: 10px;
    border-radius: 50px;
}
.my-bk-dt span:nth-child(3){
    padding: 10px 20px;
    border: 1px solid rgb(235, 235, 235);
    color: rgb(34, 34, 34);
    border-radius: 50px;
}
.lt-tp-tt {
    position: relative;
}
.lt-tp-tt input{
    position: absolute;
    right: 0;
    top: 0;
}
.lt-tp-tt p:nth-child(1){
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    width: 130px;
}
.lt-tp-tt p:nth-child(2){
    font-size: 14px;
}

/* 탭 스타일 */
.mybook-tab {
    font-weight: bold;
    font-size: 18px;
    background: none;
    border: none;
    padding-right: 20px;
    cursor: pointer;
    color: #222222;
    transition: color 0.2s ease;
}

.mybook-tab.active {
    color:var(--brand-text);
}

.mybook-tab:hover {
    color:var(--brand-text);
}

/* 탭 콘텐츠 스타일 */
.mybook-content {
    width: 100%;
    background: white;
    padding: 20px;
    border-radius: 10px;
}

.tab-content {
    display: none;
    width: 100%;
}
.mycomments-content{
    width: 100%;
}
.tab-content.active {
    display: block;
}

/* 내정보 탭 스타일 */
.myinfo-content {
    border-radius: 8px;
}

.myinfo-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #222222;
}

.user-profile {
    position: relative;
    background: white;
    padding: 16px;
    /* border-radius: 12px; */
    display: flex;
    border-bottom: 1px solid rgb(235, 235, 235);
    align-items: center;
    gap: 16px;
}
.profile-info{
    position: relative;
}
.profile-info p img{
    width: 26px !important;
    height: 26px !important;
}
.user-avatar-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 20px;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #6c757d;
}

.user-details-large h4 {
    font-size: 20px;
    margin-bottom: 5px;
    color: #222222;
}

.user-details-large p {
    color: #6c757d;
    margin-bottom: 10px;
}

.user-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 16px;
    border-bottom: 1px solid rgb(235, 235, 235);
    gap: 20px;
}

.user-profile a{
    display: block;
    width: 60px;
    height: 60px;
}
.user-profile a img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* 프로필 변경 아이콘 스타일 */
.profile-image-container {
    position: relative;
    display: inline-block;
}

.profile-change-icon {
    position: absolute;
    bottom: 0;
    right: 0;    
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.profile-change-icon img{
    display: block;
    width: 100%;
    height: 100%;
    background: white;
    object-fit: cover;
}

.profile-change-icon:hover {
    background-color: #fff;
    transform: scale(1.1);
}

/* 프로필 변경 모달 스타일 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.close {
    color: #aaa;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

.profile-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.profile-option {
    cursor: pointer;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.profile-option:hover {
    border-color: var(--brand-action);
    transform: translateY(-2px);
}

.profile-option.selected {
    border-color: var(--brand-action);
    background-color: var(--brand-tint);
}

.profile-option img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modal-footer button {
    padding: 8px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

#confirmProfile {
    background-color: var(--brand-action);
    color: white;
}

#confirmProfile:hover {
    background-color: var(--brand-hover);
}

#cancelProfile {
    background-color: #ddd;
    color: #333;
}

#cancelProfile:hover {
    background-color: #bbb;
}



.stat-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    flex-direction: column;
    display: flex;
    text-align: center;
}
.stat-number{
    font-size: 24px;
}
.stat-value {
    font-size: 24px;
    font-weight: bold;
    color:var(--brand-text);
    margin-bottom: 5px;
}

.stat-label {
    color: #6c757d;
    font-size: 14px;
}

/* 세로 메뉴 레이아웃 */
.my-book-layout {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.sidebar-menu {
    width: 200px;
    flex-shrink: 0;
}

@media (min-width: 1201px){
  .sidebar-menu{ position: sticky; height: calc(100vh - 140px); overflow-y: auto }
}

.sidebar-tab {
    display: block;
    width: 100%;
    text-align: left;
    font-family: 'Pretendard Variable', sans-serif;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 500;
    background: none;
    border: none;
    border-left: 4px solid transparent;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 5px;
    border-radius: 0 8px 8px 0;
}

.sidebar-tab.active {
    background-color: #ffffff;
    border-left-color: var(--brand-action);
    color:var(--brand-text);
    font-weight: 600;
}

.sidebar-tab:hover {
    background-color: #f8f9fa;
    color: #495057;
}

/* 내서재 탭 스타일 */
.mylibrary-content h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #222222;
}

.library-subtabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 10px;
}

.library-subtab {
    padding: 8px 16px;
    font-family: 'Pretendard Variable', sans-serif;
    background: none;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s ease;
}

.library-subtab.active {
    background-color: var(--brand-action);
    color: white;
}

.library-subtab:hover {
    background-color: #f8f9fa;
    color: #495057;
}



/* 최근본만화 스타일 */
.top-m-list {
    margin-top: 20px;
}

.tp-list-many {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.tp-list-many a {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.tp-list-many a:hover {
    transform: translateY(-2px);
}

.tp-li-mbg {
    width: 100%;
    height: 150px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    margin-bottom: 10px;
}

.lt-tp-tt p:nth-child(1) {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
    color: #222222;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lt-tp-tt p:nth-child(2) {
    font-size: 14px;
    color: #6c757d;
}

/* 만화구독함 스타일 */
.subscription-content {
    padding: 40px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 20px;
}

.subscription-content h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #222222;
}

.subscription-content p {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 20px;
}

/* 비밀번호 변경 폼 스타일 */
.password-content {
    background: white;
    border-radius: 12px;
    margin-top: 30px;
}

.password-content h4 {
    font-size: 22px;
    font-weight: 600;
    color: #222222;
    margin-bottom: 25px;
    padding-bottom: 15px;
}

.password-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.my-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.my-form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    margin-bottom: 4px;
}

.my-form-group input {
    padding: 14px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Pretendard Variable', sans-serif;
    transition: all 0.2s ease;
    background: #ffffff;
}

.my-form-group input:focus {
    outline: none;
    border-color: var(--brand-action);
    box-shadow: 0 0 0 3px rgba(0, 133, 62, 0.1);
}

.my-form-group input::placeholder {
    color: #adb5bd;
    font-size: 14px;
}

.password-submit-btn {
    background: var(--brand-action);
    color: white;
    border: none;
    padding: 16px 24px;
    width: 160px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
    font-family: 'Pretendard Variable', sans-serif;
}

.password-submit-btn:hover {
    background: var(--brand-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 133, 62, 0.25);
}

.password-submit-btn:active {
    transform: translateY(0);
}


/* 회원탈퇴 */
.library-subcontent{
    position: relative;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .password-content {
        margin: 10px;
        padding: 15px;
    }
    
    .password-form {
        gap: 15px;
    }
    
    input {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .password-submit-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

.library-category {
    padding: 8px 16px;
    border: 1px solid #e9ecef;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.library-category.active {
    background: var(--brand-action);
    color: white;
    border-color: var(--brand-action);
}

.library-category:hover {
    border-color: var(--brand-action);
}

.library-items {
    background: white;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    color: #6c757d;
}

/* 내댓글 탭 스타일 */
.mycomments-content h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #222222;
}

.comment-list {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
}

.comment-item {
    padding: 20px 0;
    width: 100%;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.view-replies-btn,
.delete-comment-btn {
    padding: 8px 16px;
    border: 1px solid #e9ecef;
    font-family: 'Pretendard Variable', sans-serif;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.view-replies-btn {
    color: #495057;
}

.view-replies-btn:hover {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.delete-comment-btn {
    color: #f40d0d;
    border-color: #f40d0d;
}
.my-comic-image{
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    height: auto;
    border: 1px solid #e5e5e5;
    overflow: hidden;
    margin-bottom: 10px;
    border-radius: 8px;
}
.my-comic-image img {
    width: 100%;
    height: 100%;
    
    object-fit: cover;
    transition: transform 0.3s ease;
}
.my-comic-title{
    position: relative;
    display: flex;
    align-items: center;
    margin: 0 0 8px 0;
    overflow: hidden;
    min-width: 0;
}
.my-comic-title h3{
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 0;
    color: #222222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.my-comics-page{
    padding: 4px;
}
.delete-comment-btn:hover {
    background-color: #f40d0d;
    color: white;
}

/* 리플 창 스타일 - 하단 배치 */
.comment-replies {
    margin-top: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    display: none; /* opacity 대신 display none 사용 */
    width: 100%;
    order: 2; /* 하단에 배치 */
}

.replies-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

.replies-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #495057;
}

.close-replies-btn {
    padding: 6px 12px;
    border: 1px solid #6c757d;
    border-radius: 4px;
    background: white;
    color: #6c757d;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.close-replies-btn:hover {
    background-color: #6c757d;
    color: white;
}

.replies-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reply-item {
    padding: 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.reply-author {
    font-weight: 600;
    color: #495057;
    margin: 0 0 5px 0;
    font-size: 14px;
}

.reply-content {
    margin: 0 0 8px 0;
    color: #212529;
    font-size: 14px;
    line-height: 1.4;
}

.reply-date {
    margin: 0;
    font-size: 14px;
    color: #6c757d;
    text-align: right;
}

.no-comments {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-size: 16px;
}

.comment-text {
    font-size: 16px;
    margin-bottom: 8px;
    color: #222222;
}

.comment-meta {
    font-size: 14px;
    color: #6c757d;
}

/* 포인트 내역 스타일 */
.point-history-content {
    background: white;
    border-radius: 12px;
}
.point-history-content h3{
    padding-bottom: 20px;
    font-size: 22px;
}

/* 추가된 계정 탈퇴 스타일 */
.withdrawal-content {
    margin-top: 30px;
    border-radius: 8px;
    background-color: #ffffff;
}

.withdrawal-content h4 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.withdrawal-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.withdrawal-form {
    margin-bottom: 20px;
}

.withdrawal-reason {
    margin-bottom: 10px;
}

.withdrawal-reason input[type="radio"] {
    margin-right: 10px;
}

.withdrawal-notice {
    padding: 15px;
    background-color: #f2f2f2;
    border-radius: 4px;
    margin-bottom: 20px;
}

.withdrawal-notice p {
    font-size: 14px;
    color: #555;
    margin: 5px 0;
}

.withdrawal-submit-btn {
    width: 100%;
    padding: 12px;
    background-color: #c3312c;
    color: white;
    width: 160px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.withdrawal-submit-btn:hover {
    background-color: #c9302c;
}

.point-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 12px;
    color: white;
}

.point-total {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.point-label {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    opacity: 0.9;
}

.point-amount {
    font-size: 28px;
    font-weight: 700;
    font-family: 'Pretendard', sans-serif;
}

.point-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.point-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.stat-label {
    font-size: 14px;
    font-weight: 500;
}

.stat-amount {
    font-size: 18px;
    font-weight: 600;
    font-family: 'Pretendard', sans-serif;
}

.stat-amount.positive {
    color: #4caf50;
}

.stat-amount.negative {
    color: #f44336;
}

.point-history-list {
    margin-bottom: 30px;
}

.history-header {
    display: grid;
    grid-template-columns: 120px 1fr 120px;
    gap: 15px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 10px;
}

.history-item {
    display: grid;
    grid-template-columns: 120px 1fr 120px ;
    gap: 15px;
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.history-item:hover {
    background-color: #f8f9fa;
}

.history-date {
    color: #6c757d;
    font-size: 14px;
}

.history-desc {
    color: #212529;
    font-weight: 500;
}

.history-point {
    font-weight: 600;
    font-family: 'Pretendard', sans-serif;
}

.history-point.positive {
    color: #28a745;
}

.history-point.negative {
    color: #dc3545;
}

.history-balance {
    color: #495057;
    font-family: 'Pretendard', sans-serif;
}

.page-btn {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    background: white;
    color: #007bff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.page-btn:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.page-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.page-next {
    padding: 8px 16px;
    border: 1px solid #007bff;
    background: #007bff;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.page-next:hover {
    background: #0056b3;
    border-color: #0056b3;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .point-summary {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }
    
    .point-amount {
        font-size: 24px;
    }
    
    .history-header {
        display: none;
    }
    
    .history-item {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        padding: 15px 12px;
        gap: 8px;
    }
    
    .history-date {
        grid-column: 1 / 3;
        grid-row: 1;
        position: static;
        font-size: 14px;
        color: #888;
    }
    
    .history-desc {
        grid-column: 1;
        grid-row: 2;
    }
    
    .history-point {
        grid-column: 2;
        grid-row: 2;
        text-align: right;
    }
    
    .page-btn {
        padding: 6px 10px;
        font-size: 14px;
    }
    
    .page-next {
        padding: 6px 12px;
        font-size: 14px;
    }
}

/* 편집 모드 스타일 */
.library-subtabs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.edit-library-btn {
    padding: 8px 16px;
    background:#fff;
    color: black;
    border-radius: 6px;
    border: 1px solid #000;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-left: auto; /* 우측으로 정렬 */
}



.edit-library-btn:active {
    transform: translateY(0);
}

.library-edit-controls {
    display: none;
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.library-edit-controls.active {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.edit-control-btn {
    padding: 8px 16px;
    border: 1px solid #dee2e6;
    background: white;
    color: #495057;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.edit-control-btn:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

.edit-control-btn.delete {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.edit-control-btn.delete:hover {
    background: #c82333;
    border-color: #bd2130;
}

.edit-control-btn.cancel {
    background: #6c757d;
    color: white;
    border-color: #6c757d;
}

.edit-control-btn.cancel:hover {
    background: #5a6268;
    border-color: #545b62;
}

/* 편집 모드에서의 편집 버튼 스타일 */
.edit-library-btn.delete-mode {
    background: #f40d0d;
    color: white;
    border: 1px solid #f40d0d;
}



/* 취소 버튼 스타일 */
.cancel-edit-btn {
    padding: 8px 16px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
}



.cancel-edit-btn:active {
    transform: translateY(0);
}

.comic-checkbox {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    padding: 5px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.comic-select {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--brand-action);
}

.comic-card {
    position: relative;
}

.edit-mode .comic-checkbox {
    display: block !important;
}

.edit-mode .comic-card {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.edit-mode .comic-card:hover {
    opacity: 1;
}

.edit-mode .comic-card.selected {
    opacity: 1;
    border-radius: 8px;
}

/* 아케이드게임 스타일 */
.arcade-game-content {
    padding: 20px 0;
}

.arcade-game-content h4 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.arcade-game-content > p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.game-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}



.game-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

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

.game-info {
    padding: 20px;
}

.game-info h5 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.game-info p {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.play-game-btn {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-game-btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
}

/* 마지막으로 본 날짜 스타일 */
.last-viewed-date {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    font-size: 14px;
    color: #888;
}

.last-viewed-date svg {
    flex-shrink: 0;
}

.last-viewed-date span {
    line-height: 1;
}

/* 이어보기 컨테이너 스타일 */
.continue-reading-container {
    margin-top: 8px;
}

/* 이어보기 버튼 스타일 */
.continue-reading-btn {
    width: 100%;
    padding: 8px 12px;
    color: black;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    background: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Pretendard', sans-serif;
    transition: all 0.2s ease;
}

.continue-reading-btn:hover {
    border: 1px solid var(--brand-action);
    color:var(--brand-text);
}

.continue-reading-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 133, 62, 0.3);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .game-card {
        margin-bottom: 15px;
    }
    
    .game-info {
        padding: 15px;
    }
    
    .play-game-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .last-viewed-date {
        font-size: 14px;
    }

    .mylibrary-content {
        position: relative;
    }
    
    .mylibrary-content h3 {
        margin-bottom: 0;
    }
    .continue-reading-container{
        margin-top: 0;
        margin-bottom: 8px;
    }
    
    .edit-library-btn {
        position: absolute;
        top: 0;
        right: 0;
        margin-left: 0;
        padding: 6px 12px;
        font-size: 14px;
    }
}

/* 내서재 레이아웃 반응형: 좌측 세로 메뉴를 가로로, 콘텐츠는 아래 배치 */
@media (max-width: 1200px) {
  .my-book-layout{ flex-direction: column; gap: 16px }
  .sidebar-menu{ width:100%; display:flex; gap:8px; padding:8px 0; border-bottom:1px solid #e9ecef; flex-wrap:nowrap; overflow:hidden }
  .sidebar-tab{ flex:1 1 0; min-width:0; margin:0; padding:10px 4px; text-align:center; border-left:none; border-radius:6px; white-space:nowrap; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; font-size:14px }
  .sidebar-tab img, .sidebar-tab svg { width:26px; height:26px; flex-shrink:0; margin-right:0 !important; }
  .sidebar-tab.active{ background-color:#ffffff; color:var(--brand-text); border-left-color:transparent }
  .mybook-content{ 
    width:100%;
    padding: 10px;
 }
 .comic-episode .ep-badge.n-badge,
 .comic-episode .ep-badge.plus-badge{
    margin-bottom: 0 !important;
 }
 .continue-reading-container{
    width: 100%;
 }
}

html[data-theme="dark"] .sidebar-tab{ background: var(--color-bg); color: var(--color-text-muted); border-left-color: var(--color-border) }
html[data-theme="dark"] .sidebar-tab.active{ background: var(--color-bg-alt); color:var(--brand-text); border-left-color: var(--color-primary) }
html[data-theme="dark"] .sidebar-tab:hover{ background: var(--color-hover); color: var(--color-text) }
html[data-theme="dark"] .myinfo-content,
html[data-theme="dark"] .mylibrary-content,
html[data-theme="dark"] .mycomments-content{ background: var(--color-bg); color: var(--color-text) }
html[data-theme="dark"] .user-profile{ background: var(--color-bg); border-bottom: 1px solid var(--color-border) }
html[data-theme="dark"] .user-stats{ border-bottom: 1px solid var(--color-border) }
html[data-theme="dark"] .stat-item{ background: var(--color-bg-alt); color: var(--color-text) }
html[data-theme="dark"] .library-subtabs{ border-bottom: 1px solid var(--color-border) }
html[data-theme="dark"] .library-items{ background: var(--color-bg); color: var(--color-text) }
html[data-theme="dark"] .comment-list{ background: var(--color-bg) }
html[data-theme="dark"] .comment-item{ border-bottom: 1px solid var(--color-border) }
html[data-theme="dark"] .comment-actions button{ border-color: var(--color-border); background: var(--color-bg); color: var(--color-text) }
html[data-theme="dark"] .password-content{ background: #121212; color: var(--color-text) }
html[data-theme="dark"] .password-form .my-form-group label{ color: var(--color-text) }
html[data-theme="dark"] .password-form .my-form-group input{ background: var(--color-bg); color: var(--color-text); border-color: var(--color-border) }
html[data-theme="dark"] .password-content h4{ color:#fff }
html[data-theme="dark"] .my-comic-image{ border-color:#121212 }
html[data-theme="dark"] .my-comic-title h3{ color:#fff }
html[data-theme="dark"] .continue-reading-btn{ background:#121212; border-color:#424242; color:#fff }
html[data-theme="dark"] .withdrawal-content{ background:#121212; color: var(--color-text) }
html[data-theme="dark"] .withdrawal-form label{ color: var(--color-text) }
html[data-theme="dark"] .withdrawal-notice p{ color: var(--color-text) }
html[data-theme="dark"] .withdrawal-notice{ background:#121212; border:1px solid #e0e0e0 }
html[data-theme="dark"] .myinfo-content h3{ color:#fff }
html[data-theme="dark"] .point-history-content{ background:#121212 }
html[data-theme="dark"] .point-history-content h3{ color:#fff }
html[data-theme="dark"] .history-item{ border-bottom: 1px solid #424242 }
html[data-theme="dark"] .history-item:hover,
html[data-theme="dark"] .history-item:active { background-color: #2c2c2c }
html[data-theme="dark"] .history-desc{ color:#fff }
html[data-theme="dark"] .history-header{ background:#424242; color:#fff }
html[data-theme="dark"] .library-subtab:hover { background-color: #424242; color: #fff }
html[data-theme="dark"] .edit-library-btn { background: #2C2C2C; color: #fff; border-color: #555 }
html[data-theme="dark"] .edit-library-btn:hover { background: #424242 }
html[data-theme="dark"] .library-edit-controls { background: #121212; border-color: #424242; }
html[data-theme="dark"] .edit-control-btn { background: #2c2c2c; color: #fff; border-color: #555; }
html[data-theme="dark"] .edit-control-btn:hover { background: #424242; }
html[data-theme="dark"] .cancel-edit-btn { background: #424242; color: #fff; }
html[data-theme="dark"] .mycomments-content h3{ color:#fff }
html[data-theme="dark"] .comment-content{ color:#fff }
html[data-theme="dark"] .comment-content a{ color:#fff }
html[data-theme="dark"] .comment-text{ color:#fff }
html[data-theme="dark"] .mylibrary-content h3{ color:#fff }

html[data-theme="dark"] .mybook-content{
    background: none;

}

/* ???? ? ??? */
.register-group {
    margin-bottom: 20px;
}
.register-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    border-bottom: 2px solid #333;
    padding-bottom: 5px;
}
.reg-input-wrap {
    margin-bottom: 10px;
}
.reg-input {
    width: 100%;
    padding: 10px 0;
    border: none;
    border-bottom: 1px solid #ddd;
    outline: none;
    font-size: 14px;
    background: transparent;
    color: var(--color-text);
}
.reg-input::placeholder {
    color: #aaa;
}
.reg-desc {
    font-size: 14px;
    color: #888;
    margin-top: 5px;
    line-height: 1.4;
}
.reg-gender-wrap {
    margin-bottom: 10px;
    display: flex;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}
.gender-label, .checkbox-label {
    font-size: 14px;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}
.reg-setting-wrap {
    margin-bottom: 15px;
}
.reg-setting-title {
    font-size: 14px;
    font-weight: normal;
    color: var(--color-text);
    margin-bottom: 5px;
}

/* Login Popup Toggle Styles */
.login-header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.login-logo {
    margin: 0 auto;
}


/* Register Section Popup Styles */
#register-section {
    width: 100%;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
    text-align: left;
}
#register-section .regi-int-a,
#register-section .regi-int-b,
#register-section .regi-int-c {
    padding-top: 10px;
    padding-bottom: 10px;
}
#register-section h4 {
    font-size: 15px;
    padding: 5px 10px;
    margin: 0;
    color: var(--color-text, #000);
}
#register-section .form-group {
    padding: 5px 10px;
    margin-bottom: 5px;
    background: transparent;
    border-bottom: 1px solid var(--color-border, #ebebeb);
}
#register-section .form-group input {
    width: 100%;
    height: 30px;
    border: none;
    outline: none;
    background: transparent;
    color: var(--color-text, #000);
}
#register-section .reg-desc {
    font-size: 14px;
    padding-left: 10px;
    color: #888;
    margin: 0 0 10px 0;
}
#register-section .int-c-a,
#register-section .int-c-b > div {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    padding-left: 10px;
}
#register-section .int-c-a h5,
#register-section .int-c-b h5 {
    font-size: 14px;
    width: 90px;
    margin: 0;
    color: var(--color-text, #333);
    font-weight: 500;
}
#register-section .checkbox-label {
    font-size: 14px;
    color: var(--color-text, #666);
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 0;
}
#register-section .checkbox-label input {
    margin-right: 6px;
}
#register-section .reg-desc-indent {
    font-size: 14px;
    padding-top: 4px;
    margin: 0 0 0 100px;
    color: #888;
}
#register-section .flex-buttons {
    display: flex;
    gap: 10px;
}
#register-section .flex-buttons button {
    flex: 1;
    margin-top: 0;
}
#register-section .btn-cancel {
    background: #888;
}

/* === Extracted Inline Styles for Auth Popup (Login & Register) === */
.login-header-wrapper {
    width: 100%;
    align-items: stretch;
}
.login-logo-centered {
    margin: 0 auto;
}

.login-logo-text-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
}

.login-logo-text-wrap .login-logo {
    width: 42px; /* Reduced size */
    height: auto;
    margin: 0;
}

.login-logo-text {
    font-size: 24px;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.5px;
}

html[data-theme="dark"] .login-logo-text {
    color: #ffffff;
}

/* Login Tab Toggle Styles */
.login-tab-container {
    display: flex;
    border: 1px solid #e5e5e5;
    background: #f1f1f1;
    border-radius: 10px; /* Slightly rounded for the outer container */
    padding: 5px;
    margin: 20px 0;
    position: relative;
}

.login-tab-btn {
    flex: 1;
    padding: 8px 0; /* Slightly taller padding to match the pill proportion */
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #979797;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 1;
}

/* Sliding Pill Background */
.login-tab-container::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    width: calc(50% - 5px);
    height: calc(100% - 10px);
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.05); /* Softer shadow matching image */
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    z-index: 0;
}

/* Move pill when Register is active */
.login-tab-container.register-active::before {
    transform: translateX(100%);
}

.login-tab-btn.active {
    color: #000; /* Active text color matching image */
    background-color: transparent !important;
    box-shadow: none !important;
}

/* Dark mode support */
html[data-theme="dark"] .login-tab-container {
    background-color: #1e1e1e;
}

html[data-theme="dark"] .login-tab-container::before {
    background-color: #2c2c2c;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .login-tab-btn {
    color: #888;
}

html[data-theme="dark"] .login-tab-btn.active {
    color: #ffffff;
    background-color: transparent !important;
}

/* Modern Login Form Styles (based on provided image) */
.modern-login-form {
    padding: 0 5px;
}

.modern-form-group {
    margin-bottom: 15px;
    text-align: left;
}

.modern-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #495057;
    margin-bottom: 8px;
}

.modern-input {
    width: 100%;
    padding: 14px 15px;
    font-size: 15px;
    
    border: 1px solid #e5e5e5; /* Subtle border */
    border-radius: 10px; /* More rounded corners */
    color: #1e293b;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.modern-input:focus {
    border-color: var(--brand-action);
    background-color: #ffffff;
}

.modern-login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 20px;
}

.modern-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.modern-checkbox {
    accent-color: var(--brand-action); /* Custom red checkbox */
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
}

.modern-checkbox-text {
    margin-left: 6px;
    font-size: 14px;
    color: #868e96;
    font-weight: 500;
}

.modern-find-pw {
    font-size: 14px;
    color: #868e96;
    text-decoration: none;
    font-weight: 600;
}

.modern-find-pw:hover {
    color:var(--brand-text);
}

/* Modern Submit Button */
.modern-buttons {
    padding: 0 5px;
    margin-top: 0;
}

.login-submit-btn.modern-submit-btn {
    width: 100%;
    background-color: var(--brand-action);
    color: #ffffff;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    padding: 16px 0;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}



.login-submit-btn.modern-submit-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 6px rgba(0, 133, 62, 0.3);
}

/* Hide the old welcome text to match the clean design */
.login-welcome {
    display: none !important;
}

/* Dark mode adjustments */
html[data-theme="dark"] .modern-label {
    color: #ced4da;
}

html[data-theme="dark"] .modern-input {
    background-color: #2c2c2c;
    color: #ffffff;
    border-color: #444;
}

html[data-theme="dark"] .modern-input:focus {
    border-color: var(--brand-action);
    background-color: #1a1a1a;
}

html[data-theme="dark"] .modern-checkbox-text,
html[data-theme="dark"] .modern-find-pw {
    color: #adb5bd;
}

html[data-theme="dark"] .modern-find-pw:hover {
    color:var(--brand-text);
}

/* Keep the registration action visible while the fields scroll on short screens. */
#login-popup-container .login-popup-content {
    max-height: calc(100dvh - 32px);
    overflow: hidden;
}

#register-section.active {
    display: flex !important;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    max-height: none;
    overflow: hidden;
    padding-right: 0;
}

#register-section .register-form-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
    scrollbar-width: thin;
    scrollbar-color: #c8c8c8 transparent;
}

#register-section .modern-buttons {
    flex: 0 0 auto;
    padding-top: 12px;
    background: var(--color-bg, #fff);
}

body:has(#login-popup-container.open) .mobile-bottom-nav {
    visibility: hidden;
}

/* Modern Label with Tooltip */
.modern-label-wrap {
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 8px;
}

.modern-label-wrap .modern-label {
    margin-bottom: 0;
    margin-right: 6px;
}

.modern-info-btn {
    background: none;
    border: none;
    padding: 0;
    color: #868e96;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.modern-info-btn:hover {
    color:var(--brand-text);
}

.modern-tooltip {
    position: absolute;
    left: calc(100% + 8px); /* Position to the right of the icon */
    top: 50%;
    transform: translateY(-50%); /* Center vertically with the icon */
    background-color: #1e293b;
    color: #ffffff;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 6px;
    white-space: nowrap; /* Keep text on a single line */
    width: max-content;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 100;
    line-height: 1.4;
}

.modern-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 100%; /* Point left towards the icon */
    transform: translateY(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent #1e293b transparent transparent;
}

.modern-tooltip.show {
    display: block !important;
}

/* Dark mode support for tooltip */
html[data-theme="dark"] .modern-tooltip {
    background-color: #334155;
}
html[data-theme="dark"] .modern-tooltip::after {
    border-color: transparent #334155 transparent transparent;
}
