/* File Viewer Modal Styles */
.file-modal { 
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.8); 
}

.file-modal-content { 
    position: relative; 
    margin: 2% auto; 
    padding: 0; 
    width: 90%; 
    height: 90%; 
    background: white; 
    border-radius: 12px; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.3); 
}

.file-modal-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 15px 20px; 
    border-bottom: 1px solid #e2e8f0; 
    background: #f8fafc; 
    border-radius: 12px 12px 0 0; 
}

.file-modal-title { 
    font-size: 1.2rem; 
    font-weight: 600; 
    color: rgb(33,57,105); 
    margin: 0; 
}

.file-modal-close { 
    background: none; 
    border: none; 
    font-size: 24px; 
    cursor: pointer; 
    color: #6b7280; 
    padding: 0; 
    width: 30px; 
    height: 30px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.file-modal-close:hover { 
    color: #374151; 
}

.file-modal-body { 
    height: calc(100% - 70px); 
    padding: 0; 
}

.file-viewer { 
    width: 100%; 
    height: 100%; 
    border: none; 
    border-radius: 0 0 12px 12px; 
}

.file-actions { 
    position: absolute; 
    top: 15px; 
    right: 60px; 
    display: flex; 
    gap: 10px; 
}

.file-action-btn { 
    background: #3048a5; 
    color: white; 
    border: none; 
    padding: 8px 16px; 
    border-radius: 6px; 
    cursor: pointer; 
    font-size: 14px; 
    font-weight: 500; 
}

.file-action-btn:hover { 
    background: #223a86; 
}

@media (max-width: 768px) { 
    .file-modal-content { 
        width: 95%; 
        height: 95%; 
        margin: 2.5% auto; 
    }
    .file-actions { 
        right: 50px; 
    }
}
