/* 드래그 선택 박스 */
.selection-box {
    position: fixed;
    border: 1px solid #0078d4;
    background: rgba(0, 120, 212, 0.1);
    pointer-events: none;
    z-index: 9999;
}

.file-item.selecting,
.folder-item.selecting {
    background: #e6f2ff !important;
}

/* 가상 스크롤링 컨테이너 */
.virtual-scroll-container {
    position: relative;
    height: 100%;
    overflow-y: auto;
}

/* 진행률 모달 */
.progress-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.progress-content {
    background: white;
    padding: 24px;
    border-radius: 8px;
    min-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.progress-content h3 {
    margin: 0 0 16px;
    font-size: 16px;
}

.progress-bar {
    height: 24px;
    background: #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0078d4, #40a9ff);
    transition: width 0.3s ease;
    border-radius: 12px;
}

.progress-text {
    text-align: center;
    color: #666;
    margin: 0;
    font-size: 14px;
}

/* 토스트 메시지 개선 */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #323232;
    color: white;
    padding: 16px 24px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 10001;
    font-size: 14px;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.toast-error {
    background: #d32f2f;
}

.toast.toast-warning {
    background: #f57c00;
}

.toast.toast-success {
    background: #388e3c;
}

/* 체크박스 스타일 */
.item-checkbox {
    display: inline-flex;
    align-items: center;
}

.item-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* 잘라내기 효과 */
.file-item.cut,
.folder-item.cut {
    opacity: 0.5;
}

/* 빠른 선택 애니메이션 */
.file-item,
.folder-item {
    transition: background-color 0.15s ease;
}

/* 성능 최적화를 위한 GPU 가속 */
.virtual-scroll-container,
.file-list {
    will-change: transform;
    transform: translateZ(0);
}

/* 선택된 항목 개선 */
.file-item.selected,
.folder-item.selected {
    background: #cce8ff;
    border: 1px solid #99d1ff;
}

.file-item.selected .item-checkbox input,
.folder-item.selected .item-checkbox input {
    checked: true;
}

/* 파일 아이템 액션 버튼 */
.content-item {
    position: relative;
}

.item-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: #666;
    margin-top: 4px;
}

.file-size {
    font-size: 11px;
    color: #888;
}

.item-actions {
    display: none;
    gap: 4px;
}

.content-item:hover .item-actions {
    display: flex;
}

.action-btn {
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.action-btn:hover {
    background: rgba(0, 120, 212, 0.1);
}

.download-btn svg {
    color: #0078d4;
}

.delete-btn svg {
    color: #d83b01;
}

.download-btn:hover {
    background: rgba(0, 120, 212, 0.15);
}

.delete-btn:hover {
    background: rgba(216, 59, 1, 0.1);
}

/* 루트 폴더 특별 스타일 */
.content-item.root-folder {
    opacity: 0.7;
    cursor: default;
}

.content-item.root-folder:hover {
    background: transparent;
    transform: none;
}

.list-item.root-folder {
    opacity: 0.7;
}

.list-item.root-folder:hover {
    background: transparent;
}

/* 컨텍스트 메뉴 */
.context-menu {
    position: fixed;
    background: white;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    padding: 4px 0;
    z-index: 10000;
    min-width: 150px;
}

.context-menu-item {
    padding: 8px 16px;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.context-menu-item:hover {
    background: #f0f0f0;
}

.context-menu-item svg {
    width: 14px;
    height: 14px;
}

/* 토스트 메시지 info 타입 추가 */
.toast.toast-info {
    background: #0078d4;
}/* 트리 액션 버튼 */
.tree-actions {
    display: none;
    margin-left: auto;
    gap: 4px;
    background: transparent;
}

.tree-node-content:hover .tree-actions {
    display: flex;
}

.tree-action {
    width: 18px;
    height: 18px;
    border: 1px solid #ddd;
    background: #ffffff;
    border-radius: 2px;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    padding: 0;
}

.tree-action:hover {
    background: #f0f0f0;
    border-color: #999;
}

/* 기존 breadcrumb-bar 숨기기 (네비게이션 바에 통합) */
.breadcrumb-bar {
    display: none;
}

/* 브레드크럼 바 */
.breadcrumb-bar {
    padding: 4px 12px;
    background: #f9f9f9;
    border-bottom: 1px solid #e1e1e1;
    font-size: 13px;
    color: #333;
}

/* 체크박스 - 그리드 뷰에서만 absolute positioning */
.content-grid .item-checkbox {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 1;
}

/* 리스트 뷰의 체크박스는 static positioning */
.content-list .item-checkbox {
    position: static;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.content-item {
    position: relative;
}

.content-item.selected {
    background: #e6f2ff;
    border-color: #0078d4;
}

/* 로딩/에러 메시지 */
.tree-loading, .tree-error {
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 13px;
}

.tree-error {
    color: #d32f2f;
}/* 폴더 트리 배경색 강제 적용 - 모든 요소 흰색 */
#folderTree {
    background-color: #ffffff !important;
}

/* 트리 노드도 흰색 배경 */
.tree-node {
    background-color: #ffffff !important;
}

/* 트리 children도 흰색 배경 */
.tree-children {
    background-color: #ffffff !important;
}

/* 폴더 트리 내부 모든 요소 흰색 (선택된 항목과 액션 버튼 제외) */
#folderTree *:not(.tree-node-content.selected):not(.tree-action):not(.tree-actions) {
    background-color: transparent !important;
}

/* 폴더 트리 패널 전체 배경 */
.folder-tree-panel {
    background-color: #ffffff !important;
}

/* 패널 헤더 흰색 */
.panel-header {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e1e1e1 !important;
}

/* 선택된 항목 - 파란색 배경에 흰색 텍스트 */
.tree-node-content.selected {
    background-color: #0078d4 !important;
    border: 1px solid #005a9e !important;
    color: #ffffff !important;
    padding: 1px 3px;
}

/* 선택된 노드의 모든 텍스트와 아이콘 흰색으로 */
.tree-node-content.selected .tree-expand,
.tree-node-content.selected .tree-icon,
.tree-node-content.selected .tree-label {
    color: #ffffff !important;
}

/* 호버 효과 - 연한 파란색 배경에 파란 테두리, 검은 텍스트 - 최고 우선순위 */
#folderTree .tree-node-content:hover:not(.selected),
.folder-tree .tree-node-content:hover:not(.selected),
.tree-node-content:hover:not(.selected) {
    background-color: #e8f4fd !important;
    border: 1px solid #0078d4 !important;
    color: #000000 !important;
    padding: 1px 3px !important;
}

/* 호버시 텍스트와 아이콘 검정색 유지 - 더 구체적인 선택자 */
#folderTree .tree-node-content:hover:not(.selected) .tree-expand,
#folderTree .tree-node-content:hover:not(.selected) .tree-icon,
#folderTree .tree-node-content:hover:not(.selected) .tree-label,
.tree-node-content:hover:not(.selected) .tree-expand,
.tree-node-content:hover:not(.selected) .tree-icon,
.tree-node-content:hover:not(.selected) .tree-label {
    color: #000000 !important;
}

/* 호버시 모든 span 요소도 검정색 */
#folderTree .tree-node-content:hover:not(.selected) span,
.tree-node-content:hover:not(.selected) span {
    color: #000000 !important;
}



/* Windows 파일 탐색기 스타일 */

/* 메인 컨테이너 */
.file-explorer-container {
    display: flex;
    height: calc(100vh - 180px);
    background: #ffffff;
    border: 1px solid #d4d4d4;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/*/* 좌측 폴더 트리 패널 */
.folder-tree-panel {
    width: 250px;
    min-width: 200px; /* 최소 너비 보장 */
    max-width: 500px; /* 최대 너비 제한 */
    background: #ffffff !important;
    border-right: 1px solid #e1e1e1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%; /* 명시적 높이 설정 */
    position: relative;
    flex-shrink: 0; /* 패널 크기 고정 */
}

/* 트리 상태표시줄 - 완전 제거 */
.tree-status-bar {
    display: none !important;
}

.panel-header {
    padding: 6px 12px; /* 패딩 줄임 */
    background: #ffffff;
    border-bottom: 1px solid #e1e1e1;
    font-size: 12px;
    font-weight: 600;
    color: #000000;
    flex-shrink: 0; /* 크기 고정 */
}

.folder-tree {
    flex: 1 !important; /* 남은 공간 모두 차지 - 중요! */
    height: auto !important; /* 자동 높이 */
    max-height: none !important; /* 최대 높이 제한 없음 */
    overflow-y: auto;
    overflow-x: auto; /* auto로 변경 - 필요시만 스크롤바 표시 */
    padding: 4px 8px; /* 좌우 여백 추가 */
    background: #ffffff !important;
    min-width: 0; /* flex 컨테이너에서 최소 너비 허용 */
    min-height: 0; /* flex 아이템이 부모를 넘지 않도록 */
}

/* 트리 wrapper - 가로 스크롤을 위한 핵심 */
.tree-wrapper {
    display: block !important;
    min-width: 500px !important; /* 강제로 최소 너비 설정 */
    width: fit-content !important;
}

/* 폴더 트리 내부의 모든 요소에 nowrap 적용 */
.folder-tree * {
    white-space: nowrap !important;
}

/* 트리 노드 스타일 */
.tree-node {
    user-select: none;
    background: #ffffff !important;
    display: block;
    min-width: 500px; /* 각 노드에 최소 너비 */
}

.tree-node-content {
    display: flex;
    align-items: center;
    padding: 2px 4px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 13px;
    background: transparent;
    border: 1px solid transparent;
    position: relative;
    min-width: 500px; /* 최소 너비 강제 */
}

.tree-node-content:hover {
    background: #e8f4fd !important;
    border: 1px solid #0078d4 !important;
    color: #000000 !important;
    padding: 1px 3px !important;
}

/* 호버시 모든 하위 요소 검정색 */
.tree-node-content:hover:not(.selected) * {
    color: #000000 !important;
}

.tree-node-content.selected {
    background: #0078d4;
    border: 1px solid #005a9e;
    padding: 1px 3px;
    color: #ffffff;
}

/* 선택된 노드의 모든 하위 요소 색상 - 흰색 */
.tree-node-content.selected .tree-expand,
.tree-node-content.selected .tree-icon,
.tree-node-content.selected .tree-label {
    color: #ffffff;
}

/* 선택된 노드의 액션 버튼도 보이도록 스타일 조정 */
.tree-node-content.selected .tree-actions .tree-action {
    background: #ffffff;
    color: #0078d4;
    border-color: #ffffff;
}

.tree-node-content.selected .tree-actions .tree-action:hover {
    background: #f0f0f0;
    color: #0078d4;
}

.tree-expand {
    width: 12px;
    height: 12px;
    margin-right: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #000000;
    flex-shrink: 0;
}

.tree-expand-placeholder {
    width: 12px;
    height: 12px;
    margin-right: 2px;
    display: inline-block;
    flex-shrink: 0;
}

.tree-icon {
    margin-right: 4px;
    font-size: 14px;
}

.tree-label {
    color: #000000;
}

.tree-children {
    display: none;
    overflow: hidden;
    transition: height 0.2s ease-out;
    background: #ffffff !important;
    margin-left: 12px; /* 하위 폴더 들여쓰기 (기본값) */
}

.tree-children.expanded {
    display: block;
    background: #ffffff !important;
}

/* 루트 레벨 하위 폴더는 들여쓰기 더 줄이기 */
.tree-node[data-level="0"] > .tree-children {
    margin-left: 2px; /* 거의 왼쪽 끝으로 */
}

/* 루트의 하위 폴더(레벨1)의 자식들은 적절한 간격 유지 */
.tree-node[data-level="1"] > .tree-children {
    margin-left: 10px;
}

/* 레벨2 이상은 기본 들여쓰기 유지 */
.tree-node[data-level="2"] > .tree-children,
.tree-node[data-level="3"] > .tree-children,
.tree-node[data-level="4"] > .tree-children {
    margin-left: 12px;
}

/* 애니메이션 성능 최적화 */
.tree-children {
    will-change: height;
    transform: translateZ(0); /* GPU 가속 */
}

/* 트리 노드 호버 효과 개선 */
.tree-node-content {
    transition: background-color 0.1s ease;
}

/* 확장 버튼 애니메이션 */
.tree-expand {
    transition: transform 0.2s ease;
}

.tree-expand:hover {
    transform: scale(1.2);
}

/* 구분선 */
.splitter {
    width: 3px;
    background: #f0f0f0;
    cursor: col-resize;
}

.splitter:hover {
    background: #d0d0d0;
}

/* 우측 파일 내용 패널 */
.file-content-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 네비게이션 바 */
.navigation-bar {
    display: flex;
    align-items: center;
    padding: 4px 8px;
    background: #f5f5f5;
    border-bottom: 1px solid #e1e1e1;
    gap: 4px;
}

.nav-btn {
    width: 28px;
    height: 28px;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-btn:hover:not(:disabled) {
    background: #e1e1e1;
    border-color: #d0d0d0;
}

.nav-btn:active:not(:disabled) {
    background: #d0d0d0;
}

.nav-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.nav-btn svg {
    width: 16px;
    height: 16px;
}

.nav-separator {
    width: 1px;
    height: 20px;
    background: #d4d4d4;
    margin: 0 4px;
}

.breadcrumb-inline {
    flex: 1;
    font-size: 13px;
    color: #333;
    padding: 0 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 주소 표시줄 */
.address-bar {
    display: flex;
    align-items: center;
    padding: 4px;
    background: #f5f5f5;
    border-bottom: 1px solid #e1e1e1;
    gap: 4px;
}

.nav-btn {
    width: 28px;
    height: 28px;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.nav-btn:hover {
    background: #e1e1e1;
    border-color: #d0d0d0;
}

.nav-btn:active {
    background: #d0d0d0;
}

.nav-btn svg {
    width: 16px;
    height: 16px;
}

.address-input-container {
    flex: 1;
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #d4d4d4;
    padding: 2px 8px;
    height: 28px;
}

.address-icon {
    margin-right: 6px;
    font-size: 14px;
}

.address-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 13px;
    background: transparent;
}

/* 도구 모음 */
.toolbar {
    display: flex;
    align-items: center;
    padding: 4px 8px;
    background: #f5f5f5;
    border-bottom: 1px solid #e1e1e1;
    gap: 4px;
}

.tool-btn {
    padding: 4px 8px;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.tool-btn:hover {
    background: #e1e1e1;
    border-color: #d0d0d0;
}

.tool-btn svg {
    width: 16px;
    height: 16px;
}

.separator {
    width: 1px;
    height: 20px;
    background: #d4d4d4;
    margin: 0 4px;
}

.view-buttons {
    display: flex;
    gap: 2px;
    margin-left: auto;
}

.view-btn {
    width: 28px;
    height: 28px;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.view-btn:hover {
    background: #e1e1e1;
    border-color: #d0d0d0;
}

.view-btn.active {
    background: #cce8ff;
    border-color: #99d1ff;
}

/* 검색 박스 */
.search-box {
    position: relative;
    width: 150px;
}

.search-input {
    width: 100%;
    padding: 2px 22px 2px 6px;
    border: 1px solid #d4d4d4;
    border-radius: 2px;
    font-size: 12px;
    outline: none;
    height: 22px;
}

.search-input:focus {
    border-color: #0078d4;
}

.search-icon {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    opacity: 0.5;
    pointer-events: none;
}

/* 파일 내용 영역 */
.file-content {
    flex: 1;
    overflow: auto;
    padding: 8px;
    background: #ffffff;
}

/* 리스트 뷰 */
.content-list {
    width: 100%;
    padding: 0;
}

.list-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: white;
}

.list-table thead th:first-child {
    background: #e8e8e8;
    position: relative;
}

.list-table #selectAll {
    cursor: pointer;
    width: 18px;
    height: 18px;
    margin: 0;
}

.list-table #selectAll:hover {
    transform: scale(1.1);
}

/* 전체 선택 체크박스 강조 */
.list-table thead th:first-child::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid transparent;
    pointer-events: none;
}

.list-table thead th:first-child:hover::after {
    border-color: #0078d4;
    border-radius: 3px;
}

.list-table thead {
    background: #f5f5f5;
    border-bottom: 2px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 10;
}

.list-table th {
    padding: 8px 12px;
    text-align: left;
    font-weight: normal;
    color: #666;
    border-right: 1px solid #e0e0e0;
    user-select: none;
}

.list-table th:last-child {
    border-right: none;
}

.list-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
    cursor: pointer;
}

.list-table tbody tr:hover {
    background: #f8f8f8;
}

.list-table tbody tr.selected {
    background: #e8f4fd;
}

.list-table td {
    padding: 6px 12px;
    vertical-align: middle;
}

.list-table .item-icon {
    font-size: 16px;
    text-align: center;
}

.list-table .item-name {
    font-weight: 500;
    color: #333;
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.list-table .item-size {
    color: #666;
    font-size: 12px;
}

.list-table .item-date {
    color: #666;
    font-size: 12px;
}

.list-table .item-actions {
    display: flex;
    gap: 4px;
}

.list-table .action-btn {
    padding: 2px 6px;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
}

.list-table .action-btn:hover {
    background: #e0e0e0;
    border-color: #ccc;
}

/* 그리드 뷰 */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    padding: 12px;
}

.content-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    border: 1px solid transparent;
    border-radius: 3px;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s;
}

.content-item:hover {
    background: #f0f8ff;
    border-color: #b3d9ff;
    transform: scale(1.02);
}

.content-item.selected {
    background: #316ac5;
    border-color: #316ac5;
    color: white;
}

/* 선택된 항목의 하위 요소들도 흰색으로 */
.content-item.selected .item-name {
    color: white;
}

.content-item.selected .item-info,
.content-item.selected .file-size {
    color: rgba(255, 255, 255, 0.9);
}

/* 선택된 항목의 체크박스 스타일 */
.content-item.selected .item-checkbox {
    accent-color: white;
}

.item-icon {
    font-size: 48px;
    margin-bottom: 8px;
}

.item-name {
    font-size: 13px;
    color: #333;
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    width: 100%;
    line-height: 1.3;
}

/* 빈 폴더 */
.empty-folder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
}

.empty-folder svg {
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-folder p {
    font-size: 14px;
}

/* 상태 표시줄 */
.status-bar {
    display: flex;
    align-items: center;
    padding: 4px 12px;
    background: #f5f5f5;
    border-top: 1px solid #e1e1e1;
    font-size: 12px;
    color: #666;
    gap: 8px;
}

/* 모달 스타일 - 오버레이 없음 */
.modal {
    display: none;
}

.modal.show {
    display: block;
}

.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3); /* 그림자 강화 */
    width: 90%;
    max-width: 400px;
    z-index: 10000;
}

.modal-header {
    padding: 12px 16px;
    border-bottom: 1px solid #e1e1e1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 24px;
    height: 24px;
}

.modal-close:hover {
    color: #000;
}

.modal-body {
    padding: 16px;
}

.modal-footer {
    padding: 12px 16px;
    border-top: 1px solid #e1e1e1;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* 업로드 영역 */
.upload-area {
    border: 2px dashed #d4d4d4;
    border-radius: 4px;
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.upload-area:hover {
    border-color: #0078d4;
    background: #f0f8ff;
}

.upload-area.dragging {
    border-color: #40a82b;
    background: #f0fff0;
}

.upload-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    opacity: 0.5;
}

.upload-text {
    color: #666;
    font-size: 13px;
}

/* 폼 요소 */
.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #d4d4d4;
    border-radius: 3px;
    font-size: 13px;
}

.form-control:focus {
    outline: none;
    border-color: #0078d4;
}

/* 버튼 스타일 */
.btn {
    padding: 6px 12px;
    border: 1px solid #d4d4d4;
    background: #f5f5f5;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn:hover {
    background: #e1e1e1;
}

.btn-primary {
    background: #0078d4;
    color: white;
    border-color: #0078d4;
}

.btn-primary:hover {
    background: #106ebe;
}

.btn-secondary {
    background: #f5f5f5;
}

/* 스크롤바 스타일 */
.folder-tree::-webkit-scrollbar,
.file-content::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

.folder-tree::-webkit-scrollbar-track,
.file-content::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-left: 1px solid #e1e1e1;
}

.folder-tree::-webkit-scrollbar-thumb,
.file-content::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border: 1px solid #a0a0a0;
}

.folder-tree::-webkit-scrollbar-thumb:hover,
.file-content::-webkit-scrollbar-thumb:hover {
    background: #a0a0a0;
}

/* 반응형 처리 */
@media (max-width: 768px) {
    .folder-tree-panel {
        width: 200px;
    }
    
    .search-box {
        width: 150px;
    }
    
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    }
}
