
.modal-impersonate {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}

.modal-content-impersonate {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    animation: slideIn 0.3s;
}

.modal-header-impersonate {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header-impersonate h3 {
    margin: 0;
    color: #333;
}

.close-impersonate {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.close-impersonate:hover {
    color: #000;
}

.modal-body-impersonate {
    padding: 20px;
}

#userSearch {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

#userSearch:focus {
    outline: none;
    border-color: #417690;
}

.search-results {
    margin-top: 15px;
    max-height: 400px;
    overflow-y: auto;
}

.user-item {
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 6px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-item:hover {
    background-color: #f5f5f5;
    border-color: #417690;
}

.user-info h4 {
    margin: 0 0 4px 0;
    color: #333;
    font-size: 14px;
}

.user-info p {
    margin: 0;
    color: #666;
    font-size: 12px;
}

.impersonate-btn {
    padding: 8px 16px;
    background: #417690;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.impersonate-btn:hover {
    background: #2f5468;
}

.no-results {
    text-align: center;
    padding: 20px;
    color: #666;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
