/**
 * MY 콘텐츠 저장소 - PC 스타일
 * @version 1.0
 * @since 2026-03-04
 */

/* ========================================
   토스트 메시지
   ======================================== */
.mycontent-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(51, 51, 51, 0.9);
    color: #fff;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 14px;
    line-height: 1.4;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    max-width: 80%;
    text-align: center;
}
.mycontent-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 이중 메뉴 포지셔닝을 위한 부모 relative */
.contentBox li {
    position: relative;
}

/* ========================================
   이중 메뉴 (썸네일 클릭 시)
   ======================================== */
.mycontent-dual-menu {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    border: 1px dashed #999;
    background: #fff;
    z-index: 100;
}
.mycontent-dual-menu button {
    flex: 1;
    padding: 10px 0;
    border: none;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    transition: background-color 0.2s;
}
.mycontent-dual-menu button:hover {
    background: #f5f5f5;
}
.mycontent-dual-menu .btn-view {
    border-right: 1px dashed #999;
}
.mycontent-dual-menu .btn-save {
    color: #2ea443;
    font-weight: bold;
}

/* ========================================
   공통 팝업 오버레이
   ======================================== */
.mycontent-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
}
.mycontent-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10002;
    width: 420px;
    max-height: 80vh;
    overflow-y: auto;
}
.mycontent-popup .popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #eee;
}
.mycontent-popup .popup-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0;
}
.mycontent-popup .popup-header .btn-close {
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #999;
    padding: 0;
    line-height: 1;
}
.mycontent-popup .popup-body {
    padding: 20px 24px;
}
.mycontent-popup .popup-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 18px 20px;
    border-top: 1px solid #eee;
}
.mycontent-popup .popup-notice {
    width: 100%;
    margin: 0 0 8px 0;
    padding: 0;
    font-size: 12px;
    color: #888;
    line-height: 1.5;
    letter-spacing: -0.02em;
    word-break: keep-all;
}
.mycontent-popup .move-guide-msg {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #555;
}

/* ========================================
   필수 정보 입력 팝업 (UI-02)
   ======================================== */
.mycontent-popup .form-group {
    margin-bottom: 20px;
}
.mycontent-popup .form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}
.mycontent-popup .form-group .req {
    color: #e74c3c;
    margin-left: 3px;
    font-weight: 700;
}
.mycontent-popup .form-group-row {
    display: flex;
    gap: 12px;
}
.mycontent-popup .form-group-row .form-col {
    flex: 1;
    min-width: 0;
}
.mycontent-popup .form-group-row select {
    width: 100%;
    box-sizing: border-box;
}

/* 성별 라디오 토글 */
.mycontent-popup .gender-toggle {
    display: flex;
    gap: 8px;
}
.mycontent-popup .gender-toggle input[type="radio"] {
    display: none;
}
.mycontent-popup .gender-toggle label {
    flex: 1;
    padding: 6px 0;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    transition: all 0.2s;
}
.mycontent-popup .gender-toggle input[type="radio"]:checked + label {
    background: #2ea443;
    border-color: #2ea443;
    color: #fff;
    font-weight: 600;
}

/* 생년월일 셀렉트 */
.mycontent-popup .birth-selects {
    display: flex;
    gap: 8px;
}
.mycontent-popup .birth-selects select {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background: #fff;
    appearance: auto;
}

/* 투자경험 셀렉트 */
.mycontent-popup .invest-exp-selects select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background: #fff;
    appearance: auto;
}

/* 거주지역 셀렉트 */
.mycontent-popup .region-selects {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mycontent-popup .region-selects .region-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.mycontent-popup .region-selects .city-other-input {
    flex: 1;
    min-width: 0;
}
.mycontent-popup .region-selects .region-label {
    width: 40px;
    font-size: 13px;
    color: #666;
}
.mycontent-popup .region-selects select,
.mycontent-popup .region-selects .city-other-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background: #fff;
}
.mycontent-popup .region-selects .city-other-input {
    -webkit-appearance: none;
    outline: none;
    box-sizing: border-box;
}
.mycontent-popup .region-selects .city-other-input:focus {
    border-color: #2ea443;
}

/* 개인정보 동의 체크박스 */


/* ========================================
   폴더 선택 팝업 (UI-03)
   ======================================== */
.mycontent-popup .folder-add-area {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fff;
    padding-bottom: 6px;
}
.mycontent-popup .folder-add-area input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}
.mycontent-popup .folder-add-area .btn-create-folder {
    padding: 8px 16px;
    background: #2ea443;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s;
}
.mycontent-popup .folder-add-area .btn-create-folder:hover {
    background: #1d7a32;
}

/* 폴더 목록 */
.mycontent-popup .folder-list {
    max-height: 200px;
    overflow-y: auto;
}

/* ========================================
   공통 버튼
   ======================================== */
.mycontent-popup .btn-primary {
    flex: 1;
    padding: 12px 0;
    background: #2ea443;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}
.mycontent-popup .btn-primary:hover {
    background: #1d7a32;
}
.mycontent-popup .btn-secondary {
    flex: 1;
    padding: 12px 0;
    background: #fff;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.2s;
}
.mycontent-popup .btn-secondary:hover {
    background: #f5f5f5;
}

/* ========================================
   본문 페이지 버튼 (MY콘텐츠담기 + 공유하기)
   ======================================== */
.mycontent-action-btns {
    display: inline-flex;
    gap: 6px;
    margin-left: 12px;
    vertical-align: middle;
}
.mycontent-action-btns button {
    padding: 6px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.mycontent-action-btns .btn-mycontent-save {
    border-color: #2ea443;
    color: #2ea443;
}
.mycontent-action-btns .btn-mycontent-save::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url('/assets/pc/images/common/ico_addContents.png') no-repeat center / contain;
    margin-right: 5px;
    vertical-align: middle;
}
.mycontent-action-btns .btn-mycontent-save:hover {
    background: #2ea443;
    color: #fff;
}
.mycontent-action-btns .btn-mycontent-save:hover::before {
    background-image: url('/assets/pc/images/common/ico_addContents_on.png');
}
.mycontent-action-btns .btn-share {
    border-color: #666;
    color: #666;
}
.mycontent-action-btns .btn-share::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url('/assets/pc/images/common/ico_share.png') no-repeat center / contain;
    margin-right: 5px;
    vertical-align: middle;
}
.mycontent-action-btns .btn-share:hover {
    background: #666;
    color: #fff;
}
.mycontent-action-btns .btn-share:hover::before {
    background-image: url('/assets/pc/images/common/ico_share_on.png');
}

/* ========================================
   공유하기 팝업 (UI-08)
   ======================================== */
.share-popup {
    width: 360px;
}
.share-popup .share-url-area {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}
.share-popup .share-url-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    color: #333;
    background: #f9f9f9;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.share-popup .btn-copy-url {
    padding: 10px 16px;
    border: 1px solid #2ea443;
    border-radius: 6px;
    background: #2ea443;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}
.share-popup .btn-copy-url:hover {
    background: #259a3a;
}

/* 상세페이지(viewTitleArea) 내 버튼: 제목 박스 하단(날짜 옆 우측) 고정 배치 */
.viewTitleArea .mycontent-action-btns {
    position: absolute;
    top: auto;
    bottom: 0;
    right: 0;
    margin-left: 0;
}

/* ========================================
   리스트 호버 오버레이 (PPT p7)
   ======================================== */
li[data-mc-idx] a.menu {
    position: relative;
    display: block;
}
li[data-mc-idx] a.menu .imgArea {
    position: relative;
    display: block;
}
li[data-mc-idx] .mc-hover-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 10;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
li[data-mc-idx] a.menu:hover .mc-hover-overlay {
    display: flex;
}
li[data-mc-idx] a.menu:hover::before,
#mainPage .hotContents li[data-mc-idx] a.menu:hover::before {
    display: none !important;
}
li[data-mc-idx]:hover .linksPopup,
#mainPage .hotContents li[data-mc-idx]:hover .linksPopup {
    display: none !important;
}
.mc-hover-overlay button {
    width: 130px;
    height: 34px;
    border: 1px solid #fff;
    border-radius: 3px;
    background: transparent;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s;
}
.mc-hover-overlay .btn-overlay-view {
    background: #2ea443;
    border-color: #2ea443;
}
.mc-hover-overlay .btn-overlay-view:hover {
    background: #1d7a32;
}
.mc-hover-overlay .btn-overlay-save:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 테이블 리스트 썸네일 오버레이 (greatList, moneyschoolList 등) */
.mc-thumb-wrap {
    position: relative;
    display: inline-block;
    line-height: 0;
}
.mc-thumb-wrap .mc-hover-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 10;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.mc-thumb-wrap:hover .mc-hover-overlay {
    display: flex;
}

/* 테이블 리스트 MY콘텐츠담기 버튼 (레거시) */
.mc-table-save {
    display: none;
    margin-top: 4px;
    padding: 3px 8px;
    font-size: 11px;
    color: #fff;
    background: #2ea443;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}
tr[data-mc-idx]:hover .mc-table-save {
    display: inline-block;
}
.mc-table-save:hover {
    background: #1d7a32;
}

/* ========================================
   MY 콘텐츠 저장소 페이지 기본 레이아웃 (Phase 4에서 확장)
   ======================================== */

/* 헤드 배너 (다른 페이지와 동일 패턴) */
#mycontentPage .headBanner {background-image: url("../images/common/head_banner_mycontents.jpg"); height: 266px;}

.mycontent-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 0;
}

/* 안내 배너 (모바일 스타일 통일) */
.mycontent-banner {
    margin-bottom: 24px;
}
.mycontent-banner-guide {
    background: linear-gradient(135deg, #f0faf2 0%, #f8f9fa 100%);
    border-radius: 10px;
    padding: 16px 24px;
    border-left: 3px solid #2ea443;
    font-size: 15px;
    line-height: 1.8;
    color: #555;
}
.mycontent-banner-guide ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.mycontent-banner-guide li:not(.caution) {
    display: flex;
    align-items: baseline;
    gap: 0;
}
.mycontent-banner-guide li:not(.caution)::before {
    display: none;
}
.mycontent-banner-guide .mc-label {
    flex-shrink: 0;
    width: 5.5em;
}
.mycontent-banner-guide .mc-text {
    flex: 1;
}
.mycontent-banner-guide li.caution {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    color: #c0392b;
    font-size: 15px;
    margin-top: 8px;
    margin-left: -4px;
    background: #fff5f5;
    padding: 6px 4px;
    border-radius: 4px;
    line-height: 1.6;
}
.mycontent-banner-guide li.caution::before {
    display: none;
}
.mycontent-banner-guide li.caution .mc-label {
    width: 5.5em;
}
.mycontent-banner-guide li.caution .mc-text {
    display: block;
    width: 100%;
    font-size: 13px;
    letter-spacing: -0.2px;
    line-height: 1.7;
}
.mycontent-banner-guide li.caution .mc-label strong {
    color: #c0392b;
    letter-spacing: 0.25em;
}
.mycontent-banner-guide strong {
    color: #2ea443;
    font-weight: 700;
}
.mycontent-banner-guide .mc-label strong {
    color: #2ea443;
    font-weight: 700;
    white-space: nowrap;
}

/* 폴더 탭 */
.mycontent-folder-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 24px;
    flex-wrap: nowrap;
    width: 100%;
}
.mycontent-folder-tabs .tab {
    flex: 1 1 0;
    min-width: 0;
    padding: 10px 8px;
    border: 1px solid #e0e0e0;
    border-bottom: none;
    background: #f5f5f5;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    margin-bottom: -2px;
    transition: all 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: 6px 6px 0 0;
    text-align: center;
}
.mycontent-folder-tabs .tab + .tab {
    margin-left: -1px;
}
.mycontent-folder-tabs .tab:hover {
    background: #eee;
    color: #333;
}
.mycontent-folder-tabs .tab.active {
    background: #fff;
    color: #2ea443;
    border-color: #2ea443;
    border-bottom: 2px solid #fff;
    font-weight: 600;
    position: relative;
    z-index: 1;
}
.mycontent-folder-tabs .tab-add {
    flex: 0 0 auto;
    min-width: auto;
    padding: 10px 16px;
    color: #999;
    font-size: 14px;
    background: transparent;
    border: 1px dashed #ccc;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    margin-bottom: -2px;
}
.mycontent-folder-tabs .tab-add:hover {
    color: #2ea443;
    border-color: #2ea443;
}
.mycontent-folder-tabs .tab-input {
    flex-shrink: 0;
    display: flex;
    gap: 4px;
    align-items: center;
    margin-bottom: -2px;
}
.mycontent-folder-tabs .tab-input input {
    width: 120px;
    padding: 6px 10px;
    border: 1px solid #2ea443;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    outline: none;
}
.mycontent-folder-tabs .tab-input input:focus {
    box-shadow: 0 0 0 2px rgba(46, 164, 67, 0.15);
}
.mycontent-folder-tabs .tab-input button {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: opacity 0.15s;
}
.mycontent-folder-tabs .tab-input button:hover {
    opacity: 0.85;
}
.mycontent-folder-tabs .tab-input .btn-tab-ok {
    background: #2ea443;
    color: #fff;
}
.mycontent-folder-tabs .tab-input .btn-tab-cancel {
    background: #f0f0f0;
    color: #666;
}

/* 콘텐츠 그리드 */
.mycontent-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.mycontent-grid .content-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s;
}
.mycontent-grid .content-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.mycontent-grid .content-card .thumb {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}
.mycontent-grid .content-card .info {
    padding: 12px;
}
.mycontent-grid .content-card .title {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ========================================
   편집 버튼 영역 (폴더 편집 + 콘텐츠 편집)
   ======================================== */
.mycontent-edit-btns {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 16px;
}
.mycontent-edit-btns .btn-manual {
    padding-left: 30px;
    background: #e8f4fc url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%231e88c4" viewBox="0 0 24 24"><path d="M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/></svg>') no-repeat 9px center;
    background-size: 15px 15px;
    border-color: #5eadd8;
    color: #1e88c4;
}
.mycontent-edit-btns .btn-manual:hover {
    background-color: #d0e8f7;
    border-color: #1e88c4;
    color: #1e88c4;
}
.mycontent-edit-btns button {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
}
.mycontent-edit-btns button:hover {
    border-color: #2ea443;
    color: #2ea443;
}
.mycontent-edit-btns button.active {
    background: #2ea443;
    border-color: #2ea443;
    color: #fff;
}
.mycontent-edit-btns button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ========================================
   폴더 관리 패널 (폴더 편집 모드)
   ======================================== */
.mycontent-folder-panel {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}
.mycontent-folder-panel .folder-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.mycontent-folder-panel .folder-panel-header h4 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0;
}
.mycontent-folder-panel .folder-panel-header .btn-panel-close {
    padding: 6px 14px;
    border: 1px solid #2ea443;
    border-radius: 4px;
    background: #fff;
    color: #2ea443;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}
.mycontent-folder-panel .folder-panel-header .btn-panel-close:hover {
    background: #2ea443;
    color: #fff;
}
.mycontent-folder-panel .folder-panel-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}
.mycontent-folder-panel .folder-panel-item:last-child {
    border-bottom: none;
}
.mycontent-folder-panel .folder-name-input {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
}
.mycontent-folder-panel .btn-folder-rename,
.mycontent-folder-panel .btn-folder-delete {
    padding: 6px 12px;
    border-radius: 4px;
    background: #fff;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
}
.mycontent-folder-panel .btn-folder-rename {
    border: 1px solid #2ea443;
    color: #2ea443;
}
.mycontent-folder-panel .btn-folder-rename:hover {
    background: #2ea443;
    color: #fff;
}
.mycontent-folder-panel .btn-folder-delete {
    border: 1px solid #e74c3c;
    color: #e74c3c;
}
.mycontent-folder-panel .btn-folder-delete:hover {
    background: #e74c3c;
    color: #fff;
}

/* ========================================
   콘텐츠 편집 모드 (체크박스 + 선택 상태)
   ======================================== */
.mycontent-grid .content-card .edit-checkbox {
    display: none;
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10;
    width: 18px;
    height: 18px;
    cursor: pointer;
}
.mycontent-grid.edit-mode .content-card .edit-checkbox {
    display: block;
}
.mycontent-grid.edit-mode .content-card {
    cursor: default;
}
.mycontent-grid.edit-mode .content-card:active {
    transform: none;
}
.mycontent-grid.edit-mode .content-card .edit-checkbox:checked ~ .thumb {
    opacity: 0.6;
}
.mycontent-grid.edit-mode .content-card:has(.edit-checkbox:checked) {
    outline: 2px solid #2ea443;
}

/* 편집 툴바 */
.mycontent-edit-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    margin-bottom: 16px;
    border-bottom: 1px solid #eee;
    visibility: hidden;
    height: 0;
    padding: 0;
    margin: 0;
    border: none;
    overflow: hidden;
}
.mycontent-edit-toolbar.show {
    visibility: visible;
    height: auto;
    padding: 12px 0;
    margin-bottom: 16px;
    border-bottom: 1px solid #eee;
}
.mycontent-edit-toolbar .select-all {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}
.mycontent-edit-toolbar .select-all input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}
.mycontent-edit-toolbar .edit-actions {
    display: flex;
    gap: 8px;
}
.mycontent-edit-toolbar button {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
}
.mycontent-edit-toolbar button:hover {
    border-color: #333;
}
.mycontent-edit-toolbar .btn-move {
    color: #2ea443;
    border-color: #2ea443;
}
.mycontent-edit-toolbar .btn-move:hover {
    background: #2ea443;
    color: #fff;
}
.mycontent-edit-toolbar .btn-delete {
    color: #e74c3c;
    border-color: #e74c3c;
}
.mycontent-edit-toolbar .btn-delete:hover {
    background: #e74c3c;
    color: #fff;
}

/* 빈 상태 */
.mycontent-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}
.mycontent-empty p {
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* 삭제 확인 다이얼로그 (UI-06) */
.mycontent-popup.confirm-dialog {
    width: 360px;
}
.mycontent-popup.confirm-dialog .popup-body {
    text-align: center;
    padding: 24px;
}
.mycontent-popup.confirm-dialog .popup-body p {
    font-size: 17px;
    color: #333;
    margin: 0 0 8px;
}
.mycontent-popup.confirm-dialog .popup-body .sub-msg {
    font-size: 15px;
    color: #999;
}
.mycontent-popup .btn-danger {
    flex: 1;
    padding: 12px 0;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}
.mycontent-popup .btn-danger:hover {
    background: #c0392b;
}

/* 공유 팝업 리스트 아이템 (UI-03 폴더 선택, UI-07 이동 폴더) */
.mycontent-popup .popup-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: background-color 0.2s;
}
.mycontent-popup .popup-list-item:hover {
    background: #f8f8f8;
}
.mycontent-popup .popup-list-item:last-child {
    border-bottom: none;
}
.mycontent-popup .popup-list-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.mycontent-popup .popup-list-item em {
    font-size: 12px;
    color: #999;
    font-style: normal;
}

/* 이동 폴더 선택 팝업 (UI-07) */
.mycontent-popup .move-folder-list {
    max-height: 240px;
    overflow-y: auto;
}

/* ========================================
   헤더 MY 콘텐츠 링크
   ======================================== */
.mycontent-header-link {
    display: inline-block;
    vertical-align: middle;
    margin-right: 12px;
}
.mycontent-header-link a {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid #2ea443;
    border-radius: 4px;
    color: #2ea443;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}
.mycontent-header-link a:hover {
    background: #2ea443;
    color: #fff;
}

/* ========================================
   저장소 페이지: 폴더 탭 인라인 편집
   ======================================== */
.mycontent-folder-tabs .tab-add-input {
    padding: 8px 12px;
    border: 1px solid #2ea443;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    font-size: 14px;
    color: #333;
    outline: none;
    width: 120px;
    margin-bottom: -2px;
}

/* 저장소 페이지: 콘텐츠 카드 클릭 커서 */
.mycontent-grid .content-card {
    cursor: pointer;
}
.mycontent-grid .content-card:active {
    transform: scale(0.98);
}

/* 저장소 페이지: 폴더 없음 안내 */
.mycontent-no-folders {
    text-align: center;
    padding: 80px 20px;
    color: #999;
}
.mycontent-no-folders p {
    font-size: 15px;
    line-height: 1.8;
    margin: 0 0 20px;
}
.mycontent-no-folders .btn-create-first {
    display: inline-block;
    padding: 12px 28px;
    background: #2ea443;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}
.mycontent-no-folders .btn-create-first:hover {
    background: #1d7a32;
}
