.modal-body {
    max-height: 60vh;
    overflow-y: auto;
    padding: 1.5rem;
}

.devices-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.device-item {
    width: 100%;
    max-width: 300px;
    text-align: center;
}

.device-popover-wrapper {
    display: inline-block;
}

.device-link {
    cursor: pointer;
    color: #546472;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 6px;
    display: inline-block;
    transition: all 0.2s ease;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

.device-link:hover {
    background-color: #e7f1ff;
    border-color: #0d6efd;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.device-link:active {
    transform: translateY(0);
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

button[aria-label="Close"] i {
    font-size: 1.3rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

button[aria-label="Close"]:hover i {
    transform: scale(1.3);
    color: #dc3545;
}