/* 내 플레이스 관리 페이지 스타일 */

/* 전체 바디와 html width 제한 */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* 모든 요소에 기본 box-sizing 적용 */
*, *::before, *::after {
    box-sizing: border-box;
    max-width: 100%;
}

/* 컨테이너 */
.myplace-container {
    padding: 5px;
    max-width: 1800px;
    margin: 0 auto;
    animation: fadeIn 0.6s ease;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

/* 상단 컨트롤 영역 */
.myplace-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 25px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #ffffff 100%);
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 
        0 10px 25px -5px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.myplace-controls::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(59, 130, 246, 0.3) 50%, transparent 100%);
}

.myplace-controls::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.03) 0%, transparent 70%);
    pointer-events: none;
    animation: subtle-pulse 4s ease-in-out infinite;
}

@keyframes subtle-pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); }
}

.controls-left {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 1;
    max-width: 100%;
    box-sizing: border-box;
}

.controls-right {
    flex: 1;
    max-width: 400px;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

/* 그라데이션 버튼 개선 */
.btn-gradient {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-gradient::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    border-radius: 50%;
}

.btn-gradient:hover::before {
    left: 100%;
}

.btn-gradient:hover::after {
    width: 120%;
    height: 120%;
}

.btn-add-place {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 50%, var(--primary-blue) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.btn-delete {
    background: linear-gradient(135deg, #e74c3c 0%, #ec7063 50%, #e74c3c 100%);
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.btn-gradient i {
    font-size: 16px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* 플레이스 카운트 개선 */
.place-count {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--blue-50) 0%, rgba(239, 246, 255, 0.8) 50%, var(--blue-100) 100%);
    border-radius: 12px;
    border: 1px solid var(--blue-200);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        inset 0 -1px 0 rgba(59, 130, 246, 0.1);
    position: relative;
    overflow: hidden;
}

.place-count::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(59, 130, 246, 0.05) 50%, transparent 70%);
    pointer-events: none;
}

.place-count i {
    color: var(--primary-blue);
    font-size: 18px;
    filter: drop-shadow(0 1px 2px rgba(59, 130, 246, 0.2));
    position: relative;
    z-index: 1;
}

.place-count .count-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-700);
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* 검색 박스 개선 */
.search-box {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    box-sizing: border-box;
}

.search-box::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(147, 197, 253, 0.1) 50%, rgba(59, 130, 246, 0.2) 100%);
    border-radius: 13px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.search-box:hover::before,
.search-box:focus-within::before {
    opacity: 1;
}

.search-box i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 16px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
    z-index: 2;
}

.search-box input {
    width: 100%;
    padding: 12px 20px 12px 50px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 15px;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(0, 0, 0, 0.02);
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    max-width: 100%;
}

.search-box input::placeholder {
    background: linear-gradient(135deg, var(--gray-400) 0%, var(--gray-500) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
    box-shadow: 
        0 4px 16px rgba(29, 78, 216, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(59, 130, 246, 0.1);
}

.search-box input:focus + i,
.search-box:hover i {
    color: var(--primary-blue);
    transform: translateY(-50%) scale(1.1);
}

/* 섹션 스타일 */
.folder-section,
.place-tabs-section,
.place-detail-section {
    background: white;
    border-radius: 16px;
    padding: 0; /* place-detail-section의 padding을 0으로 변경 */
    margin-bottom: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-100);
    animation: slideUp 0.5s ease;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* place-detail-section에 아주 작은 padding 추가 */
.place-detail-section {
    padding: 8px;
}

/* folder-section과 place-tabs-section은 기존 padding 유지 */
.folder-section,
.place-tabs-section {
    padding: 20px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--blue-100);
}

.section-title i {
    color: var(--primary-blue);
    font-size: 22px;
}

/* 폴더 리스트 - 가로 스크롤로 변경 */
.folder-list {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(59, 130, 246, 0.3) transparent;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.folder-list::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

.folder-list::-webkit-scrollbar-track {
    background: rgba(243, 244, 246, 0.8);
    border-radius: 4px;
}

.folder-list::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.3);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.folder-list::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.5);
}

.folder-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 18px;
    background: linear-gradient(135deg, 
        rgba(239, 246, 255, 0.9) 0%, 
        rgba(248, 250, 252, 0.95) 30%, 
        rgba(255, 255, 255, 1) 70%, 
        rgba(239, 246, 255, 0.9) 100%);
    border: 1px solid rgba(219, 234, 254, 0.8);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 70px;
    box-shadow: 
        0 2px 8px rgba(59, 130, 246, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    flex-shrink: 0;
    min-width: 200px;
    max-width: 250px;
    box-sizing: border-box;
}

.folder-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.03) 0%, 
        rgba(29, 78, 216, 0.02) 30%, 
        rgba(59, 130, 246, 0.03) 70%, 
        rgba(29, 78, 216, 0.02) 100%);
    z-index: 0;
}

.folder-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(59, 130, 246, 0.2) 30%, 
        rgba(59, 130, 246, 0.3) 50%, 
        rgba(59, 130, 246, 0.2) 70%, 
        transparent 100%);
    z-index: 1;
}

.folder-item:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 
        0 4px 16px rgba(59, 130, 246, 0.15),
        0 2px 6px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    background: linear-gradient(135deg, 
        rgba(239, 246, 255, 1) 0%, 
        rgba(248, 250, 252, 1) 30%, 
        rgba(255, 255, 255, 1) 70%, 
        rgba(239, 246, 255, 1) 100%);
}

.folder-item.active {
    background: linear-gradient(135deg, 
        rgba(29, 78, 216, 0.95) 0%, 
        rgba(59, 130, 246, 0.98) 30%, 
        rgba(37, 99, 235, 1) 70%, 
        rgba(29, 78, 216, 0.95) 100%);
    border-color: rgba(29, 78, 216, 0.8);
    color: white;
    box-shadow: 
        0 6px 20px rgba(29, 78, 216, 0.25),
        0 3px 10px rgba(59, 130, 246, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.folder-item.active::before {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.08) 0%, 
        rgba(255, 255, 255, 0.05) 30%, 
        rgba(255, 255, 255, 0.08) 70%, 
        rgba(255, 255, 255, 0.05) 100%);
}

.folder-item.active::after {
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 30%, 
        rgba(255, 255, 255, 0.4) 50%, 
        rgba(255, 255, 255, 0.3) 70%, 
        transparent 100%);
}

.folder-icon {
    position: relative;
    z-index: 2;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.1) 0%, 
        rgba(37, 99, 235, 0.08) 100%);
    box-shadow: 
        0 2px 4px rgba(59, 130, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.folder-icon i {
    font-size: 18px;
    color: var(--primary-blue);
    transition: all 0.3s ease;
    filter: drop-shadow(0 1px 2px rgba(59, 130, 246, 0.2));
}

.folder-item:hover .folder-icon {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.15) 0%, 
        rgba(37, 99, 235, 0.12) 100%);
    box-shadow: 
        0 3px 6px rgba(59, 130, 246, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.folder-item:hover .folder-icon i {
    color: var(--primary-blue-dark);
    filter: drop-shadow(0 1px 3px rgba(59, 130, 246, 0.3));
}

.folder-item.active .folder-icon {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2) 0%, 
        rgba(255, 255, 255, 0.15) 100%);
    box-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.folder-item.active .folder-icon i {
    color: white;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.folder-info {
    flex: 1;
    position: relative;
    z-index: 2;
}

.folder-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 3px;
    transition: color 0.3s ease;
    line-height: 1.2;
    text-shadow: 0 0.5px 1px rgba(255, 255, 255, 0.8);
}

.folder-count {
    font-size: 12px;
    color: var(--gray-500);
    transition: color 0.3s ease;
    line-height: 1.2;
    position: relative;
    padding: 2px 8px;
    border-radius: 6px;
    background: linear-gradient(135deg, 
        rgba(100, 116, 139, 0.1) 0%, 
        rgba(148, 163, 184, 0.08) 100%);
    border: 1px solid rgba(148, 163, 184, 0.15);
    display: inline-block;
    font-weight: 500;
    text-shadow: 0 0.5px 1px rgba(255, 255, 255, 0.6);
}

.folder-item.active .folder-name {
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.folder-item.active .folder-count {
    color: rgba(255, 255, 255, 0.9);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0.1) 100%);
    border-color: rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 플레이스 탭 */
.place-tabs {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(59, 130, 246, 0.3) transparent;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.place-tabs::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

.place-tabs::-webkit-scrollbar-track {
    background: rgba(243, 244, 246, 0.8);
    border-radius: 4px;
}

.place-tabs::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.3);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.place-tabs::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.5);
}

.place-tab {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 18px;
    background: linear-gradient(135deg, 
        rgba(239, 246, 255, 0.9) 0%, 
        rgba(248, 250, 252, 0.95) 30%, 
        rgba(255, 255, 255, 1) 70%, 
        rgba(239, 246, 255, 0.9) 100%);
    border: 1px solid rgba(219, 234, 254, 0.8);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 50px;
    box-shadow: 
        0 2px 8px rgba(59, 130, 246, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-700);
    flex-shrink: 0;
    min-width: 150px;
    max-width: 200px;
    box-sizing: border-box;
}

.place-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.03) 0%, 
        rgba(29, 78, 216, 0.02) 30%, 
        rgba(59, 130, 246, 0.03) 70%, 
        rgba(29, 78, 216, 0.02) 100%);
    z-index: 0;
}

.place-tab::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(59, 130, 246, 0.2) 30%, 
        rgba(59, 130, 246, 0.3) 50%, 
        rgba(59, 130, 246, 0.2) 70%, 
        transparent 100%);
    z-index: 1;
}

.place-tab:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 
        0 4px 16px rgba(59, 130, 246, 0.15),
        0 2px 6px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    background: linear-gradient(135deg, 
        rgba(239, 246, 255, 1) 0%, 
        rgba(248, 250, 252, 1) 30%, 
        rgba(255, 255, 255, 1) 70%, 
        rgba(239, 246, 255, 1) 100%);
}

.place-tab.active {
    background: linear-gradient(135deg, 
        rgba(29, 78, 216, 0.95) 0%, 
        rgba(59, 130, 246, 0.98) 30%, 
        rgba(37, 99, 235, 1) 70%, 
        rgba(29, 78, 216, 0.95) 100%);
    border-color: rgba(29, 78, 216, 0.8);
    color: white;
    box-shadow: 
        0 6px 20px rgba(29, 78, 216, 0.25),
        0 3px 10px rgba(59, 130, 246, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.place-tab.active::before {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.08) 0%, 
        rgba(255, 255, 255, 0.05) 30%, 
        rgba(255, 255, 255, 0.08) 70%, 
        rgba(255, 255, 255, 0.05) 100%);
}

.place-tab.active::after {
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 30%, 
        rgba(255, 255, 255, 0.4) 50%, 
        rgba(255, 255, 255, 0.3) 70%, 
        transparent 100%);
}

.place-tab i {
    font-size: 16px;
    color: var(--primary-blue);
    filter: drop-shadow(0 1px 2px rgba(59, 130, 246, 0.2));
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.place-tab:hover i {
    color: var(--primary-blue-dark);
    filter: drop-shadow(0 1px 3px rgba(59, 130, 246, 0.3));
}

.place-tab span {
    position: relative;
    z-index: 2;
    text-shadow: 0 0.5px 1px rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.place-tab.active i {
    color: white;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.place-tab.active span {
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* 플레이스 정보 헤더 */
.place-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    margin-top: 5px; /* 상단 여백을 5px로 조정 */
    margin-left: 4px; /* 좌측 여백 다른 섹션들과 동일하게 추가 */
    margin-right: 4px; /* 우측 여백 다른 섹션들과 동일하게 추가 */
    padding: 20px 25px 15px;
    background: linear-gradient(135deg, var(--blue-50) 0%, var(--white) 50%, var(--blue-50) 100%);
    border-radius: 16px 16px 0 0;
    border: 1px solid var(--blue-200);
    border-bottom: 2px solid var(--primary-blue);
    box-shadow: 
        0 4px 12px rgba(29, 78, 216, 0.08),
        0 2px 4px rgba(0, 0, 0, 0.05);
}

.place-name {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 50%, var(--primary-blue-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    font-family: 'Inter', sans-serif;
}

.place-name::before {
    content: '\f3c5';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 24px;
    color: var(--primary-blue);
}

.place-actions {
    display: flex;
    gap: 12px;
    position: relative;
    z-index: 1;
}

/* 그래프 버튼과 엑셀 버튼을 그라데이션 스타일로 업그레이드 */
.btn-icon {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.btn-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    border-radius: 50%;
}

.btn-icon:hover::before {
    left: 100%;
}

.btn-icon:hover::after {
    width: 120%;
    height: 120%;
}

.btn-graph {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 50%, var(--primary-blue) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 
        0 4px 15px rgba(59, 130, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.btn-graph:hover {
    background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue) 50%, var(--primary-blue-dark) 100%);
    box-shadow: 
        0 6px 20px rgba(59, 130, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

.btn-excel {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 50%, #27ae60 100%);
    border: 1px solid rgba(39, 174, 96, 0.3);
    box-shadow: 
        0 4px 15px rgba(39, 174, 96, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.btn-excel:hover {
    background: linear-gradient(135deg, #1e7e34 0%, #27ae60 50%, #1e7e34 100%);
    box-shadow: 
        0 6px 20px rgba(39, 174, 96, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

.btn-icon i {
    font-size: 16px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
    position: relative;
    z-index: 1;
    transition: filter 0.15s ease;
}

.btn-icon:hover i {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

/* 서브섹션 타이틀 */
.subsection-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 16px;
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--blue-50) 0%, var(--white) 100%);
    border-radius: 16px;
    border: 1px solid var(--blue-200);
    box-shadow: 
        0 2px 6px rgba(59, 130, 246, 0.08),
        0 1px 2px rgba(0, 0, 0, 0.05);
}

.subsection-title i {
    color: var(--primary-blue);
    font-size: 18px;
    padding: 8px;
    background: linear-gradient(135deg, var(--blue-100) 0%, var(--blue-200) 100%);
    border-radius: 12px;
    box-shadow: 
        0 2px 4px rgba(59, 130, 246, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* 키워드 섹션 */
.keyword-section {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 30%, var(--blue-50) 100%);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 15px;
    margin-left: 4px; /* 좌측 여백 아주 조금 추가 */
    margin-right: 4px; /* 우측 여백 아주 조금 추가 */
    box-shadow: 
        0 4px 12px rgba(59, 130, 246, 0.08),
        0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--blue-200);
    animation: slideUp 0.5s ease;
}

.keyword-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(59, 130, 246, 0.3) transparent;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.keyword-list::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

.keyword-list::-webkit-scrollbar-track {
    background: rgba(243, 244, 246, 0.8);
    border-radius: 4px;
}

.keyword-list::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.3);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.keyword-list::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.5);
}

.keyword-item {
    padding: 12px 18px 12px 40px;
    background: linear-gradient(135deg, 
        rgba(239, 246, 255, 0.9) 0%, 
        rgba(248, 250, 252, 0.95) 30%, 
        rgba(255, 255, 255, 1) 70%, 
        rgba(239, 246, 255, 0.9) 100%);
    border: 1px solid rgba(219, 234, 254, 0.8);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    position: relative;
    overflow: hidden;
    min-height: 40px;
    display: flex;
    align-items: center;
    box-shadow: 
        0 2px 8px rgba(59, 130, 246, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    flex-shrink: 0;
    min-width: 120px;
    max-width: 180px;
    box-sizing: border-box;
    white-space: nowrap;
}

.keyword-item::before {
    content: '\f002';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--primary-blue);
    filter: drop-shadow(0 1px 2px rgba(59, 130, 246, 0.2));
    transition: all 0.3s ease;
    z-index: 2;
}

.keyword-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(59, 130, 246, 0.2) 30%, 
        rgba(59, 130, 246, 0.3) 50%, 
        rgba(59, 130, 246, 0.2) 70%, 
        transparent 100%);
    z-index: 1;
}

.keyword-item:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 
        0 4px 16px rgba(59, 130, 246, 0.15),
        0 2px 6px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    background: linear-gradient(135deg, 
        rgba(239, 246, 255, 1) 0%, 
        rgba(248, 250, 252, 1) 30%, 
        rgba(255, 255, 255, 1) 70%, 
        rgba(239, 246, 255, 1) 100%);
}

.keyword-item:hover::before {
    color: var(--primary-blue-dark);
    filter: drop-shadow(0 1px 3px rgba(59, 130, 246, 0.3));
    transform: translateY(-50%) scale(1.1);
}

.keyword-item.active {
    background: linear-gradient(135deg, 
        rgba(29, 78, 216, 0.95) 0%, 
        rgba(59, 130, 246, 0.98) 30%, 
        rgba(37, 99, 235, 1) 70%, 
        rgba(29, 78, 216, 0.95) 100%);
    border-color: rgba(29, 78, 216, 0.8);
    color: white;
    box-shadow: 
        0 6px 20px rgba(29, 78, 216, 0.25),
        0 3px 10px rgba(59, 130, 246, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.keyword-item.active::before {
    color: white;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
    transform: translateY(-50%) scale(1.05);
}

.keyword-item.active::after {
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 30%, 
        rgba(255, 255, 255, 0.4) 50%, 
        rgba(255, 255, 255, 0.3) 70%, 
        transparent 100%);
}

/* 키워드 정보 그리드 */
.keyword-info-section {
    background: linear-gradient(135deg, var(--white) 0%, var(--blue-50) 50%, var(--white) 100%);
    border: 1px solid var(--blue-200);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 15px;
    margin-left: 4px; /* 좌측 여백 아주 조금 추가 */
    margin-right: 4px; /* 우측 여백 아주 조금 추가 */
    box-shadow: 
        0 4px 12px rgba(59, 130, 246, 0.08),
        0 2px 4px rgba(0, 0, 0, 0.05);
}

.keyword-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
}

.keyword-info-item {
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-50) 100%);
    border-radius: 10px;
    border: 1px solid var(--blue-200);
    transition: all 0.3s ease;
    box-shadow: 
        0 2px 4px rgba(59, 130, 246, 0.08),
        0 1px 2px rgba(0, 0, 0, 0.05);
}

.keyword-info-item:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 4px 12px rgba(59, 130, 246, 0.12),
        0 2px 4px rgba(0, 0, 0, 0.08);
    background: linear-gradient(135deg, var(--white) 0%, var(--blue-50) 100%);
    border-color: var(--primary-blue);
}

.info-label {
    font-size: 13px;
    color: var(--gray-600);
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-blue-dark);
    text-shadow: 0 1px 2px rgba(29, 78, 216, 0.1);
}

/* 순위 테이블 */
.rank-table-section {
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-50) 100%);
    border-radius: 16px;
    padding: 16px;
    margin-left: 4px; /* 좌측 여백 아주 조금 추가 */
    margin-right: 4px; /* 우측 여백 아주 조금 추가 */
    margin-bottom: 5px; /* 하단 여백을 5px로 조정 */
    border: 1px solid var(--blue-200);
    box-shadow: 
        0 4px 12px rgba(59, 130, 246, 0.08),
        0 2px 4px rgba(0, 0, 0, 0.05);
}

.table-wrapper {
    background: var(--white);
    border-radius: 12px;
    overflow-x: auto; /* 가로 스크롤 활성화 */
    overflow-y: hidden;
    box-shadow: 
        0 2px 8px rgba(59, 130, 246, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--blue-200);
    /* 스크롤바 스타일링 */
    scrollbar-width: thin;
    scrollbar-color: rgba(59, 130, 246, 0.3) transparent;
}

.table-wrapper::-webkit-scrollbar {
    height: 8px;
}

.table-wrapper::-webkit-scrollbar-track {
    background: rgba(241, 245, 249, 0.5);
    border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.3);
    border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.5);
}

.rank-table {
    width: 100%;
    min-width: 600px; /* 최소 너비 설정으로 가로 스크롤 유발 */
    border-collapse: collapse;
    background: var(--white);
}

.rank-table thead {
    background: linear-gradient(135deg, 
        #1e40af 0%, 
        #2563eb 25%, 
        #3b82f6 50%, 
        #2563eb 75%, 
        #1e40af 100%);
    position: relative;
    box-shadow: 0 2px 4px rgba(30, 64, 175, 0.2);
}

.rank-table thead::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(59, 130, 246, 0.8) 0%, 
        rgba(147, 197, 253, 0.9) 50%, 
        rgba(59, 130, 246, 0.8) 100%);
}

.rank-table th {
    padding: 14px 16px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        transparent 50%, 
        rgba(0, 0, 0, 0.05) 100%);
    white-space: nowrap; /* 텍스트 줄바꿈 방지 */
}

.rank-table th:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.rank-table th::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%);
}

.rank-table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--gray-200);
    background: var(--white);
}

.rank-table tbody tr:nth-child(even) {
    background: var(--white);
}

.rank-table tbody tr:hover {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.08) 0%, 
        rgba(147, 197, 253, 0.12) 50%, 
        rgba(59, 130, 246, 0.08) 100%);
    box-shadow: 
        0 2px 8px rgba(59, 130, 246, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.rank-table td {
    padding: 6px 16px;
    font-size: 14px;
    color: var(--gray-700);
    font-weight: 500;
    vertical-align: middle;
    position: relative;
    text-align: center;
    border-right: 1px solid rgba(226, 232, 240, 0.5);
    white-space: nowrap; /* 텍스트 줄바꿈 방지 */
}

.rank-table td:last-child {
    border-right: none;
}

.rank-table td:first-child {
    font-weight: 600;
    color: var(--gray-800);
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.03) 0%, 
        rgba(147, 197, 253, 0.05) 100%);
}

/* 순위 셀 특별 스타일링 */
.rank-table td:nth-child(2) {
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-800);
}

/* 점수 관련 셀 스타일링 */
.rank-table td:nth-child(3),
.rank-table td:nth-child(4),
.rank-table td:nth-child(5) {
    font-weight: 600;
}

/* 값과 변화 표시를 위한 컨테이너 */
.value-with-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: nowrap; /* wrap에서 nowrap으로 변경 */
}

/* 변화 표시 개선 */
.change-indicator {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    min-width: fit-content;
}

.change-indicator.up {
    color: #dc2626;
}

.change-indicator.down {
    color: #2563eb;
}

.change-indicator.neutral {
    color: var(--gray-500);
}

.change-indicator i {
    font-size: 10px;
}

/* 그래프 섹션 */
.rank-chart-section {
    margin-top: 20px;
    margin-left: 4px; /* 좌측 여백 아주 조금 추가 */
    margin-right: 4px; /* 우측 여백 아주 조금 추가 */
    margin-bottom: 0; /* 하단 여백 제거 (마지막 섹션이므로) */
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-50) 100%);
    border-radius: 16px;
    padding: 18px;
    border: 1px solid var(--blue-200);
    box-shadow: 
        0 4px 12px rgba(59, 130, 246, 0.08),
        0 2px 4px rgba(0, 0, 0, 0.05);
}

.chart-container {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 
        0 2px 8px rgba(59, 130, 246, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--blue-200);
}

.chart-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.chart-item {
    padding: 18px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(248, 250, 252, 0.8) 100%);
    position: relative;
}

.chart-item:first-child {
    border-right: 1px solid var(--blue-200);
}

.chart-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--primary-blue) 0%, 
        var(--primary-blue-light) 50%, 
        var(--primary-blue) 100%);
}

.chart-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--blue-100);
}

.chart-title i {
    color: var(--primary-blue);
    font-size: 16px;
    padding: 6px;
    background: linear-gradient(135deg, var(--blue-100) 0%, var(--blue-200) 100%);
    border-radius: 8px;
    box-shadow: 
        0 2px 4px rgba(59, 130, 246, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.chart-item canvas {
    max-height: 300px;
    width: 100% !important;
    height: 300px !important;
}

/* 그래프/테이블 버튼 상태 관리 */
.btn-graph.active {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 50%, var(--primary-blue) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 
        0 4px 15px rgba(59, 130, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.btn-graph.active:hover {
    background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue) 50%, var(--primary-blue-dark) 100%);
    box-shadow: 
        0 6px 20px rgba(59, 130, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

.btn-graph.active i {
    color: white;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.btn-graph.active span {
    color: white;
}

/* 애니메이션 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 반응형 */
@media (max-width: 768px) {
    html, body {
        max-width: 100vw;
        overflow-x: hidden;
        margin: 0;
        padding: 0;
    }
    
    .myplace-container {
        padding: 3px;
        max-width: 100vw;
        width: 100%;
        box-sizing: border-box;
    }
    
    .myplace-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 12px; /* 15px에서 12px로 줄임 */
        padding: 12px; /* 15px에서 12px로 줄임 */
        margin-bottom: 12px; /* 15px에서 12px로 줄임 */
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .controls-left {
        width: 100%;
        justify-content: space-between;
        max-width: 100%;
        box-sizing: border-box;
        flex-direction: row; /* 모바일에서 가로 배치 */
        align-items: center;
        gap: 8px; /* 10px에서 8px로 줄임 */
    }
    
    /* 모바일에서 버튼들을 작게 만들어 공간 확보 */
    .controls-left .btn-gradient {
        padding: 8px 14px; /* 10px 16px에서 8px 14px로 줄임 */
        font-size: 13px; /* 14px에서 13px로 줄임 */
        flex-shrink: 0;
        min-width: fit-content;
    }
    
    /* 플레이스 개수를 오른쪽으로 밀어서 배치 */
    .place-count {
        margin-left: auto;
        padding: 8px 14px; /* 10px 16px에서 8px 14px로 줄임 */
        gap: 6px; /* 8px에서 6px로 줄임 */
        flex-shrink: 0;
        min-width: fit-content;
    }
    
    .place-count .count-text {
        font-size: 13px; /* 14px에서 13px로 줄임 */
    }
    
    .place-count i {
        font-size: 15px; /* 16px에서 15px로 줄임 */
    }
    
    .controls-right {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    .search-box {
        max-width: 100%;
        width: 100%;
        margin-left: 0;
        box-sizing: border-box;
    }
    
    .search-box input {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        font-size: 13px; /* 14px에서 13px로 줄임 */
        padding: 8px 12px 8px 35px; /* 10px 15px 10px 40px에서 줄임 */
    }
    
    .folder-section {
        max-width: 100%;
        overflow: hidden;
        box-sizing: border-box;
        padding: 12px; /* 15px에서 12px로 줄임 */
        width: 100%;
    }
    
    .folder-list {
        max-width: 100%;
        box-sizing: border-box;
        width: 100%;
        gap: 10px; /* 기본 15px에서 10px로 줄임 */
        /* 모바일에서 스크롤바 숨기기 */
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }
    
    .folder-list::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    .place-tabs {
        gap: 10px; /* 기본 15px에서 10px로 줄임 */
        /* 모바일에서 스크롤바 숨기기 */
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }
    
    .place-tabs::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    .keyword-list {
        gap: 8px; /* 기본 10px에서 8px로 줄임 */
        /* 모바일에서 스크롤바 숨기기 */
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }
    
    .keyword-list::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    .folder-item {
        min-width: 140px; /* 160px에서 140px로 줄임 */
        max-width: 160px; /* 180px에서 160px로 줄임 */
        flex-shrink: 0;
        box-sizing: border-box;
        padding: 12px 14px; /* 15px 18px에서 12px 14px로 줄임 */
        min-height: 60px; /* 기본 70px에서 60px로 줄임 */
    }
    
    .folder-icon {
        width: 28px; /* 32px에서 28px로 줄임 */
        height: 28px; /* 32px에서 28px로 줄임 */
    }
    
    .folder-icon i {
        font-size: 16px; /* 18px에서 16px로 줄임 */
    }
    
    .folder-name {
        font-size: 14px; /* 15px에서 14px로 줄임 */
    }
    
    .folder-count {
        font-size: 11px; /* 12px에서 11px로 줄임 */
        padding: 1px 6px; /* 2px 8px에서 1px 6px로 줄임 */
    }
    
    .place-tab {
        min-width: 120px; /* 150px에서 120px로 줄임 */
        max-width: 160px; /* 200px에서 160px로 줄임 */
        padding: 12px 14px; /* 15px 18px에서 12px 14px로 줄임 */
        min-height: 45px; /* 50px에서 45px로 줄임 */
        font-size: 14px; /* 15px에서 14px로 줄임 */
        gap: 10px; /* 12px에서 10px로 줄임 */
    }
    
    .place-tab i {
        font-size: 15px; /* 16px에서 15px로 줄임 */
    }
    
    .keyword-item {
        min-width: 100px; /* 120px에서 100px로 줄임 */
        max-width: 140px; /* 180px에서 140px로 줄임 */
        padding: 10px 14px 10px 35px; /* 12px 18px 12px 40px에서 줄임 */
        min-height: 35px; /* 40px에서 35px로 줄임 */
        font-size: 13px; /* 14px에서 13px로 줄임 */
    }
    
    .keyword-item::before {
        left: 12px; /* 14px에서 12px로 줄임 */
        font-size: 11px; /* 12px에서 11px로 줄임 */
    }
    
    .place-info-header {
        flex-direction: column;
        gap: 12px; /* 15px에서 12px로 줄임 */
        align-items: center;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        /* 좌우 여백 통일 */
        margin-left: 0;
        margin-right: 0;
        margin-top: 0;
        margin-bottom: 12px; /* 15px에서 12px로 줄임 */
        /* 패딩 모바일 최적화 */
        padding: 12px 12px 10px; /* 15px 15px 12px에서 줄임 */
        /* 테두리 반지름 모바일 최적화 */
        border-radius: 12px;
    }
    
    .place-name {
        font-size: 24px; /* 28px에서 24px로 줄임 */
        gap: 10px; /* 12px에서 10px로 줄임 */
    }
    
    .place-name::before {
        font-size: 20px; /* 24px에서 20px로 줄임 */
    }
    
    .btn-icon {
        padding: 10px 18px; /* 12px 24px에서 10px 18px로 줄임 */
        font-size: 14px; /* 15px에서 14px로 줄임 */
        gap: 8px; /* 10px에서 8px로 줄임 */
    }
    
    .btn-icon i {
        font-size: 15px; /* 16px에서 15px로 줄임 */
    }
    
    .keyword-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px; /* 20px에서 12px로 줄임 */
    }
    
    .keyword-info-item {
        padding: 12px; /* 15px에서 12px로 줄임 */
    }
    
    .info-label {
        font-size: 12px; /* 13px에서 12px로 줄임 */
        margin-bottom: 6px; /* 8px에서 6px로 줄임 */
    }
    
    .info-value {
        font-size: 18px; /* 20px에서 18px로 줄임 */
    }
    
    .rank-table-section {
        padding: 12px; /* 16px에서 12px로 줄임 */
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin-bottom: 12px; /* 기본값에서 12px로 줄임 */
    }
    
    .table-wrapper {
        border-radius: 8px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: auto; /* 가로 스크롤 유지 */
        overflow-y: hidden;
        /* 초소형 모바일에서 테이블 스크롤바 숨기기 */
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }
    
    .table-wrapper::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    .rank-table {
        font-size: 11px; /* 12px에서 11px로 줄임 */
        width: 100%;
        min-width: 500px; /* 모바일에서도 최소 너비 유지 */
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .rank-table th {
        padding: 12px 6px; /* 8px 6px에서 12px 6px로 늘림 */
        font-size: 11px; /* 12px에서 11px로 줄임 */
        text-align: center;
        white-space: nowrap; /* 텍스트 줄바꿈 방지 */
    }
    
    .rank-table td {
        padding: 3px 6px; /* 4px 8px에서 3px 6px로 줄임 */
        font-size: 11px; /* 12px에서 11px로 줄임 */
        text-align: center;
        white-space: nowrap; /* 텍스트 줄바꿈 방지 */
    }
    
    .rank-table td:nth-child(2) {
        font-size: 11px; /* 다른 셀들과 동일한 크기로 맞춤 */
    }
    
    .value-with-indicator {
        gap: 5px; /* 6px에서 5px로 줄임 */
        flex-direction: row; /* 세로에서 가로로 변경 */
        justify-content: center;
        align-items: center;
        flex-wrap: nowrap; /* 명시적으로 nowrap 설정 */
    }
    
    .change-indicator {
        font-size: 10px; /* 9px에서 10px로 키움 */
    }
    
    .rank-chart-section {
        padding: 12px; /* 16px에서 12px로 줄임 */
        margin-top: 15px; /* 20px에서 15px로 줄임 */
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .chart-wrapper {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .chart-item:first-child {
        border-right: none;
        border-bottom: 1px solid var(--blue-200);
    }
    
    .chart-item {
        padding: 15px; /* 18px에서 15px로 줄임 */
    }
    
    .chart-title {
        font-size: 15px; /* 16px에서 15px로 줄임 */
        gap: 8px; /* 10px에서 8px로 줄임 */
        margin-bottom: 12px; /* 15px에서 12px로 줄임 */
        padding-bottom: 8px; /* 10px에서 8px로 줄임 */
    }
    
    .chart-title i {
        font-size: 15px; /* 16px에서 15px로 줄임 */
        padding: 5px; /* 6px에서 5px로 줄임 */
    }
    
    .chart-item canvas {
        height: 220px !important; /* 250px에서 220px로 줄임 */
        max-width: 100% !important;
    }
    
    /* 섹션 제목들 크기 줄이기 */
    .section-title {
        font-size: 18px; /* 20px에서 18px로 줄임 */
        gap: 10px; /* 12px에서 10px로 줄임 */
        margin-bottom: 14px; /* 16px에서 14px로 줄임 */
        padding-bottom: 10px; /* 12px에서 10px로 줄임 */
    }
    
    .section-title i {
        font-size: 20px; /* 22px에서 20px로 줄임 */
    }
    
    .subsection-title {
        font-size: 16px; /* 18px에서 16px로 줄임 */
        gap: 10px; /* 12px에서 10px로 줄임 */
        margin-bottom: 14px; /* 16px에서 14px로 줄임 */
        padding: 8px 14px; /* 10px 16px에서 8px 14px로 줄임 */
    }
    
    .subsection-title i {
        font-size: 16px; /* 18px에서 16px로 줄임 */
        padding: 6px; /* 8px에서 6px로 줄임 */
    }
    
    /* 키워드 섹션 패딩 줄이기 */
    .keyword-section {
        padding: 15px; /* 20px에서 15px로 줄임 */
        margin-bottom: 12px; /* 15px에서 12px로 줄임 */
    }
    
    .keyword-info-section {
        padding: 15px; /* 18px에서 15px로 줄임 */
        margin-bottom: 12px; /* 15px에서 12px로 줄임 */
    }
    
    /* 모바일에서 모든 섹션의 좌우 여백 통일 */
    .keyword-section,
    .keyword-info-section,
    .rank-table-section,
    .rank-chart-section {
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    html, body {
        max-width: 100vw;
        overflow-x: hidden;
        margin: 0;
        padding: 0;
    }
    
    .myplace-container {
        padding: 2px;
        max-width: 100vw;
        width: 100%;
        box-sizing: border-box;
    }
    
    .myplace-controls {
        padding: 10px; /* 12px에서 10px로 줄임 */
        gap: 10px; /* 12px에서 10px로 줄임 */
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .folder-section {
        max-width: 100%;
        overflow: hidden;
        box-sizing: border-box;
        padding: 10px; /* 12px에서 10px로 줄임 */
        width: 100%;
    }
    
    .folder-list {
        max-width: 100%;
        box-sizing: border-box;
        width: 100%;
        gap: 8px; /* 추가: 간격 줄이기 */
        /* 모바일에서 스크롤바 숨기기 */
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }
    
    .folder-list::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    .place-tabs {
        gap: 8px; /* 추가: 간격 줄이기 */
        /* 모바일에서 스크롤바 숨기기 */
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }
    
    .place-tabs::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    .keyword-list {
        gap: 6px; /* 추가: 간격 줄이기 */
        /* 모바일에서 스크롤바 숨기기 */
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }
    
    .keyword-list::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    .folder-item {
        min-width: 120px; /* 140px에서 120px로 줄임 */
        max-width: 140px; /* 160px에서 140px로 줄임 */
        flex-shrink: 0;
        padding: 8px 10px; /* 10px 12px에서 8px 10px로 줄임 */
        box-sizing: border-box;
        min-height: 50px; /* 추가: 높이 줄이기 */
    }
    
    .folder-icon {
        width: 24px; /* 추가: 아이콘 크기 줄이기 */
        height: 24px;
    }
    
    .folder-icon i {
        font-size: 14px; /* 추가: 아이콘 폰트 크기 줄이기 */
    }
    
    .folder-name {
        font-size: 13px; /* 추가: 폴더명 폰트 크기 줄이기 */
    }
    
    .folder-count {
        font-size: 10px; /* 추가: 폴더 개수 폰트 크기 줄이기 */
        padding: 1px 4px; /* 추가: 패딩 줄이기 */
    }
    
    .place-tab {
        min-width: 100px; /* 추가: 탭 최소 너비 줄이기 */
        max-width: 140px; /* 추가: 탭 최대 너비 줄이기 */
        padding: 10px 12px; /* 추가: 패딩 줄이기 */
        min-height: 40px; /* 추가: 높이 줄이기 */
        font-size: 13px; /* 추가: 폰트 크기 줄이기 */
        gap: 8px; /* 추가: 간격 줄이기 */
    }
    
    .place-tab i {
        font-size: 14px; /* 추가: 아이콘 크기 줄이기 */
    }
    
    .keyword-item {
        min-width: 80px; /* 추가: 키워드 최소 너비 줄이기 */
        max-width: 120px; /* 추가: 키워드 최대 너비 줄이기 */
        padding: 8px 12px 8px 30px; /* 추가: 패딩 줄이기 */
        min-height: 30px; /* 추가: 높이 줄이기 */
        font-size: 12px; /* 추가: 폰트 크기 줄이기 */
    }
    
    .keyword-item::before {
        left: 10px; /* 추가: 위치 조정 */
        font-size: 10px; /* 추가: 아이콘 크기 줄이기 */
    }
    
    .controls-left {
        flex-direction: row; /* 초소형 모바일에서도 가로 배치 유지 */
        justify-content: space-between;
        align-items: center;
        gap: 6px; /* 8px에서 6px로 줄임 */
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* 초소형 모바일에서 버튼들을 더 작게 만들어 공간 확보 */
    .controls-left .btn-gradient {
        padding: 6px 10px; /* 8px 12px에서 6px 10px로 줄임 */
        font-size: 11px; /* 12px에서 11px로 줄임 */
        flex-shrink: 0;
        min-width: fit-content;
    }
    
    /* 플레이스 개수를 오른쪽으로 밀어서 배치 */
    .place-count {
        margin-left: auto;
        padding: 6px 10px; /* 8px 12px에서 6px 10px로 줄임 */
        gap: 4px; /* 6px에서 4px로 줄임 */
        flex-shrink: 0;
        min-width: fit-content;
    }
    
    .place-count .count-text {
        font-size: 11px; /* 12px에서 11px로 줄임 */
    }
    
    .place-count i {
        font-size: 12px; /* 14px에서 12px로 줄임 */
    }
    
    .search-box {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .search-box input {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        font-size: 12px; /* 13px에서 12px로 줄임 */
        padding: 6px 10px 6px 30px; /* 8px 12px 8px 35px에서 줄임 */
    }
    
    .search-box i {
        left: 12px; /* 18px에서 12px로 줄임 */
        font-size: 14px; /* 16px에서 14px로 줄임 */
    }
    
    .keyword-info-grid {
        grid-template-columns: 1fr;
        gap: 10px; /* 추가: 간격 줄이기 */
    }
    
    .keyword-info-item {
        padding: 10px; /* 추가: 패딩 줄이기 */
    }
    
    .info-label {
        font-size: 11px; /* 추가: 라벨 폰트 크기 줄이기 */
        margin-bottom: 5px; /* 추가: 여백 줄이기 */
    }
    
    .info-value {
        font-size: 16px; /* 추가: 값 폰트 크기 줄이기 */
    }
    
    .rank-table-section {
        padding: 10px; /* 12px에서 10px로 줄임 */
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin-bottom: 10px; /* 추가: 여백 줄이기 */
    }
    
    .table-wrapper {
        border-radius: 8px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: auto; /* 가로 스크롤 유지 */
        overflow-y: hidden;
    }
    
    .rank-table {
        min-width: 450px; /* 초소형 모바일에서도 최소 너비 유지 */
    }
    
    .rank-table th,
    .rank-table td {
        padding: 4px 4px; /* 6px 6px에서 4px 4px로 줄임 */
        font-size: 10px; /* 11px에서 10px로 줄임 */
        text-align: center;
        white-space: nowrap; /* 텍스트 줄바꿈 방지 */
    }
    
    /* 초소형 모바일에서 테이블 헤더 높이 늘리기 */
    .rank-table th {
        padding: 10px 4px; /* 4px 4px에서 10px 4px로 늘림 */
    }
    
    .rank-table td:nth-child(2) {
        font-size: 10px; /* 다른 셀들과 동일한 크기로 맞춤 */
    }
    
    .value-with-indicator {
        gap: 3px; /* 4px에서 3px로 줄임 */
        flex-direction: row; /* 세로에서 가로로 변경 */
        justify-content: center;
        align-items: center;
        flex-wrap: nowrap; /* 명시적으로 nowrap 설정 */
    }
    
    .change-indicator {
        font-size: 9px; /* 8px에서 9px로 키움 */
    }
    
    /* 초소형 모바일에서 place-info-header 여백 통일 */
    .place-info-header {
        margin-left: 0;
        margin-right: 0;
        margin-top: 0;
        margin-bottom: 8px; /* 10px에서 8px로 줄임 */
        padding: 10px 10px 8px; /* 12px 12px 10px에서 줄임 */
        border-radius: 10px;
        gap: 10px; /* 추가: 간격 줄이기 */
    }
    
    .place-name {
        font-size: 20px; /* 추가: 플레이스명 폰트 크기 줄이기 */
        gap: 8px; /* 추가: 간격 줄이기 */
    }
    
    .place-name::before {
        font-size: 18px; /* 추가: 아이콘 크기 줄이기 */
    }
    
    .btn-icon {
        padding: 8px 14px; /* 추가: 버튼 패딩 줄이기 */
        font-size: 12px; /* 추가: 폰트 크기 줄이기 */
        gap: 6px; /* 추가: 간격 줄이기 */
    }
    
    .btn-icon i {
        font-size: 13px; /* 추가: 아이콘 크기 줄이기 */
    }
    
    .rank-chart-section {
        padding: 10px; /* 추가: 패딩 줄이기 */
        margin-top: 12px; /* 추가: 여백 줄이기 */
    }
    
    .chart-item {
        padding: 12px; /* 추가: 패딩 줄이기 */
    }
    
    .chart-title {
        font-size: 14px; /* 추가: 제목 폰트 크기 줄이기 */
        gap: 6px; /* 추가: 간격 줄이기 */
        margin-bottom: 10px; /* 추가: 여백 줄이기 */
        padding-bottom: 6px; /* 추가: 패딩 줄이기 */
    }
    
    .chart-title i {
        font-size: 14px; /* 추가: 아이콘 크기 줄이기 */
        padding: 4px; /* 추가: 패딩 줄이기 */
    }
    
    .chart-item canvas {
        height: 180px !important; /* 추가: 차트 높이 줄이기 */
        max-width: 100% !important;
    }
    
    /* 섹션 제목들 크기 줄이기 */
    .section-title {
        font-size: 16px; /* 추가: 제목 폰트 크기 줄이기 */
        gap: 8px; /* 추가: 간격 줄이기 */
        margin-bottom: 12px; /* 추가: 여백 줄이기 */
        padding-bottom: 8px; /* 추가: 패딩 줄이기 */
    }
    
    .section-title i {
        font-size: 18px; /* 추가: 아이콘 크기 줄이기 */
    }
    
    .subsection-title {
        font-size: 14px; /* 추가: 서브 제목 폰트 크기 줄이기 */
        gap: 8px; /* 추가: 간격 줄이기 */
        margin-bottom: 12px; /* 추가: 여백 줄이기 */
        padding: 6px 12px; /* 추가: 패딩 줄이기 */
    }
    
    .subsection-title i {
        font-size: 14px; /* 추가: 아이콘 크기 줄이기 */
        padding: 4px; /* 추가: 패딩 줄이기 */
    }
    
    /* 키워드 섹션 패딩 줄이기 */
    .keyword-section {
        padding: 12px; /* 추가: 패딩 줄이기 */
        margin-bottom: 10px; /* 추가: 여백 줄이기 */
    }
    
    .keyword-info-section {
        padding: 12px; /* 추가: 패딩 줄이기 */
        margin-bottom: 10px; /* 추가: 여백 줄이기 */
    }
    
    /* 초소형 모바일에서 모든 섹션의 좌우 여백 통일 */
    .keyword-section,
    .keyword-info-section,
    .rank-table-section,
    .rank-chart-section {
        margin-left: 0;
        margin-right: 0;
    }
}

/* 데스크톱 화면에서 키워드 정보 그리드 최적화 */
@media (min-width: 769px) and (max-width: 1200px) {
    .keyword-info-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 15px;
    }
    
    .keyword-info-item {
        padding: 12px;
    }
    
    .info-label {
        font-size: 12px;
    }
    
    .info-value {
        font-size: 18px;
    }
}

/* 플레이스 추가 모달 스타일 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    /* backdrop-filter: blur(8px); /* 성능 최적화: 블러 효과 제거 */
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    /* animation: fadeIn 0.3s ease; /* 성능 최적화: 애니메이션 제거 */
}

.modal-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); /* 성능 최적화: 단일 그림자로 단순화 */
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    /* animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* 성능 최적화: 애니메이션 제거 */
    position: relative;
}

.modal-container.modal-small {
    max-width: 400px;
}

.modal-header {
    padding: 25px 30px 20px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc; /* 성능 최적화: 그라디언트 제거 */
    position: relative;
}

.modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(59, 130, 246, 0.3); /* 성능 최적화: 그라디언트 제거 */
}

.modal-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0;
}

.modal-title i {
    color: var(--primary-blue);
    font-size: 22px;
}

/* 삭제 모달의 헤더 아이콘 스타일 */
#delete-element-modal .modal-title i {
    color: #ef4444;
    font-size: 22px;
}

.modal-close {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--gray-500);
    transition: color 0.2s ease; /* 성능 최적화: 트랜지션 단순화 */
    position: relative;
    overflow: hidden;
}

/* 성능 최적화: ::before 효과 제거 */
/* .modal-close::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gray-100);
    border-radius: 10px;
    transform: scale(0);
    transition: transform 0.3s ease;
} */

/* .modal-close:hover::before {
    transform: scale(1);
} */

.modal-close:hover {
    color: var(--gray-700);
    background: var(--gray-100); /* 성능 최적화: 직접 배경색 적용 */
}

.modal-close i {
    font-size: 18px;
    position: relative;
    z-index: 1;
}

.modal-body {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

.form-group {
    margin-bottom: 30px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 12px;
}

.form-label i {
    color: var(--primary-blue);
    font-size: 18px;
}

.form-input-wrapper {
    position: relative;
    margin-bottom: 10px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 15px;
    color: var(--gray-800);
    background: white;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    /* box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); /* 성능 최적화: box-shadow 제거 */
}

.form-input::placeholder {
    color: var(--gray-400);
}

.form-help {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.4;
}

.form-help i {
    color: var(--primary-blue);
    font-size: 14px;
    margin-top: 1px;
    flex-shrink: 0;
}

.form-error {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #e74c3c;
    margin-top: 8px;
}

.form-error i {
    font-size: 14px;
}

/* 폴더 선택 스타일 */
.folder-selection {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.folder-option {
    padding: 16px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s ease; /* 성능 최적화: 트랜지션 단순화 */
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    position: relative;
    overflow: hidden;
}

/* 성능 최적화: ::before 효과 제거 */
/* .folder-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--blue-50) 0%, rgba(239, 246, 255, 0.5) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
} */

/* .folder-option:hover::before {
    opacity: 1;
} */

.folder-option:hover {
    border-color: var(--primary-blue);
    background: var(--blue-50); /* 성능 최적화: 직접 배경색 적용 */
    /* box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15); /* 성능 최적화: box-shadow 제거 */
}

.folder-option.selected {
    border-color: var(--primary-blue);
    background: var(--blue-100); /* 클릭 시 더 진한 파란색으로 변경 */
    /* box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2); /* 성능 최적화: box-shadow 제거 */
}

/* .folder-option.selected::before {
    opacity: 1;
} */

.folder-option-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-100); /* 성능 최적화: 그라디언트 제거 */
    position: relative;
    z-index: 1;
}

.folder-option-icon i {
    font-size: 18px;
    color: var(--primary-blue);
}

.folder-option.new-folder .folder-option-icon {
    background: #10b981; /* 성능 최적화: 그라디언트 제거 */
}

.folder-option.new-folder .folder-option-icon i {
    color: white;
}

.folder-option-info {
    flex: 1;
    position: relative;
    z-index: 1;
}

.folder-option-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.folder-option-count {
    font-size: 13px;
    color: var(--gray-600);
}

.folder-option.new-folder .folder-option-name {
    color: #059669;
}

.folder-option.new-folder .folder-option-count {
    color: #10b981;
}

/* new-folder 호버 효과 */
.folder-option.new-folder:hover {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1); /* 성능 최적화: 직접 배경색 적용 */
    /* box-shadow: 0 8px 25px rgba(16, 185, 129, 0.15); /* 성능 최적화: box-shadow 제거 */
}

/* .folder-option.new-folder:hover::before {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(52, 211, 153, 0.1) 100%);
} */

.folder-option.new-folder.selected {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.2); /* 클릭 시 더 진한 녹색으로 변경 */
    /* box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2); /* 성능 최적화: box-shadow 제거 */
}

/* 모달 푸터 */
.modal-footer {
    padding: 20px 30px 25px;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    background: #f8fafc; /* 성능 최적화: 그라디언트 제거 */
}

.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease; /* 성능 최적화: 트랜지션 단순화 */
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-blue); /* 성능 최적화: 그라디언트 제거 */
    color: white;
    /* box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3); /* 성능 최적화: box-shadow 제거 */
}

/* 성능 최적화: ::before 효과 제거 */
/* .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
} */

/* .btn-primary:hover::before {
    left: 100%;
} */

.btn-primary:hover {
    background: #2563eb; /* 성능 최적화: 직접 색상 변경 */
    /* box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4); /* 성능 최적화: box-shadow 제거 */
}

.btn-secondary {
    background: white;
    color: var(--gray-700);
    border: 2px solid var(--gray-200);
}

.btn-secondary:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .modal-container {
        margin: 10px;
        max-width: calc(100vw - 20px);
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .folder-selection {
        grid-template-columns: 1fr;
    }
    
    .modal-footer {
        flex-direction: column-reverse;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    /* 키워드 입력 반응형 */
    .keyword-tags-input {
        min-height: 45px;
        padding: 6px 12px;
    }
    
    .keyword-tag {
        font-size: 12px;
        padding: 3px 8px;
    }
    
    .keyword-input-field {
        font-size: 14px;
        min-width: 100px;
    }
}

/* 요소 삭제 모달 스타일 */


.delete-step-header {
    margin-bottom: 25px;
    text-align: center;
}

.step-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0;
}

.step-title i {
    color: #ef4444;
    font-size: 20px;
}

/* 삭제 옵션 스타일 */
.delete-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.delete-option {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s ease; /* 성능 최적화: 트랜지션 단순화 */
    background: white; /* 성능 최적화: 그라디언트 제거 */
}

.delete-option:hover {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1); /* 성능 최적화: 그라디언트 제거 */
    /* box-shadow: 
        0 8px 25px rgba(239, 68, 68, 0.15),
        0 4px 10px rgba(0, 0, 0, 0.1); /* 성능 최적화: box-shadow 제거 */
}

.delete-option.selected {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.15); /* 성능 최적화: 그라디언트 제거 */
    /* box-shadow: 
        0 8px 25px rgba(239, 68, 68, 0.2),
        0 4px 10px rgba(0, 0, 0, 0.1); /* 성능 최적화: box-shadow 제거 */
}

.option-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: #ef4444; /* 성능 최적화: 그라디언트와 inset box-shadow 제거 */
    margin-right: 16px;
    /* box-shadow: 
        0 3px 12px rgba(239, 68, 68, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2); /* 성능 최적화: box-shadow 제거 */
}

.option-icon i {
    color: white;
    font-size: 20px;
    /* filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2)); /* 성능 최적화: filter 제거 */
}

.option-info {
    flex: 1;
}

.option-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 6px;
}

.option-description {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.4;
}

/* 삭제 선택 리스트 스타일 */
.delete-selection-list {
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 5px;
}

.delete-selection-list::-webkit-scrollbar {
    width: 6px;
}

.delete-selection-list::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 3px;
}

.delete-selection-list::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 3px;
}

.delete-selection-list::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

.delete-selection-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s ease; /* 성능 최적화: 트랜지션 단순화 */
    background: white;
}

.delete-selection-item:hover {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1); /* 성능 최적화: 그라디언트 제거 */
    /* box-shadow: 0 4px 15px rgba(239, 68, 68, 0.1); /* 성능 최적화: box-shadow 제거 */
}

.delete-selection-item.selected {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.15); /* 성능 최적화: 그라디언트 제거 */
    /* box-shadow: 0 4px 15px rgba(239, 68, 68, 0.15); /* 성능 최적화: box-shadow 제거 */
}

.selection-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.1); /* 성능 최적화: 그라디언트 제거 */
    margin-right: 16px;
    transition: background 0.2s ease; /* 성능 최적화: 트랜지션 단순화 */
}

.delete-selection-item.selected .selection-item-icon {
    background: #ef4444; /* 성능 최적화: 그라디언트 제거 */
}

.selection-item-icon i {
    color: #ef4444;
    font-size: 18px;
    transition: all 0.3s ease;
}

.delete-selection-item.selected .selection-item-icon i {
    color: white;
}

.selection-item-info {
    flex: 1;
}

.selection-item-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.selection-item-meta {
    font-size: 13px;
    color: var(--gray-500);
}

/* 삭제 확인 스타일 */
.delete-confirmation {
    text-align: center;
    padding: 30px 20px;
}

.confirmation-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #fee2e2; /* 성능 최적화: 그라디언트 제거 */
    margin: 0 auto 25px auto;
    border: 3px solid #ef4444;
    /* box-shadow: 
        0 8px 25px rgba(239, 68, 68, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.3); /* 성능 최적화: box-shadow 제거 */
}

.confirmation-icon i {
    color: #ef4444;
    font-size: 32px;
    /* filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1)); /* 성능 최적화: filter 제거 */
}

.confirmation-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-800);
    line-height: 1.5;
    margin-bottom: 20px;
}

.confirmation-warning {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: #fee2e2; /* 성능 최적화: 그라디언트 제거 */
    border: 1px solid #fca5a5;
    border-radius: 10px;
    margin-top: 20px;
}

.confirmation-warning i {
    color: #ef4444;
    font-size: 16px;
}

.confirmation-warning span {
    color: #dc2626;
    font-size: 14px;
    font-weight: 500;
}

/* 위험한 버튼 스타일 */
.btn-danger {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    background: #ef4444; /* 성능 최적화: 그라디언트 제거 */
    border: 1px solid rgba(239, 68, 68, 0.3);
    transition: background 0.2s ease; /* 성능 최적화: 트랜지션 단순화 */
    position: relative;
    overflow: hidden;
    /* box-shadow: 
        0 4px 15px rgba(239, 68, 68, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2); /* 성능 최적화: box-shadow 제거 */
}

/* 성능 최적화: ::before 효과 제거 */
/* .btn-danger::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
} */

/* .btn-danger:hover::before {
    left: 100%;
} */

.btn-danger:hover {
    background: #dc2626; /* 성능 최적화: 그라디언트 제거 */
    /* box-shadow: 
        0 6px 20px rgba(239, 68, 68, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2); /* 성능 최적화: box-shadow 제거 */
}

/* 성능 최적화: 애니메이션 키프레임 제거 */
/* @keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
} */

/* 키워드 입력 컨테이너 스타일 */
.keyword-input-container {
    position: relative;
}

.keyword-tags-input {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-height: 50px;
    padding: 8px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    background: white;
    transition: all 0.3s ease;
    cursor: text;
}

.keyword-tags-input:focus-within {
    border-color: var(--primary-blue);
    /* box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); /* 성능 최적화: box-shadow 제거 */
}

.keyword-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.keyword-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--blue-50); /* 성능 최적화: 그라디언트 제거 */
    border: 1px solid var(--blue-200);
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary-blue);
    white-space: nowrap;
    /* animation: slideIn 0.2s ease; /* 성능 최적화: 애니메이션 제거 */
}

.keyword-tag-remove {
    background: none;
    border: none;
    color: var(--primary-blue);
    cursor: pointer;
    padding: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.keyword-tag-remove:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #1e40af;
}

.keyword-tag-remove i {
    font-size: 9px;
}

.keyword-input-field {
    flex: 1;
    min-width: 120px;
    border: none;
    outline: none;
    font-size: 15px;
    color: var(--gray-800);
    background: transparent;
    padding: 6px 0;
}

.keyword-input-field::placeholder {
    color: var(--gray-400);
}

/* 키워드 태그가 없을 때의 스타일 */
.keyword-tags:empty + .keyword-input-field {
    min-width: 100%;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
} 

/* 큰 데스크톱에서 여백 최적화 */
@media (min-width: 1400px) {
    .myplace-container {
        padding: 3px;
        max-width: 1800px;
    }
}

@media (min-width: 1600px) {
    .myplace-container {
        padding: 2px;
        max-width: 1800px;
    }
}