/* 파일 탐색기 컨테이너 - 전체 레이아웃 */
.file-explorer-container {
    display: flex;
    height: calc(100vh - 200px); /* 타이틀바, 메뉴바, 툴바 등 제외 */
    background: white;
    border: 1px solid #ddd;
}

/* 폴더 트리 패널 */
.folder-tree-panel {
    width: 250px;
    background: white;
    border-right: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.panel-header {
    padding: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
    border-bottom: 1px solid #ddd;
    font-weight: bold;
    font-size: 13px;
    flex-shrink: 0;
}

/* 폴더 트리 */
.folder-tree {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 5px;
    background: white;
    min-height: 0; /* flexbox overflow 버그 방지 */
}

/* 구분선 */
.splitter {
    width: 1px;
    background: #ddd;
    cursor: col-resize;
}

/* 파일 내용 패널 */
.file-content-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
    min-width: 0; /* flexbox overflow 방지 */
    height: 100%;
}

/* 네비게이션 바 */
.navigation-bar {
    padding: 8px;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

/* 도구 모음 */
.toolbar {
    padding: 8px;
    background: #f9f9f9;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

/* 브레드크럼 바 */
.breadcrumb-bar {
    padding: 8px 12px;
    background: white;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    color: #666;
    flex-shrink: 0;
}

/* 파일 내용 영역 - 스크롤 가능 */
.file-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px;
    background: white;
    min-height: 0; /* flexbox overflow 버그 방지 */
}

/* 상태 표시줄 */
.status-bar {
    padding: 5px 10px;
    background: #f5f5f5;
    border-top: 1px solid #ddd;
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* 트리 노드 스타일 통일 */
.tree-node {
    margin: 1px 0;
}

.tree-node-content {
    display: flex;
    align-items: center;
    padding: 3px 5px;
    cursor: pointer;
    user-select: none;
    background: white;
    border-radius: 3px;
}

.tree-node-content:hover {
    background: #e8f4fd;
}

.tree-node-content.selected {
    background: #316ac5;
    color: white;
}

/* 트리 아이콘 색상 통일 */
.tree-icon {
    margin-right: 4px;
    font-size: 14px;
}

.tree-label {
    flex: 1;
    font-size: 13px;
    color: #333;
}

.tree-node-content.selected .tree-label {
    color: white;
}

/* 파일 내용 패널 */
.file-content-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
    position: relative;
}

/* 파일 내용 영역 - 스크롤 설정 */
.file-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px;
    background: white;
    max-height: calc(100vh - 300px); /* 헤더, 툴바, 상태바 높이 제외 */
}

/* 빈 공간에 권한 정보 표시 */
.empty-content-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 400px;
    color: #999;
}

.access-info-panel {
    background: #f8f9fa;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    padding: 20px;
    margin: 20px auto;
    max-width: 500px;
    text-align: center;
}

.access-info-panel h3 {
    margin: 0 0 15px;
    font-size: 16px;
    color: #24292e;
}

.access-info-list {
    text-align: left;
    margin: 15px 0;
}

.access-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    padding: 10px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e1e4e8;
}

.access-info-item .icon {
    font-size: 20px;
}

.access-info-item .title {
    font-weight: 600;
    color: #24292e;
    margin-bottom: 3px;
}

.access-info-item .desc {
    font-size: 12px;
    color: #586069;
}
.access-toggle-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    width: 100%;
}

.access-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
}

.access-badge.public {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.access-badge.private {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.access-toggle-btn:hover .access-badge {
    transform: scale(1.05);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 토스트 메시지 */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
