/* 파일 권한 경고 스타일 */

/* 경고 상태 배지 */
.access-badge.warning {
    background-color: #fff3cd !important;
    color: #856404 !important;
    border: 1px solid #ffc107 !important;
    cursor: help;
}

/* 경고 호버 효과 */
.file-access-toggle-btn:hover .access-badge.warning {
    background-color: #ffc107 !important;
    color: #fff !important;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* 파일 행 경고 표시 */
.list-item.file.access-warning {
    background-color: #fff3cd20;
}

/* 툴팁 스타일 개선 */
.file-access-toggle-btn[title] {
    position: relative;
}

.file-access-toggle-btn[title]:hover::before {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: normal;
    width: 250px;
    z-index: 1000;
    margin-bottom: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* 화살표 추가 */
.file-access-toggle-btn[title]:hover::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
    margin-bottom: -5px;
}
