:root { --primary: #007bff; --overlay: rgba(0, 123, 255, 0.4); }
body { font-family: sans-serif; background: #f8f9fa; padding: 20px; text-align: center; user-select: none; margin: 0; }

#context-menu {
    position: absolute; display: none; background: white;
    border: 1px solid #ccc; box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 2000; border-radius: 5px; padding: 5px 0; min-width: 120px;
}
#context-menu div { padding: 8px 15px; cursor: pointer; font-size: 14px; text-align: left; }
#context-menu div:hover { background: #f0f0f0; color: var(--primary); }

#selection-box {
    position: absolute; border: 1px solid var(--primary);
    background: rgba(0, 123, 255, 0.2); display: none; z-index: 1000;
    pointer-events: none;
}

#drop-zone { border: 2px dashed #ccc; padding: 220px; border-radius: 10px; background: white; cursor: pointer; margin-bottom: 20px; position: relative; z-index: 10; }
#drop-zone.dragover { background: #e1ecf8; border-color: var(--primary); }





#thumbnail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; padding: 20px; position: relative; min-height: 200px; }

.thumb-card { 
    background: white; border-radius: 10px; position: relative; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); cursor: grab; overflow: hidden;
    transition: 0.2s; border: 3px solid transparent;
}
.thumb-card img { width: 100%; transition: transform 0.3s ease; display: block; pointer-events: none; }

.thumb-card.selected::after {
    content: "✓"; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--overlay); color: white; display: flex;
    align-items: center; justify-content: center; font-size: 40px; font-weight: bold;
}
.thumb-card.selected { border-color: var(--primary); }

.page-info { position: absolute; bottom: 5px; right: 5px; background: rgba(0,0,0,0.6); color: white; padding: 2px 6px; border-radius: 4px; font-size: 11px; z-index: 10; }
.controls { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: white; padding: 15px 30px; border-radius: 50px; box-shadow: 0 5px 20px rgba(0,0,0,0.2); z-index: 100; display: none;}
button { background: var(--primary); color: white; border: none; padding: 10px 25px; border-radius: 25px; cursor: pointer; font-weight: bold; }



/* 파일 목록 컨테이너 */
#file-list {
    max-width: 800px;
    margin: 10px auto 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

/* 개별 파일 칩 스타일 */
.file-chip {
    background: #e9ecef;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    color: #495057;
    border: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.file-chip::before {
    content: "📄";
    margin-right: 5px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}


/* 보안 안내 문구 스타일 */
.security-info {
    background-color: #e7f3ff; /* 연한 파란색 배경 */
    color: #0c5460;           /* 짙은 청록색 글자 */
    border: 1px solid #d1ecf1;
    padding: 12px 20px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.security-info .icon {
    margin-right: 8px;
    font-size: 16px;
}

/* 헤더 및 로고 스타일 */
.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 10px;
}

.main-logo {
    width: 360px; /* 로고 크기 조정 */
    height: auto;
    margin-bottom: 10px;
}

.brand-name {
    font-size: 2.2rem;
    color: #333;
    margin: 0;
}

.en-name {
    font-size: 1.2rem;
    color: #666;
    font-weight: normal;
}

.footer {
    margin-top: 50px;
    padding: 30px 0;
    border-top: 1px solid #eee;
    color: #888;
    font-size: 13px;
    line-height: 1.6;
}

.footer p {
    margin: 5px 0;
}

/* 모달 배경 */
.modal {
    display: none; position: fixed; z-index: 3000;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
}

/* 모달 박스 */
.modal-content {
    background-color: white; margin: 5% auto;
    padding: 30px; border-radius: 15px;
    width: 80%; max-width: 800px; max-height: 80vh;
    overflow-y: auto; text-align: left; line-height: 1.6;
}

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

.footer a { color: #888; text-decoration: none; margin: 0 10px; }
.footer a:hover { text-decoration: underline; color: var(--dark); }

.modal-content h2 { color: var(--dark); border-left: 5px solid var(--primary); padding-left: 10px; }





..blog-section {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.section-title {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 20px;
}

.blog-item {
    background: white;
    border: 1px solid #eee;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-item[open] {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

summary {
    padding: 15px 20px;
    font-weight: bold;
    cursor: pointer;
    list-style: none; /* 기본 화살표 제거 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    outline: none;
    background-color: #fff;
}

summary::after {
    content: '▼';
    font-size: 0.8rem;
    color: #999;
    transition: 0.3s;
}

.blog-item[open] summary::after {
    transform: rotate(180deg);
    color: var(--dark);
}

summary:hover {
    background-color: #fffdf0;
}

/* 블로그 본문 가독성 스타일 */
.blog-content {
    padding: 25px;
    line-height: 1.8; /* 줄 간격을 넓혀서 피로도 감소 */
    color: #444;
    text-align: left;
}

.blog-content h4 {
    margin-top: 25px;
    margin-bottom: 10px;
    color: #222;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
}

.blog-content h4::before {
    content: "🍌"; /* 바나나 아이콘으로 포인트 */
    margin-right: 8px;
    font-size: 1rem;
}

.blog-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.blog-content li {
    margin-bottom: 8px;
    list-style-type: disc;
}

.blog-content strong {
    color: #000;
    background: linear-gradient(to top, #fff5ad 40%, transparent 40%); /* 노란색 강조 하이라이트 */
}

.intro {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
}