/* 검색 관련 스타일 */

/* 검색 헤더 */
.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 15px;
}

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

/* 검색 경로 표시 */
.search-path {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-count {
    color: #666;
    font-size: 14px;
}

.btn-clear-search {
    padding: 4px 8px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.btn-clear-search:hover {
    background: #c82333;
}

/* 검색 로딩 */
.search-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px;
    color: #666;
}

.search-loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0078d4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 검색 결과 없음 */
.search-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px;
    color: #999;
}

.search-empty p {
    margin-top: 15px;
    font-size: 16px;
}

/* 검색 오류 */
.search-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px;
    color: #dc3545;
}

.search-error .error-detail {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

/* 검색 결과 항목 */
.search-result {
    background: #fffef0;
}

.search-result:hover {
    background: #fff9c4;
}

/* 검색어 하이라이트 */
mark {
    background-color: #ffeb3b;
    padding: 2px 4px;
    border-radius: 2px;
    font-weight: 500;
}

/* 폴더 링크 버튼 */
.folder-link {
    background: none;
    border: 1px solid #ddd;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    color: #666;
    transition: all 0.2s;
}

.folder-link:hover {
    background: #f0f0f0;
    border-color: #0078d4;
    color: #0078d4;
}

.folder-link-small {
    background: none;
    border: none;
    padding: 2px 4px;
    cursor: pointer;
    font-size: 11px;
    color: #999;
    transition: color 0.2s;
}

.folder-link-small:hover {
    color: #0078d4;
}

/* 검색 결과 테이블 */
.search-result .item-folder {
    color: #666;
    font-size: 12px;
}

/* 검색 결과 그리드 뷰 */
.content-grid .search-result {
    border: 2px solid #ffeb3b;
}

.content-grid .search-result .item-folder {
    padding: 5px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    margin-top: 5px;
    font-size: 11px;
}

/* 검색 입력창 개선 */
.search-input:focus {
    outline: 2px solid #0078d4;
    outline-offset: -1px;
}

/* 검색 아이콘 활성화 표시 */
.search-box.active .search-icon {
    color: #0078d4;
}

/* 리스트 뷰 폴더 컬럼 */
.list-table th:nth-child(4),
.list-table td:nth-child(4) {
    text-align: left;
}

/* 액션 버튼들 */
.item-actions {
    display: flex;
    gap: 5px;
}

.action-btn {
    padding: 2px 6px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.action-btn:hover {
    background: #e0e0e0;
    border-color: #999;
}

.action-btn.pdf-view-btn:hover {
    background: #ff5722;
    color: white;
    border-color: #ff5722;
}

.action-btn.download-btn:hover {
    background: #4caf50;
    color: white;
    border-color: #4caf50;
}
