/* Behavior Picker Modal */
.behavior-picker-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.behavior-picker-modal.behavior-picker-visible {
    opacity: 1;
}

.behavior-picker-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.behavior-picker-content {
    position: relative;
    background: var(--panel-bg, #1a1a1a);
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transform: scale(0.95);
    transition: transform 0.2s ease;
}

.behavior-picker-modal.behavior-picker-visible .behavior-picker-content {
    transform: scale(1);
}

.behavior-picker-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.behavior-picker-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
}

.behavior-picker-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.2s;
}

.behavior-picker-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.behavior-picker-subtitle {
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.2);
}

.behavior-type-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.behavior-type-badge.predefined {
    background: rgba(100, 200, 255, 0.2);
    color: #6cf;
    border: 1px solid rgba(100, 200, 255, 0.3);
}

.behavior-type-badge.custom {
    background: rgba(150, 100, 255, 0.2);
    color: #b8f;
    border: 1px solid rgba(150, 100, 255, 0.3);
}

.behavior-picker-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.behavior-option {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    width: 100%;
}

.behavior-option:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
}

.behavior-option.predefined {
    border-left: 4px solid rgba(100, 200, 255, 0.5);
}

.behavior-option.custom {
    border-left: 4px solid rgba(150, 100, 255, 0.5);
}

.behavior-option-icon {
    font-size: 32px;
    min-width: 40px;
    text-align: center;
}

.behavior-option-info {
    flex: 1;
}

.behavior-option-name {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 6px;
}

.behavior-option-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.behavior-picker-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .behavior-picker-content {
        width: 95%;
        max-height: 90vh;
        border-radius: 16px 16px 0 0;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
    }

    .behavior-option {
        padding: 12px;
        gap: 12px;
    }

    .behavior-option-icon {
        font-size: 28px;
        min-width: 36px;
    }

    .behavior-option-name {
        font-size: 16px;
    }

    .behavior-option-description {
        font-size: 13px;
    }
}

/* Scrollbar styling */
.behavior-picker-list::-webkit-scrollbar {
    width: 8px;
}

.behavior-picker-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.behavior-picker-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.behavior-picker-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

